Chapter 7
119
UM10350_PCNC770_Manual_0916A
Programming
This calls for absolute distance mode (G90), old “Z” retract mode (G98) and calls for the G81 drilling
cycle to be performed once. The X number and X posion are 4. The Y number and Y posion are 5.
The Z number and Z posion are 1.5. The R number and clear Z are 2.8. The following moves take place
:
Step # Description
1
G00 motion parallel to the XY-plane to (4,5,3)
2 G00 motion parallel to the Z-axis to (4,5,2.8)
3 G01 motion parallel to the Z-axis to (4,5,1.5)
4 G00 motion parallel to the Z-axis to (4,5,3)
Example 2: Suppose the current posion is (1, 2, 3) and the XY-plane has been selected and the
following line of NC-code is interpreted.
G91 G81 G98 X4 Y5 Z-0.6 R1.8 L3
This calls for incremental distance mode (G91), old “Z” retract mode and calls for the G81 drilling
cycle to be repeated three mes. The X number is 4, the Y number is 5, the Z number is -0.6 and the
R number is 1.8. The inial X posion is 5 (=1+4), the inial Y posion is 7 (=2+5), the clear Z posion
is 4.8 (=1.8+3) and the Z posion is 4.2 (=4.8-0.6). Old Z is 3.0.
The rst move is a traverse along the Z-axis to (1,2,4.8), since old Z < clear Z.
The rst repeat consists of three moves.
Step # Description
1
G00 motion parallel to the XY-plane to (5,7,4.8)
2 G01 motion parallel to the Z-axis to (5,7, 4.2)
3 G00 motion parallel to the Z-axis to (5,7,4.8)
The second repeat consists of three moves. The X posion is reset to 9 (=5+4) and the Y posion to
12 (=7+5).
Step # Description
1 G00 motion parallel to the XY-plane to (9,12,4.8)
2 G01 motion parallel to the Z-axis to (9,12, 4.2)
3 G00 motion parallel to the Z-axis to (9,12,4.8)
The third repeat consists of three moves. The X posion is reset to 13 (=9+4) and the Y posion to
17 (=12+5).
Step # Description
1 G00 motion parallel to the XY-plane to (13,17,4.8)
2 G01 motion parallel to the Z-axis to (13,17, 4.2)
3 G00 motion parallel to the Z-axis to (13,17,4.8)