(1)默认后处理去掉第四轴A0的输出
用记事本或任意文本编辑器打开MPFAN.pst,然后搜索Rotary Axis Settings,找到
rot_on_x : 1 #SET_BY_MD Default Rotary Axis Orientation
#0 = Off, 1 = About X, 2 = About Y, 3 = About Z
改成rot_on_x : 0 #SET_BY_MD Default Rotary Axis Orientation
#0 = Off, 1 = About X, 2 = About Y, 3 = About Z
就可以关闭四轴,没有A0输出。
(2)去掉程序开头的注释输出
用记事本或任意文本编辑器打开MPFAN.pst,然后搜索"%",找到
"%", e$
sav_spc = spaces$
spaces$ = 0
中间略掉
spaces$ = sav_spc
改成
"%", e$
sav_spc = spaces$
spaces$ = 0
*progno$, sopen_prn, sprogname$, sclose_prn, e$
#sopen_prn, "PROGRAM NAME - ", sprogname$, sclose_prn, e$
#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, "DATE - ", month$, "-", day$, "-", year$, sclose_prn, e$ #Date
output as month,day,year - Ex. 02-12-05
#sopen_prn, "DATE - ", *smonth, " ", day$, " ", *year2, sclose_prn, e$
#Date output as month,day,year - Ex. Feb. 12 2005
#sopen_prn, "TIME - ", time$, sclose_prn, e$ #24 hour time output - Ex.
15:52
#sopen_prn, "TIME - ", ptime sclose_prn, e$ #12 hour time output 3:52
PM
spathnc$ = ucase(spathnc$)
smcname$ = ucase(smcname$)
stck_matl$ = ucase(stck_matl$)
snamenc$ = ucase(snamenc$)
#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
在不需要的前面加#,就可以去掉注释的输出。
(3)冷却液的开启和关闭
用记事本或任意文本编辑器打开MPFAN.pst,然后搜索 "G43",找到
pbld, n$, sg43, *tlngno$, pfzout, scoolant, pstagetool, e$这一行,在下边加一行,pbld,
n$, sm08, e$,改成
pbld, n$, sg43, *tlngno$, pfzout, scoolant, pstagetool, e$
pbld, n$, sm08, e$
开启冷却液。注意,有2处。
继续搜索gcode$ = zero找到
gcode$ = zero
pbld, n$, sccomp, *sm05, psub_end_mny, e$
改成gcode$ = zero
pbld, n$, sm09, e$
pbld, n$, sccomp, *sm05, psub_end_mny, e$
关闭冷却液
(4)默认nc文件打开的编辑器修改
打开cam软件设置》系统配置》启动/退出,如图修改后确认退出。
(5)不输出程序行号
打开cam软件设置》控制器定义,如图修改后确认退出。
(6)有刀库的机器加预先备刀方法
打开cam软件设置》控制器定义,如图修改后确认退出。
(7)圆弧用R,还是IJK的修改。
(8)去掉错误文件的生成。
(8)攻牙加M29指令
用记事本或任意文本编辑器打开MPFAN.pst,然后搜索 Canned Tap Cycle,找到
ptap$ #Canned Tap Cycle
pdrlcommonb
result = newfs(17, feed) # Set for tapping Feedrate format
if met_tool$,
中间略掉
pbld, n$, sg94, e$
pcan1, pbld, n$, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,
prdrlout, *pitch, !feed, strcantext, e$
pcom_movea
改为ptap$ #Canned Tap Cycle
pdrlcommonb
pbld, n$, sm29, *speed, e$
pcan1, pbld, n$, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,
prdrlout, *pitch, !feed, strcantext, e$
pcom_movea
就可以了插入M29。