Example of milling
Start positions or tool change points, retracting the tool, etc., are approached with G0.
N10 G90 S400 M3
N20 G0 X30 Y20 Z2
N30 G1 Z-5 F1000
N40 X80 Y65
N50 G0 Z2
N60 G0 X-20 Y100 Z100 M30
Example of turning
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
4.3 Rapid traverse movement (G0, RTLION, RTLIOF)
;Absolute dimensioning, spindle clockwise
;Approach start position
;Tool infeed
;Travel on straight line
;Retract tool, program end
.
Programming Motion Commands
4-11