Program code Comment
N40 G1 X20 F0.3 G95 ; SVC and revolutional feedrate
Example 3: Defining cutting speeds for two spindles
Program code Comment
N10 SVC[3]=100 M6 T1 D1
N20 SVC[5]=200 ; The tool radius of the active tool offset is the
same for both spindles. The effective speed is dif-
ferent for spindle 3 and spindle 5.
Example 4:
Assumptions:
Master or tool change is determined by the tool carrier:
MD20124 $MC_TOOL_MANAGEMENT_TOOL CARRIER > 1
In the event of a tool change the old tool offset is retained. A tool offset for the new tool is only
activated when D is programmed:
MD20270 $MC_CUTTING_EDGE_DEFAULT = - 2
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
N12 $TC_MPP_SP[9998,1]=3 ; Tool carrier 1 is assigned to spindle 3
N20 $TC_MPP1[9998,2]=2 ; Magazine location is tool carrier
N21 $TC_MPP5[9998,2]=4 ; Magazine location is tool carrier 4
N22 $TC_MPP_SP[9998,2]=6 ; Tool carrier 4 is assigned to spindle 6
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 SETMTH(1) ; Set master tool carrier number
N110 T="WZ2" M6 D1 ; Tool T2 is loaded and offset D1 is activated.
N120 G1 G94 F1000 M3=3 SVC=100 ; S3 = (100 m/min * 1000) / (5.0 mm * 2 * 3.14) = 3184.71 rpm
N130 SETMTH(4) ; Set master tool carrier number
N140 T="WZ8" ; Corresponds to T8="WZ8"
N150 M6 ; Corresponds to M4=6
Tool "WZ8" is in the master tool carrier, but because
MD20270=–2, the old tool offset remains active.
N160 SVC=50 ; S3 = (50 m/min * 1000) / (5.0 mm * 2 * 3.14) = 1592.36 rpm
The offset applied to tool carrier 1 is still active and as-
signed to spindle 3.
N170 D4 ; Offset D4 of the new tool "WZ8" becomes active (in tool
carrier 4).
Fundamentals
2.6 Spindle motion
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 95