S1: Spindles
16.6 Selectable spindles
16.6
Selectable spindles
Function
The "selectable spindles" function allows you to write part programs with reference to the spindles used
("channel spindle, logical spindle") regardless of the actual assignment of configured spindles ("physical
spindles") to a channel.
The physical spindles loaded or unloaded by "axis replacement" no longer have to be specified explicitly in the
part program.
Spindle number converter (SD42800)
Each spindle is uniquely mapped to a machine axis using a configurable number:
MD35000 $MA_SPIND_ASSIGN_TO_MACHAX[AX...] = <spindle number>
This number always applies to one spindle, whereby it is of no importance in which channel the spindle is actively
handled.
The channel spindles can be switched over because an intermediate level is introduced between the logical
spindle numbers used in the part program and the physical spindles existing in the channel.
Every logical spindle used in the part program is assigned a physical spindle in a table comprising setting data:
SD42800 $SC_SPIND_ASSIGN_TAB[<n>] (spindle number converter) = ...
Index <n> corresponds to the programmed spindle number or the programmed address extension. The contents
of the particular SD is the physical spindle that is actually available.
The spindle number converter is effective in spindle programming by means of:
•
The part program
•
Synchronized actions
The spindle number converter has no effect with PLC commands, which use function block FC18. The physical
spindle must always be addressed there within the context of the axis.
Logical spindles can be changed over by changing SD42800. The changeover can be made from the part
program, from the PLC and/or HMI.
Note
The logical master spindle is contained in setting data SD42800
$SC_SPIND_ASSIGN_TAB[0]. It is only used for display purposes.
This setting data is defined in the part program by SETMS (logical spindle).
Unused spindles are assigned the value 0 in SD42800.
System variables, which are involved in the spindle changeover:
$P_S, $P_SDIR, $P_SMODE, $P_GWPS, $AC_SDIR, §AC_SMODE, $AC_MSNUM, $AA_S
1326
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Basic Functions