Feedrate Control and Spindle Motion
7.12 Spindle speed (S), direction of spindle rotation (M3, M4, M5)
Fundamentals
7-36 Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
6
6
N10 S300 M3 ;Speed and direction of rotation
;for drive spindle = preset master spindle
N20…N90 ;Machining of right side of workpiece
N100 SETMS(2) ;S2 is now master spindle
N110 S400 G95 F… ;Speed for new master spindle
N120…N150 ;Machining of left side of workpiece
N160 SETMS ;Switch back to master spindle S1
Preset M commands, M3, M4, M5
In a block with axis commands, the above mentioned functions are activated before the axis
movements commence (basic settings on the control).
Example:
N10 G1 F500 X70 Y20 S270 M3 ;The spindle powers up to 270 rpm, then
;the movements are executed in
;X and Y.
N100 G0 Z150 M5 ;Spindle stop before retraction motion in Z
Note
Machine data can be used to set when axis movements should be executed; either once the
spindle has powered up to the setpoint speed, or immediately after the programmed
switching operations have been traversed.