mastercam x5后处理编辑

更新时间:2023-04-08 16:44:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

[资料]mastercam x5后处理编辑

更改IJK格式:

打开X5 选择设置——机床器定义——选择要更改的后处理程序——选择圆弧选项——把XY,XZ,YZ平面设置成(开始至中心的间距)。

更改行号输出:

打开X5 选择设置——机床器定义——选择要更改的后处理程序——选择NC输出——行号一栏取消即可。

%号修改:

用记事本打开后处理MPFAN文件——查找Start of File and Toolchange Setup——在下方"%", e$——改成我们需要的就可以了,如不需要%号,可在本行最前方加一个#就可以去掉%号了。

去掉程序中的空格:

用记事本打开后处理MPFAN文件——查找sav_spc = spaces$——可在本行最前方加一个#就可以去掉空格了。

更改O0000(程序名):

用记事本打开后处理MPFAN文件——查找*progno$, sopen_prn, sprogname$, sclose_prn,

e$——如果想删除O0000——就把开头的*progno$,这一段删除,有些机台不认O0000可能认O0001我们只需更改第一句*progno$,更改成"O0001",就可以了想把O0000和程序序名分开就可以把*progno$,更改为*progno$, e$这样就分开了格式如下:

O0000

(COR01)

去掉程序路径和时间信息:

sopen_prn, "DATE=DD-MM-YY - ", date$, " TIME=HH:MM - ", time$,

sclose_prn, e$ #Date and time output Ex. 12-02-05 15:52

sopen_prn, "MCX FILE - ", *smcpath$, *smcname$, *smcext$, sclose_prn, e$

sopen_prn, "NC FILE - ", *spathnc$, *snamenc$, *sextnc$, sclose_prn, e$

sopen_prn, "MATERIAL - ", *stck_matl$, sclose_prn, e$

spaces$ = sav_spc

这些段落全部开头加#

去掉换刀程序:

用记事本打开后处理MPFAN文件——查找pbld, n$, *t$, sm06, e$改为#pbld, n$, *t$, sm06,

e$

删除高度补偿:

用记事本打开后处理MPFAN文件——查找pbld, n$, sg43, *tlngno$, pfzout, scoolant,

pstagetool, e$改为#pbld, n$, sg43, *tlngno$, pfzout, scoolant, pstagetool, e$如果要保留安全高度就改为:

#pbld, n$, sg43, *tlngno$,

pfzout, scoolant, pstagetool, e$

去掉程序结束回归原点功能:

用记事本打开后处理MPFAN文件——查pbld, n$, sgabsinc, sgcode,

*sg28ref, "Z0.", scoolant,

e$改为#pbld, n$, sgabsinc, sgcode, *sg28ref, "Z0.", scoolant, e$ 去掉程序XY回归原点功能:

用记事本打开后处理MPFAN文件——查if nextop$ = 1003 | tlchg_home, pbld, n$, *sg28ref,

"X0.", "Y0.", 更改为#if nextop$ = 1003 | tlchg_home, pbld, n$,

*sg28ref, "X0.", "Y0.",

删除A0第四轴:

用记事本打开后处理MPFAN文件——查pcan1, pbld, n$, *sgcode,

*sgabsinc, pwcs, pfxout,

pfyout,

pfcout,

更改为

pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, #pfcout, 有些机台钻孔后G80不会抬到安全高度: 用记事本打开后处理MPFAN文件——查pcan1, pbld, n$, sg80, strcantext, e$更改为pcan1,

pbld, n$, sg80, pfzout, strcantext, e$其格式如下: 更改前:

G0G90G54X0.Y0.S1000M3

Z100.

-100.R1.F100. G98G81Z

G80

M5

M30

更改后:

G0G90G54X0.Y0.S1000M3

Z100.

G98G81Z-100.R1.F100.

G80Z100.

M5

M30

把刀具补偿G41D1更改为G41T1:

有些机台如西门子半径补偿值是T1的情况下:

本文来源:https://www.bwwdw.com/article/plol.html

Top