自动限制圆弧刀补代码:
maxrad$ : 9999 #Maximum arc radius
compwarn : 1 #Warn if cutter comp applied on arc, 0=no, 1=yes
--------
compwarnflg : 0
----------
scompwarn "WARNING-CUTTER COMP APPLIED ON ARC MOVE"
--------
pcompwarn #Cutter Compensation Check
if prv_cc_pos$ <> cc_pos$ & cc_pos$ & gcode$ > 1,
[
if compwarnflg = 0, result = mprint(scompwarn,1)
spaces$ = 0
pbld, n, *sm00, "(", scompwarn, ")", e$
spaces$ = sav_spc
compwarnflg = 1
]
-------
pcirout #Output to NC of circular interpolation
if compwarn, pcompwarn
pcan1, pbld, n, `sgfeed, sgplane, sgcode, sgabsinc, pccdia,
pxout, pyout, pzout, pcout, parc, feed, strcantext, scoolant, e$
------- |