Programming
10.4 Spindle movements
Cylindrical grinding
278
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
10.4
Spindle movements
10.4.1
Spindle speed S, directions of rotation
Functionality
The spindle speed is programmed under the address S in revolutions per minute, if the
machine has a controlled spindle.
The direction of rotation and the beginning or end of the movement are specified via M
commands.
Programming
M3
; Spindle clockwise
M4
; Spindle counterclockwise
M5
; Spindle stop
Remark: For integer S values, the decimal point can be omitted, e.g. S270.
Information
If you write M3 or M4 in a block with axis movements, the M commands become active
before the axis movements.
Standard setting: Axis movements will only start once the spindle has accelerated to speed
(M3, M4). M5 is also issued before the axis movement. However, it does not wait for the
spindle to stop. Axis motion already starts before the spindle comes to a standstill.
The spindle is stopped with the end of the program or RESET.
At the beginning of the program, the spindle speed is zero (S0).
Note: Other settings can be configured via machine data.
Programming example
N10 G1 X70 Z20 F3 S270 M3
;
before
the axis traversing X, Z the spindle
accelerates to 270 r.p.m., clockwise
...
N80 S450 ...
; Speed change
...
N170 G0 Z180 M5
; Z movement, spindle comes to a stop