TB_DriveReadError

Representation in FBD

General Information

With this fb it is possible to read all errors of a Baumüller drive. When the drive creates an error the fb read all errors and stores them in the array "a_ErrorList". Also the count of errors is stored. A succesfull reading is characterized by "x_ListDone = TRUE". A falling edge at the input "x_Acknowledge" deletes the content of "a_ErrorList" and the monitoring of new drive errors will start again.

With this fb it is also possible to read the actual error of drive continously. This function must be activated by "x_ContCheck = TRUE". When this function is used t_CheckCycle must be selected higher than 0. The activation and reactivation by "x_ContCheck" can be done at any time. Attention: The drive errors are readout via user data.

The functionblock detects itself which type of axis is connected!

Attention: Actually this fb is usable for:
BmaXX 32xx, BmaXX 33xx, BmaXX 44xx with Firmware-Version 3.11 or higher, BmaXX 52xx, BmaXX 53xx

Recommended task: Event
Libraries used: BM_TYPES_xxbd01 or higher

InOut Parameter

Marking: Data type: Description:
_Axis AXIS_REF axis reference

Input Parameter

Marking: Data type: Description:
x_Enable BOOL TRUE: Fb ist enabled
x_Acknowledge BOOL HL-edge: delete content of the array of drive's errors. Also start the monitoring of a new drive error.
x_ContCheck BOOL TRUE: enable continously readout of errors
t_CheckCycle TIME Interval of the continously readout; Attention: this value must be higher than 0, if the value is lower the readout doesn't work anymore.

Output Parameter

Marking: Data type: Description:
x_Error BOOL TRUE: Fb has an error
x_ListDone BOOL TRUE: List of errors was created successully and can be used
x_DriveError BOOL TRUE: fb has an error
x_DriveWarning BOOL TRUE: Drive has one or more warnings.
x_Active BOOL TRUE: Fb is active and waits for an error of the error
FALSE: when error list was created successfully
w_ErrorID WORD detail information abaut the errors of the Fb, for more information please read error list of fb
a_ErrorList INT_32_BMARRAY struct in which all configuration parameters are written.
a_ErrorList Description
a_ErrorList[0] number of errors
a_ErrorList[1] 1. drive error
a_ErrorList[2..20] 2. drive error to 20. drive error