Spindle-specific variables (V.SPDL., V.SPDL_PROG.)
The identifier for variables that permit access to configuration-specific spindle data is "V.SPDL. ...".
The identifier for spindle data assigned by programming is "V.SPDL_PROG. …".
| 
 V.SPDL.<name> | 
 Meaning | 
 Data type | 
 Unit | Permitted access | 
| LOG_AX_NR.S | Logical axis number of the spindle | Integer | - | L | 
| PLC_CONTROL.S | Is spindle a PLC spindle? If yes, then 1 | Boolean | 0 , 1 | L | 
| NBR_IN_CHANNEL | Total number of available spindles in the current NC channel | Integer | - | L | 
| M_FCT_FREE | What is the classification of the M functions M3, M4, M5, M19? Explicitly defined as spindle M functions: 0 Freely available for other technology functions: 1 | Boolean | 0 , 1 | R/W * | 
Attention

* Write access causes permanent change to internal channel parameters (P-CHAN-00098).
| 
 V.SPDL_PROG.<name> | 
 Meaning | 
 Data type | 
 Unit | Permitted access | 
| SPEED.S | Current speed S.. of spindle | Real | [rpm] | L | 
| MOVE_CMD.S | Current motion type of spindle: For M3: 3 , for M4: 4 , for M5: 5 | Integer | - | L | 
| POSITION.S | Current set position S.POS.. of spindle for M19 | Integer | [°] | L | 
| MAX_SPEED.S | Maximum speed G196 S.. of spindle with G96. | Real | [rpm] | L | 
| CONST_CUT_SPEED.S | Constant cutting speed G96 S.. for turning work. Only for main spindles. | Real | [m/min, ft/min ** ] | L | 
| DWELL_ROT_COUNT.S | Dwell time G04 S.. in number of spindle revolutions. | Real | [rpm] | L | 
| GEAR_DATA_STEP.S | Currently set gear stage G112 S.. | Integer | - | L | 
| GEAR_LINK_ACTIVE.S | Does axis participate in a programmed axis coupling (#GEAR LINK ON […])? [as of V3.1.3081.12 or V3.1.3119.0] | Boolean | 0, 1 | LFLush | 
** [as of V2.11.2032.08 with G70 and P-CHAN-00360 = 1]
Programing Example

A check is first made before programming a spindle whether it is known in the channel:
…
N10 G90 Y0
N20 $IF EXIST[V.SPDL.LOG_AX_NR.S] == TRUE
N30 M3 S1000 (Spindle S at speed 1000 rpm)
N40 $ELSE
N50 #MSG ["Spindle S is not present!"] (Output message and stop)
N55 M0
N60 $ENDIF
...
M30