TwinCAT NC Axis components Description of the contents of the individual fields: Numerical Control (NC) Basics 50 Version: 1.2 No.
Data type Byte Bit Def.- Range Variable name Variable name (from 2.11 or TcMc2) Description 18 REAL64 80-87 - ±∞ fPosSoll SetPos Set position (calculated absolute value) 19 REAL64 88-95 - ±∞ fVeloSoll SetVelo Set velocity 20 REAL64 96-10 3 - ±∞ fAccSoll SetAcc Set acceleration 21 REAL64 104-1 11 - ±∞ fPosTarget TargetPos Estimated target position of the axis from TwinCAT V2.10 Build 1311 22 REAL64 112-1 19 - >∞ fModuloPosSoll ModuloSetPos Modulo set position (calculate value in, for example, degrees) from TwinCAT V2.10 Build 1311 23 INT32 120-1 23 - ±∞ nModuloTurnsSol l ModuloSetTurns Modulo set rotations from TwinCAT V2.10 Build 1311 24 UINT16 124-1 25 - ≥0 nCmdNo CmdNo Command number of the active axis job (see BufferMode) from TwinCAT V2.10 Build 1311 25 UINT16 126-1 27 - ≥0 nCmdState CmdState Command status information (see Buffer Mode) from TwinCAT V2.10 Build 1311 Define Referencing state of the axis (nCalibrationState or HomingState) 0 Referencing process completed (READY) 1 Continuous start in the direction of the referencing cam.
Info: If the cam is occupied at the beginning, then the program starts directly with referencing status 3. 2 Wait for positive edge of the referencing cam and initiate axis stop 3 Wait until the axis is stopped (check whether cam is still occupied) and then endless start of the referencing cam in the direction of the sync pulse 4 Wait for falling edge of the referencing cam 5 Activate latch, wait until latch has become valid and then initiate axis stop