MC_ReadAxisError (FB)ΒΆ

FUNCTION_BLOCK MC_ReadAxisError

This function block reads general axis errors reported by the drive. Additionally it returns information about the software limit switches.

It does not return:
  • Errors detected by AXIS_REF_SM3 such as software position lag errors. These errors can be checked with MC_ReadStatus, output ErrorStop.

  • Errors related to specific function blocks. These are reported by the Error/ErrorID outputs of the respective function block.

InOut:

Scope

Name

Type

Comment

Inout

Axis

AXIS_REF_SM3

Reference to the axis

Input

Enable

BOOL

While TRUE, the output value updates the parameter value continuously.

Output

Valid

BOOL

TRUE: Valid outputs are available.

Busy

BOOL

TRUE: Execution of the function block has not finished yet.

Error

BOOL

TRUE: An error has occurred within the function block.

ErrorID

SMC_ERROR

Error identification

AxisError

BOOL

TRUE: An axis error has occured. This is the value of parameter 1030.

AxisErrorID

DWORD

Drive specific identification of the axis error. This is the value of parameter 1031.

SWEndSwitchActive

BOOL

TRUE: Software limits are exceeded. Only TRUE while the axis is in state errorstop. Reset as soon as the limit switch error has been acknowledged using MC_Reset.