Program header for turning
The following example shows the typical structure of an NC program header for turning:
Program code Comment
N10 G0 G153 X200 Z500 T0 D0 ; Retract toolholder before tool turret is ro-
tated.
N20 T5 ; Swing in tool 5.
N30 D1 ; Activate cutting edge data set of the tool.
N40 G96 S300 LIMS=3000 M4 M8 ; Constant cutting rate (Vc) = 300 m/min, speed
limitation = 3000 rpm, direction of rotation
counterclockwise, cooling on.
N50 DIAMON ; X axis will be programmed in the diameter.
N60 G54 G18 G0 X82 Z0.2 ; Call zero offset and working plane, approach
starting position.
...
Program header for milling
The following example shows the typical structure of an NC program header for milling:
Program code Comment
N10 T="SF12" ; Alternative: T123
N20 M6 ; Trigger tool change.
N30 D1 ; Activate cutting edge data set of the tool.
N40 G54 G17 ; Zero offset and working plane.
N50 G0 X0 Y0 Z2 S2000 M3 M8 ; Approach to the workpiece, spindle and cool-
ant on.
...
If tool orientation / coordinate transformation is being used, any transformations still active
should be deleted at the start of the program:
Program code Comment
N10 CYCLE800() ; Resetting of the swiveled plane
N20 TRAFOOF ; Resetting of TRAORI, TRANSMIT, TRACYL, ...
...
2.3.4 Program examples
2.3.4.1 Example 1: First programming steps
Program example 1 is to be used to perform and test the first programming steps.
Fundamentals
2.3 Creating an NC program
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 53