你比较一下后处理文件中:
ptlchg0 #Call from NCI null tool change (tool number epeats)
;刀具同前时的换刀指令情况
pcuttype ;定义切削类型,
pcom_moveb ;刀具移动,加工
c_mmlt #Multiple tool subprogram call ;调用刀具子程序
comment ;注释,mastercam中设置的
pcan ;#Canned text
result = newfs(15, feed) #Reset the output format for 'feed'
pbld, n, sgplane, e ;G17/G18/G19
pspindchng
pbld, n, scoolant, e if mi1 > one & workofs <> prv_workofs,
[
sav_absinc = absinc
absinc = zero
pbld, n, sgabsinc, pwcs, pfxout, pfyout, pfzout, pfcout, e
;N414G1G90G53X21.Y-27.55A0.S1000M3
pe_inc_calc
ps_inc_calc
absinc = sav_absinc
]
if cuttype = zero, ppos_cax_lin
if gcode = one, plinout
else, prapidout
pcom_movea
c_msng #Single tool subprogram call
ptlchg #Tool change
;刀具不同时的换刀情况
pcuttype
toolchng = one
if mi1 = one, #Work coordinate system
[
pfbld, n, *sg28ref, "X0.", "Y0.", e
pfbld, n, "G92", *xh, *yh, *zh, e
]
pbld, n, "M01", e
pcom_moveb
c_mmlt #Multiple tool subprogram call
ptoolcomment
comment
pcan 与前相同,去掉ptlchg0 中c_mmlt再试一试 result = newfs(15, feed) #Reset the output format for 'feed'
pbld, n, *t, "M6", e
pindex
sav_absinc = absinc
if mi1 > one, absinc = zero
pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, |