S1: Spindles
16.7 Programming
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1333
References
More detailed explanations for programming the spindle can be found in:
• Programming Manual, Fundamentals
SPI(<n>): With SPI(<n>) a spindle number is converted into the data type AXIS according to
machine data
MD35000 $MA_SPIND_ASSIGN_TO_MACHAX[ ]
.
SPI is used if axis functions are to be programmed with the spindle.
The following instructions are possible with SPI:
• Frame instructions:
– CTRANS()
– CFINE()
– CMIRROR()
– CSCALE()
• Velocity and acceleration values for following spindles:
– FA[SPI(<n>)]
– ACC[SPI(<n>)]
– OVRA[SPI(<n>)]
• System variables:
– $P_PFRAME[SPI(<n>),TR]=<value>
– $P_PFRAME=
CTRANS(X,<axis value>,Y,<axis value>,SPI(<n>),<axis value>)
– $P_PFRAME=
CSCALE(X,<scale>,Y,<scale>,SPI(<n>),<scale>)
– $P_PFRAME=CMIRROR(S<n>,Y,Z)
– $P_UBFR=CTRANS(A,10) : CFINE (19,0.1)
For further explanations about the programming of SPI, see:
References:
Programming Manual, Work Preparation.
M40:
M<n>=40:
Automatic gear stage selection for the master spindle
Automatic gear stage selection for spindle number <n>
M41 to M45:
M<n>=41 to M<n>=45:
Select gear stage 1 to 5 for the master spindle
Select gear stage 1 to 5 for spindle number <n>.
Note
M functions M3, M4, M5, and M70 are not output in DB21, ... DBB194 and DBB202 if a
spindle is configured in a channel. These M functions are offered as extended M functions in
DB21, ... DBB68 ff. and in the relevant axis DBs, DB31, ... DBB86 ff.
Statement Description