MC_ReadAxisError_BkPlcMc

MC_ReadAxisError_BkPlcMc 1:
MC_ReadAxisError_BkPlcMc 2:

Available from version 3.0

This function block determines the current error code of an axis.

MC_ReadAxisError_BkPlcMc 3: Inputs

VAR_INPUT
    Enable:     BOOL;
END_VAR

Name

Type

Description

Enable

BOOL

TRUE at this input triggers an update of the error code.

MC_ReadAxisError_BkPlcMc 4: Inputs/outputs

VAR_IN_OUT
    Axis:       AXIS_REF_BkPlcMc;
END_VAR

Name

Type

Description

Axis

AXIS_REF_BkPlcMc

Here, the address of a variable of type AXIS_REF_BkPlcMc should be transferred.

MC_ReadAxisError_BkPlcMc 5: Outputs

VAR_OUTPUT
    Busy:       BOOL;
    Valid:      BOOL;
    Error:      BOOL;
    ErrorID:    UDINT;
    AxisErrorID:UDINT;
END_VAR

Name

Type

Description

Busy

BOOL

Indicates that a command is being processed.

Valid

BOOL

Successful determination of the actual position is indicated here.

Error

BOOL

Indicates TRUE, if the function block was unable to execute the required function.

ErrorID

UDINT

Provides a coded cause of error, if the function block was unable to execute the required function.

AxisErrorID

UDINT

Provides the current error code of the axis.

Behavior of the function block

The function block checks the axis interface that has been passed to it if TRUE is asserted at Enable. The current error code is reported as AxisErrorID. If Enable is FALSE, the function block cancels all pending output signals.

MC_ReadAxisError_BkPlcMc 6:

This function block requires no time and no preconditions for executing its tasks. The outputs Error and Busy will never assume the value TRUE and only exist for compatibility reasons.