MasterCAM中如何在在换刀程序段前插入顺序行号
好酷屋教程网小编为您收集和整理了MasterCAM中如何在在换刀程序段前插入顺序行号的相关教程:strgoto_N:10#参数初始化,N10开始fmt"N"4strgoto_n#定义数据类型ptlchg_com#Toolchangecommonblocks*strgoto_N,e$#插入行
strgoto_N:10#参数初始化,N10开始
fmt"N"4strgoto_n#定义数据类型
ptlchg_com#Toolchangecommonblocks
*strgoto_N,e$#插入行号
pcom_moveb
c_mmlt$#Multipletoolsubprogramcall
#ptoolcomment#taoshx
comment$
pmisccheck
pcan
ifplane$<0,plane$=0
"(",*tldia$,"-",*tcr$,")",e$
ifstagetool>=zero,pbld,n$,*t$,"M06","(",popnote,")",ptoolcomm,e$
#pbld,n$,"/",*scoolant,e$
pbld,n$,"/","M08",e$
spaces$=0
ifoutput_z=yes$,
spaces$=sav_spc
ppengxiangxu
pindex
sav_absinc=absinc$
ifwcstype>one,absinc$=zero
iflock_codes=1¬(index)&rot_on_x,pbld,n$,*sunlock,"(UNLOCK)",e$
pcan1,pbld,n$,*sgcode,*sgabsinc,,pfxout,pfyout,
pfcout,*speed,*spindle,pgear,strcantext,e$
iflock_codes=1¬(index)&rot_on_x&cuttype=0,pbld,n$,*slock,"(LOCK)",e$
pbld,n$,"G43",*tlngno$,pfzout,next_tool$,e$
#pbld,n,"G5p10000",e
sav_coolant=coolant$
ifcoolant$=1,sm09=sm09_0
ifcoolant$=2,sm09=sm09_1
ifcoolant$=3,sm09=sm09_2
absinc$=sav_absinc
pcom_movea
toolchng=zero
c_msng$#Singletoolsubprogramcall
last_op_id=op_id$
last_cuttype=cuttype
strgoto_N=strgoto_N+10#行号加10赋值
END
以上就是好酷屋教程网小编为您收集和整理的MasterCAM中如何在在换刀程序段前插入顺序行号相关内容,如果对您有帮助,请帮忙分享这篇文章^_^
本文来源: https://www.haoku5.com/IT/66cea049653c568e0003ec14.html
相关推荐