MC_ReadAxisError_BkPlcMc (from V3.0)

MC_ReadAxisError_BkPlcMc (from V3.0) 1:

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

MC_ReadAxisError_BkPlcMc (from V3.0) 2: 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 (from V3.0) 3: Inputs/outputs

VAR_INOUT
    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 (from V3.0) 4: Outputs

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

Name

Type

Description

Busy

BOOL

Indicates that a command is being processed.

Done

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 (from V3.0) 5:

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.