S1: Spindles
16.4 Configurable gear adaptation
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1303
16.4.3 Determining the spindle gear stage
The actual stage of a spindle can be read using system variables:
• For the display in the user interface, in synchronized actions or with a preprocessing stop in the part program
via the system variables:
• Without preprocessing stop in the part program via system variables:
$VC_SGEAR[<n>] Currently selected spindle gear stage
$VC_SGEAR reads the actual gear stage signaled from the
PLC.
Value range: 0 ... 5
$AC_SGEAR[<n>] Active spindle gear stage
$AC_SGEAR reads the setpoint gear stage in the main run.
Value range: 1 ... 5
The data set for the spindle is activated corresponding to
this gear stage.
Note
For a search, the actual gear stage ($VC_SGEAR[<n>]) can differ from the setpoint gear
stage ($AC_SGEAR[<n>]) as, during the search, no gear stage change takes place.
Therefore, using $VC_SGEAR[<n>] and $AC_SGEAR[<n>], it can be interrogated whether a
gear stage change should be made after a search.
$P_SGEAR[<n>] Setpoint gear stage
$P_SGEAR reads the gear stage programmed in the part
program (M41...M45), for M40 selected, or for M70, the
configured gear stage.
$P_SEARCH_SGEAR[<n>] Search: Gear-specific M function
$P_SEARCH_SGEAR contains the last programmed gear
stage M function collected with the block search.