Program code Comment
N180 SVC=300 ; S6 = (300 m/min * 1000) / (7.0 mm * 2 * 3.14) = 6824.39 rpm
Spindle 6 is assigned to tool carrier 4.
Example 5:
Assumptions:
Spindles are tool carriers at the same time:
MD20124 $MC_TOOL_MANAGEMENT_TOOL CARRIER = 0
In the event of a tool change, tool offset data set D4 is selected automatically:
MD20270 $MC_CUTTING_EDGE_DEFAULT = 4
Program code Comment
N10 $TC_MPP1[9998,1]=2 ; Magazine location is tool carrier
N11 $TC_MPP5[9998,1]=1 ; Magazine location is tool carrier 1 = spindle 1
N20 $TC_MPP1[9998,2]=2 ; Magazine location is tool carrier
N21 $TC_MPP5[9998,2]=3 ; Magazine location is tool carrier 3 = spindle 3
N30 $TC_TP2[2]="WZ2"
N31 $TC_DP6[2,1]=5.0 ; Radius = 5.0 mm of T2, offset D1
N40 $TC_TP2[8]="WZ8"
N41 $TC_DP6[8,1]=9.0 ; Radius = 9.0 mm of T8, offset D1
N42 $TC_DP6[8,4]=7.0 ; Radius = 7.0 mm of T8, offset D4
...
N100 SETMS(1) ; Spindle 1 = master spindle
N110 T="WZ2" M6 D1 ; Tool T2 is loaded and offset D1 is activated.
N120 G1 G94 F1000 M3 SVC=100 ; S1 = (100 m/min * 1000) / (5.0 mm * 2 * 3.14) = 3184.71 rpm
N200 SETMS(3) ; Spindle 3 = master spindle
N210 M4 SVC=150 ; S3 = (150 m/min * 1000) / (5.0 mm * 2 * 3.14) = 4777.07 rpm
Refers to tool offset D1 of T="WZ2", S1 continues to turn at
previous speed.
N220 T="WZ8" ; Corresponds to T8="WZ8"
N230 M4 SVC=200 ; S3 = (200 m/min * 1000) / (5.0 mm * 2 * 3.14) = 6369.43 rpm
Refers to tool offset D1 of T="WZ2".
N240 M6 ; Corresponds to M3=6
Tool "WZ8" is in the master spindle, tool offset D4 of the
new tool becomes active.
N250 SVC=50 ; S3 = (50 m/min * 1000) / (7.0 mm * 2 * 3.14) = 1137.40 rpm
Offset D4 on master spindle is active.
N260 D1 ; Offset D1 of new tool "WZ8" active.
N270 SVC[1]=300 ; S1 = (300 m/min * 1000) / (9.0 mm * 2 * 3.14) = 5307.86 rpm
S3 = (50 m/min * 1000) / (9.0 mm * 2 * 3.14) = 884.64 rpm
...
Further information
Tool radius
Fundamentals
2.6 Spindle motion
NC programming
96 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0