Commissioning Manual
6FC5397-4EP10-0BA8, 07/2018
155
Example for calling subroutine 41
Subroutine 42 - SPINDLE (spindle control)
Purpose
Subroutine 42 is used for spindle control, including the spindle braking function and spindle speed selection.
When the braking function is activated (MD14512 [19].1 = 1), the spindle brakes in the following cases:
● In "JOG" mode, after you perform the following operations:
→
● In "AUTO" or "MDA" mode, when the spindle changes the rotating direction or is stopped with M05/M02 during rotation
When the spindle brakes, the corresponding output becomes active; meanwhile, the spindle does not accept any rotary
command until the braking completes.
Spindle speed selection in "JOG" mode
You can define the spindle speed selection when the spindle is activated with the following spindle control keys in "JOG"
mode via MD14512[19].4:
/
● MD14512[19].4 = 0 (default): the spindle runs with the speed set in MD32020.
● MD14512[19].4 = 1: the spindle runs with the speed set last time. In this case, if the spindle runs for the first time after
the control system powers on, then you must specify a spindle speed in "MDA" mode or the "T, S, M" window.
Local variable definition
Inputs
Spindle brake delay time (unit: 0.1 s)
Condition for spindle operation (1: allowed; 0: not allowed)
Brake for spindle (1: enabled; 0: forbidden)