TwinCAT NC Axis components fPosTarget : LREAL; (* Estimated target position *) fModuloPosSoll : LREAL; (* Setpoint modulo position (e.g. in degrees) *) nModuloTurnsSoll : DINT; (* Setpoint modulo turns *) nCmdNo : WORD; (* Continuous actual command number *) nCmdState : WORD; (* Command state *) END_STRUCT END_TYPE Numerical Control (NC) Basics 47 Version: 1.2 No. Data type Byte Bit Def.- Range Variable name Variable name (from 2.11 or TcMc2) Description 1 UINT32 0-3 - - nStateDWord StateDWord State double word.
See also detailed description of the StateDWord [} 51] 0 0/1 Operational Operational Axis is ready for operation 1 0/1 Homed Homed Axis is referenced ("axis calibrated") 2 0/1 NotMoving NotMoving Axis is logically stationary ("Axis not moving") 3 0/1 InPositionArea InPositionArea Axis is in position window (physical feedback) 4 0/1 InTargetPosition InTargetPosition Axis is at target position (PEH) (physical feedback) 5 0/1 Protected Protected Axis is in protected operation mode (e.g.
slave axis) 6 0/1 ErrorPropagation Delayed ErrorPropagationD elayed Axis signals a preliminary error warning (from TC 2.11) 7 0/1 HasBeenStopped HasBeenStopped Axis has been stopped or is presently executing a stop 8 0/1 HasJob HasJob Axis has job, is executing job 9 0/1 PositiveDirection PositiveDirection Axis moving to logically larger values 10 0/1 NegativeDirection NegativeDirection Axis moving to logically smaller values 11 0/1 HomingBusy HomingBusy Axis is referencing ("axis is being calibrated") 12 0/1 ConstantVelocity ConstantVelocity Axis has reached its constant velocity or rotary speed 13 0/1 Compensating Compensating Section compensation passive[0]/active[1] (see MC MoveSuperImposed) _ 14 0/1 ExtSetPointGenE nabled ExtSetPointGenEn abled Enable external setpoint generation 15 0/1 Operation mode not yet executed (Busy).
Not yet released! 16 0/1 ExternalLatchVali d ExternalLatchValid External latch value or measuring probe has become valid 17 0/1 NewTargetPos NewTargetPos Axis has received a new end position or a new velocity 18 0/1 Axis not in target position or cannot/will not reach it (e.g. axis stop). Not yet released! 19 0/1 ContinuousMotio n ContinuousMotion Axis executing endless positioning task