P – Selects a specic offset.
P1-P100 Used to reference D or H code offsets (L10-L13)
P0 G52 references work coordinate (L2)
P1-P6 G54-G59 references work coordinates (L2)
P1-P20 G110-G129 references auxiliary coordinates (L20)
P1-P99 G154 P1-P99 reference auxiliary coordinate (L20)
R Offset value or increment for length and diameter.
X Optional X-axis zero location.
Y Optional Y-axis zero location.
Z Optional Z-axis zero location.
A Optional A-axis zero location.
Programming Examples
G10 L2 P1 G91 X6.0 {Move coordinate G54 6.0 to the right};
G10 L20 P2 G90 X10. Y8. {Set work coordinate G111 to X10.0 ,Y8.0};
G10 L10 G90 P5 R2.5 {Set offset for Tool #5 to 2.5};
G10 L12 G90 P5 R.375 {Set diameter for Tool #5 to .375”};
G10 L20 P50 G90 X10. Y20. {Set work coordinate G154 P50 to X10. Y20.}
G12 Circular Pocket Milling CW / G13 Circular Pocket Milling CCW
(Group 00)
These two G codes are used to mill circular shapes. They are different only in
which direction of rotation is used. Both G codes use the default XY circular
plane (G17) and imply the use of G42 (cutter compensation) for G12 and G41
for G13. These two G-codes are non-modal.
*D Tool radius or diameter selection
I Radius of rst circle (or nish if no K). I value must be greater than
Tool Radius, but less than K value.
K Radius of nished circle (if specied)
L Loop count for repeating deeper cuts
Q Radius increment, or stepover (must be used with K)
F Feedrate in inches (mm) per minute
Z Depth of cut or increment
*In order to get the programmed circle diameter, the control uses the se-
lected D code tool size. To program tool centerline select D0.
NOTE: Specify D00 if no cutter compensation is desired. If no D is speci-
ed in the G12/G13 block, the last commanded D value will be used, even
if it was previously canceled with a G40.
The tool must be positioned at the center of the circle using X and Y. To remove
all the material within the circle, use I and Q values less than the tool diameter
and a K value equal to the circle radius. To cut a circle radius only, use an I
value set to the radius and no K or Q value.
%
O00098 (SAMPLE G12 AND G13)
(OFFSET D01 SET TO APPROX. TOOL
SIZE)