We have one italian machine PEAR and its control requires G2 and G3 codes to be output on every line which need it to be in effect.
So it treats it as non modal , and the coordinate move on next line interprets as G1 .
Is there a way to edit the postprocessor for v7 or later so it outputs G2 and G3 on every consecutive line needed?
program Circle
if cld[4] > 0 then INTERP_ = 3 else INTERP_ = 2 ! G3/G2
INTERP@=Maxreal ! Paste this command here
XC_ = cld[1] - XT_ ! I,J,K in increments always
YC_ = cld[2] - YT_
ZC_ = cld[3] - ZT_
X = cld[5] ! X,Y,Z in absolutes
Y = cld[6]
Z = cld[7]
if ABS_INC = 91 then begin ! X,Y,Z in increments
X = X - XT_
Y = Y - YT_
Z = Z - ZT_
end
XC_@ = MaxReal; YC_@ = MaxReal; ZC_@ = MaxReal
X@ = MaxReal; Y@ = MaxReal; Z@ = MaxReal
if Plane = 17 then begin ZC_@=ZC_; Z@=Z end
if Plane = 18 then begin YC_@=YC_; Y@=Y end
if Plane = 19 then begin XC_@=XC_; X@=X end
call OutBl ! output to NC block
XT_ = cld[5] ! save current coordinates
YT_ = cld[6]
ZT_ = cld[7]
end
program Circle
if cld[4] > 0 then INTERP_ = 3 else INTERP_ = 2 ! G3/G2
INTERP@=Maxreal ! Paste this command here
XC_ = cld[1] - XT_ ! I,J,K in increments always
YC_ = cld[2] - YT_
ZC_ = cld[3] - ZT_
X = cld[5] ! X,Y,Z in absolutes
Y = cld[6]
Z = cld[7]
if ABS_INC = 91 then begin ! X,Y,Z in increments
X = X - XT_
Y = Y - YT_
Z = Z - ZT_
end
XC_@ = MaxReal; YC_@ = MaxReal; ZC_@ = MaxReal
X@ = MaxReal; Y@ = MaxReal; Z@ = MaxReal
if Plane = 17 then begin ZC_@=ZC_; Z@=Z end
if Plane = 18 then begin YC_@=YC_; Y@=Y end
if Plane = 19 then begin XC_@=XC_; X@=X end
call OutBl ! output to NC block
XT_ = cld[5] ! save current coordinates
YT_ = cld[6]
ZT_ = cld[7]
end