AxisGotNewTargetPosition
           
        
This function recognises, if the axis got a new position during the regular moving (e.g. with the function block FB_AxisNewTargPosAndVelo). Internally the status word of the cyclic axis interface from the NC to the PLC is analysed.
FUNCTION AxisGotNewTargetPosition : BOOL
VAR_INPUT
    nStateDWord  DWORD;
END_VARnStateDWord: Status word from the cyclic axis interface from the NC to the PLC.
| Return parameters | Description | 
|---|---|
| TRUE | A new target position was pretended. | 
| FALSE | No new target position was pretended at the axis reset and axis restart. | 
Requirements
| Development Environment | Target System | PLC Libraries to include | 
|---|---|---|
| TwinCAT v2.8 ( Build > 707 ) | PC (i386) | TcNc.Lib |