Spindle specific variables (V.SPDL.)
The code for spindle-specific variables is "V.SPDL. ...".
V.SPDL.<> var_name | Significance | Data type | Unit of In/ Output | Enabled Read / |
---|---|---|---|---|
LOG_AX_NR.S | Logical axis number of a spindle | Integer | - | R |
PLC_CONTROL.S | Is spindle a PLC spindle? If yes, then 1 | Boolean | 0 , 1 | R |
NBR_IN_CHANNEL | Total number of available spindles in the current NC channel | Integer | - | R |
M_FCT_FREE | How is the classification of the M functions M3, M4, M5, M19? Explicitly defined as spindle M functions: 0 Free available for other techno functions: 1 Caution: Write access causes permanent actualisation of internal channel parameter data(P-CHAN-00098) | Boolean | 0 , 1 | L/S |
Programming example
Firstly before programming of a spindle it is checked, weather it is known in the channel
...
N10 G90 Y0
N20 $IF EXIST[V.SPDL.LOG_AX_NR.S] == TRUE
N30 M3 S1000 (Spindle S with speed 1000 rpm)
N40 $ELSE
N50 #MSG ["Spindle S is not available!"] (Message output and stop)
N55 M0
N60 $ENDIF
...
M30