Chapter 7
121
UM10372_PCNC440_Manual_0221A
PROgRAMMiNg
G38.5 X #<x_start>
#<x_minus>=#5061 (save results)
G00 X #<x_start>
#<x_center> = [[#<x_plus>+#<x_minus>]/2]
G00 X #<x_center> (go to middle)
F #<feed_rate>
G38.3 Y #<y_max> (probe +Y side of hole)
F [#<feed_rate>/30]
G38.5 Y #<y_start>
#<y_plus>=#5062 (save results)
G00 Y #<y_start> (return to start)
F #<feed_rate>
G38.3 Y #<y_min> (probe -Y side of hole)
F [#<feed_rate>/30]
G38.5 Y #<y_start>
#<y_minus>=#5062 (save results)
G00 Y #<y_start>
#<y_center> = [[#<y_plus>+#<y_minus>]/2]
G00 Y #<y_center> (go to middle)
G10 L20 P1 X 0 Y 0 (set current location to zero)
F #<feed_rate> (restore original feed rate)
o<probe_pocket> endsub
M02
7.3.11 Cutter Compensation – G40, G41, and G42
7.3.11.1 Cutter Compensation Off – G40
To turn Cuer Compensaon o, program: G40
It is OK to turn compensaon o when it is already o.
It is an error if:
• A G02/G03 arc move is programmed next aer a G40
• The linear move aer turning compensaon o is less than twice the tool p radius