Spindle (S1)
20.7 2nd spindle / master spindle
Turning, Milling, Nibbling
364 Function Manual, 11/2012, 6FC5397-1CP10-5BA0
The definition of the master spindle changed in the program is only valid until End of
program/program abort. Thereafter, the configured master spindle is again active.
Programming via spindle number
Some spindle functions can also be selected via the spindle number:
S1=..., S2=... Spindle speed for spindle 1 or 2
M1=3, M1=4, M1=5 Specifications for direction of rotation, stop for spindle 1
M2=3, M2=4, M2=5 Specifications for direction of rotation, stop for spindle 2
M1=40, ..., M1=45 Gear stages for spindle 1 (if available)
M2=40, ..., M2=45 Gear stages for spindle 2 (if available)
SPOS [n] Position spindle n
SPI(n) Converts the spindle number n into the axis identifier,
e.g. "SP1" or "CC"
n must be a valid spindle number (1 or 2)
The spindle identifiers SPI(n) and Sn are identical in terms of
function
P_S[ n ] Last programmed speed of spindle n
$AA_S[n] Actual speed of spindle n
$P_SDIR[ n ] Last programmed direction of rotation of spindle n
$AC_SDIR[ n ] Current direction of rotation of spindle n
Two spindles available
The following can be interrogated in the program via the system variable:
$P_NUM_SPINDLES Number of configured spindles (in the channel)
$P_MSNUM Number of programmed master spindle
$AC_MSNUM Number of active master spindle