8 Basic CNC Programming
8.4 NC Codes
108
A second example is shown below.
NC Code Example:
G0 X0Y0Z0
G16
G91X2Z0
Z-.1
M98P1L90
G15
M2
O1Y1
M99
Code
Explanation
G16
G91X2Z0
Z-.1
M98P1L90
G15
G16
Turn Polar programming ON.
G91
Incremental programming mode ON.
X2Z0
Move to a point 2 inches from the current position, at an angle
of 0 degrees.
Z-.1
Move 0.1 inches in the negative Z direction.
M98
P1
Call subprogram 1.
L90
Sets the angle of the arc to 90 degrees.
G15
Turn Polar programming OFF.
M2 O1Y1 M99
M2
End program.
O1
Subprogram label 1.
Y1
Move to Y1.
M99
End of subprogram, return to main program.
8.4.6.9.
Compensation Functions Group
Cutter compensation automatically adjusts to compensate for variations in a cutting tool's radius. It uses
tool radius values from the Setup Offsets table to determine the compensation offset value.