MC_ReadStatus

MC_ReadStatus 1:

The states of an axis are displayed with the function block MC_ReadStatus.

VAR_INPUT

VAR_INPUT
    Enable : BOOL;
END_VAR

Enable : The command is executed as long as the input is TRUE.

VAR_OUTPUT

VAR_OUTPUT
    Done               : BOOL;
    Error              : BOOL;
    ErrorID            : UDINT;
    Errorstop          : BOOL;
    Stopping           : BOOL;
    StandStill         : BOOL;
    DiscreteMotion     : BOOL;
    ContinousMotion    : BOOL;
    SynchronizedMotion : BOOL;
    Homing             : BOOL;
    ConstantVelocity   : BOOL;
    Accelerating       : BOOL;
    Decelerating       : BOOL;
END_VAR

Done : Becomes TRUE, if the states were determined successfully.

Error: Becomes TRUE, as soon as an error occurs.

ErrorID : Supplies the error number when the Error output is set.

Errorstop : Becomes TRUE as soon as an axis error occurs.

Stopping : Becomes TRUE as soon as the axis is in the braking phase.

StandStill : Becomes TRUE as soon as the axis is stationary.

DiscreteMotion : Becomes TRUE as soon as the axis is moved by a discrete motion.

ContinousMotion : Becomes TRUE as soon as the axis is moved by a continuous motion.

SynchronizedMotion : Becomes TRUE as soon as the axis is coupled.

Homing : Becomes TRUE as soon as the axis is referenced.

ConstantVelocity : Becomes TRUE as soon as the axis travels with constant velocity.

Acceleration : Becomes TRUE as soon as the axis accelerates.

Deceleration : Becomes TRUE as soon as the axis decelerates.

VAR_IN_OUT

VAR_IN_OUT
    Axis : NCTOPLC_AXLESTRUCT;
END_VAR

Axis : Axis structure.

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.8

PC (i386)

TcMC.Lib