beckhoff TwinCAT 2 — 5.7.1 NC->PLC axis interface (128 bytes)

TwinCAT NC Axis components Numerical Control (NC) Basics 49 Version: 1.2 No.

Data type Byte Bit Def.- Range Variable name Variable name (from 2.11 or TcMc2) Description 1 0/1 TargetPosMonitor ing ...TargetPosMonito ring Target position window monitoring 2 0/1 Loop ...Loop Looping distance 3 0/1 MotionMonitoring ...MotionMonitoring Physical motion monitoring 4 0/1 PEHTimeMonitori ng ...PEHTimeMonitori ng PEH time monitoring 5 0/1 BacklashComp ...BacklashComp Backlash compensation 6 0/1 DelayedErrorRea ction ...DelayedErrorRea ction Delayed error reaction of the NC 7 0/1 Modulo ...Modulo Modulo axis (modulo display) 8-1 5 0/1 RESERVE 16 0/1 PosLagMonitorin g ...PosLagMonitorin g Lag monitoring - position 17 0/1 VeloLagMonitorin g ...VeloLagMonitorin g Lag monitoring - velocity 18 0/1 SoftLimitMinMonit oring ...SoftLimitMinMoni toring End position monitoring min.

19 0/1 SoftLimitMaxMoni toring ...SoftLimitMaxMon itoring End position monitoring max. 20 0/1 PosCorrection ...PosCorrection Position correction ("Measuring system error compensation") 21 0/1 AllowSlaveComm ands ...AllowSlaveComm ands Allow motion commands to slave axes 22 0/1 RESERVE 23 0/1 ApplicationReque st ApplicationRequest Request bit for the application software (PLC code), e.g.

for an "ApplicationHomingRequest" from TwinCAT V2.11 Build 1546 24- 31 0/1 RESERVE 11 UINT16 40-41 - ≥0 nActiveControlLo opIndex ActiveControlLoopI ndex Active axis control loop index (identical with old variable "nCtrlLoopIndex") from TwinCAT V2.10 Build 1311 12 UINT16 42-43 - ≥0 nControlLoopInde x ControlLoopIndex Axis control loop index (0, 1, 2, if more than one axis control loop is used) from TwinCAT V2.10 Build 1311 13 REAL64 44-51 - ±∞ fPosIst ActPos Actual position (calculated absolute value) 14 REAL64 52-59 - >∞ fModuloPosIst ModuloActPos Modulo actual position (calculate value in, for example, degrees) 15 INT32 60-63 - ±∞ nModuloTurns ModuloActTurns Modulo actual rotations 16 REAL64 64-71 - ±∞ fVeloIst ActVelo Actual velocity (optional) 17 REAL64 72-79 - ±∞ fPosDiff PosDiff Lag error (position)