Program code Comment
N130 G1 G40 Y-72 F3000 ; Deselection of the milling tool radius
compensation.
N140 G0 Z200 M5 M9 ; Retraction of the milling tool, spin-
dle + cooling off.
N150 T="SF10" ; Preselection of the tool with name
SF10.
N160 M6 ; Load the tool into the spindle.
N170 S2800 M3 M8 ; Speed, direction of rotation, cooling
on.
N180 G90 G64 G54 G17 G0 X0 Y0 ; Basic settings for the geometry and
approach starting point.
N190 G0 Z2
N200 POCKET4(2,0,1,-5,15,0,0,0,0,0,800,1300,0,21,5,,,2,0.5) ; Call pocket milling cycle.
N210 G0 Z200 M5 M9 ; Retraction of the milling tool, spin-
dle + cooling off.
N220 T="ZB6" ; Call 6 mm centering drill.
N230 M6
N240 S5000 M3 M8
N250 G90 G60 G54 G17 X25 Y0 ; Exact stop G60 for exact positioning.
N260 G0 Z2
N270 MCALL CYCLE82(2,0,1,-2.6,,0) ; Modal call of the drilling cycle.
N280 POSITION: ; Jump mark for repetition.
N290 HOLES2(0,0,25,0,45,6) ; Position pattern for drilling.
N300 ENDLABEL: ; End delimiter for repetition.
N310 MCALL ; Reset modal call.
N320 G0 Z200 M5 M9
N330 T="SPB5" ; Call D 5 mm drill.
N340 M6
N350 S2600 M3 M8
N360 G90 G60 G54 G17 X25 Y0
N370 MCALL CYCLE82(2,0,1,-13.5,,0) ; Modal call of the drilling cycle.
N380 REPEAT POSITION ; Repetition of the position descrip-
tion from centering.
N390 MCALL ; Resetting of the drilling cycle.
N400 G0 Z200 M5 M9
N410 M30 ; End of program.
Fundamentals
2.3 Creating an NC program
NC programming
58 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0