B-63324EN/03 PROGRAMMING 13.FUNCTIONS TO SIMPLIFY PROGRAMMING
- 303 -
Example
M3 S100 ; Cause the spindle to start rotating.
G90 G99 G84 X300. Y-250. Z-150. R-120. P300 F120. ;
Position, drill hole 1, then return to point R.
Y-550. ; Position, drill hole 2, then return to point R.
Y-750. ; Position, drill hole 3, then return to point R.
X1000. ; Position, drill hole 4, then return to point R.
Y-550. ; Position, drill hole 5, then return to point R.
G98 Y-750. ; Position, drill hole 6,
then return to the initial level.
G80 G28 G91 X0 Y0 Z0 ; Return to the reference position return
M5 ; Cause the spindle to stop rotating.