Programming
10.4 Spindle movements
Cylindrical grinding
282
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
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 spindle number n to axis identifier,
; e.g. "SP1" or "CC"
; n must be a valid spindle number (1 or 2)
; The functions of spindle identifiers SPI(n) and Sn are
identical.
$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
2 spindles installed
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 the active master spindle