MC_ReadStatus (FB)

FUNCTION_BLOCK MC_ReadStatus

This function block returns in detail the status of the axis with respect to the motion currently in progress.

../../../../../../_images/plcopen.png
InOut:

Scope

Name

Type

Comment

Input

Enable

BOOL

Read continuously on “TRUE”

Output

Valid

BOOL

Value is available

Error

BOOL

Signals that error has occurred within function block

ErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

Errorstop

BOOL

Axis is in specific state

Disabled

BOOL

Axis is in specific state

Stopping

BOOL

Axis is in specific state

StandStill

BOOL

Axis is in specific state

DiscreteMotion

BOOL

Axis is in specific state

ContinuousMotion

BOOL

Axis is in specific state

SynchronizedMotion

BOOL

Axis is in specific state

Homing

BOOL

Axis is in specific state

ConstantVelocity

BOOL

Axis is in specific state, Motor moves with constant velocity

Accelerating

BOOL

Axis is in specific state, Increasing energy of the motor

Decelerating

BOOL

Axis is in specific state, Decreasing energy of the motor

KernelError

BOOL

It reflects the real error occured on the kernel

KernelWarning

BOOL

It reflects the warning for the kernel

Inout

Axis

Axis_Ref

Reference to axis