Fundamental Principles of NC Programming
2.6 Programming example for turning application
Fundamentals
74 Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
2.6 Programming example for turning application
Radius programming and tool radius compensation
The sample program contains radius programming and tool radius compensation.
Example
%_N_1001_MPF
N5 G0 G53 X280 Z380 D0
;Start point
N10 TRANS X0 Z250
;Zero offset
N15 LIMS=4000
;Speed limitation (G96)
N20 G96 S250 M3
;Select constant cutting speed
N25 G90 T1 D1 M8
;Select tool and offset
N30 G0 G42 X-1.5 Z1
;Activate tool with tool radius compensation
N35 G1 X0 Z0 F0.25
N40 G3 X16 Z-4 I0 K-10
;Rotate radius 10
N45 G1 Z-12
N50 G2 X22 Z-15 CR=3
;Rotate radius 3
N55 G1 X24
N60 G3 X30 Z-18 I0 K-3
;Rotate radius 3
N65 G1 Z-20
N70 X35 Z-40
N75 Z-57
N80 G2 X41 Z-60 CR=3
;Rotate radius 3
N85 G1 X46
N90 X52 Z-63
N95 G0 G40 G97 X100 Z50 M9
;Deselect tool radius compensation and ;approach tool
change location
N100 T2 D2
;Call up tool and select offset
N105 G96 S210 M3
;Select constant cutting speed
N110 G0 G42 X50 Z-60 M8
;Activate tool with tool radius compensation
N115 G1 Z-70 F0.12
;Rotate diameter 50
N120 G2 X50 Z-80 I6.245 K-5
;Rotate radius 8
N125 G0 G40 X100 Z50 M9
;Retract tool and ;deselect tool radius compensation
N130 G0 G53 X280 Z380 D0 M5
;Move to tool change location
N135 M30
;Program end