TwinCAT NC Axis components See also: Notes on MC_Home Requirements 5.7.2 Description of StateDWord The StateDWord is a 32 bit data word in the axis interface NC->SPS [ } 46] . The detailed function of each status bit is described in the table below. Requirements Numerical Control (NC) Basics 51 Version:
1.2 Define Referencing state of the axis (nCalibrationState or HomingState) 6 If axis has stopped, then set actual position (actual position = reference position + braking distance) Define Coupling state of the axis (nCoupleState or CoupleState) 0 Single axis that is neither a master nor a slave (SINGLE) 1 Master axis with any number of slaves (MASTER) 2 Slave axis that is the master of another slave (MASTERSLAVE) 3 Slave axis only (SLAVE) Define Master:
motion state / travel phase of the continuous master axis (servo) (nAxisState or AxisState) 0 Setpoint generator not active (INACTIVE) 1 Setpoint generator active (RUNNING) 2 Velocity override is zero (OVERRIDE ZERO) _ 3 Constant velocity (PHASE VELOCONST) _ 4 Acceleration phase (PHASE ACCPOS) _ 5 Deceleration phase (PHASE ACCNEG) _ Define Master:
motion state / travel phase of the discrete master axis (rapid/creep) (nAxisState or AxisState) 0 Setpoint generator not active 1 Travel phase (rapid or slow traverse) 2 Switchover delay from rapid to slow traverse 3 Creep motion (within the creep distance) 4 Deceleration time (starting from the braking distance in front of the target) Define Slave: motion state / travel phase of the continuous slave axis (servo) (nAxisState or AxisState) Note: for the time being only for slaves of the synchronizing generator type!
0 Slave generator not active (INACTIVE) 11 Slave is in a movement pre-phase (PRE-PHASE) 12 Slave is synchronizing (SYNCHRONIZING) 13 Slave is synchronized and moves synchronously (SYNCHRON) Development environment Target platform PLC libraries to include TwinCAT v2.7.0 PC (i386) PlcNc.Lib TwinCAT v2.8.0 PC (i386) TcNC.Lib Bit Variable-Name Description 0 Operational Axis is ready for operation 1 Homed Axis has been referenced/ homed ("Axis calibrated") 2 NotMoving Axis is logically stationary ("Axis not moving") 3 InPositionArea Axis is in position window (physical feedback)