Function block l_smc_readaxiserror, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 37

L-force | PLC Designer
Lenze Specific Functions
DMS 4.1 EN 03/2011 TD29
35
Function block L_SMC_ReadAxisError
Function library: L_SM3_DriveUtil.lib
This block serves to read the error code of a motion drive.
Inputs (VAR_IN)
Designator / Data type
Info / Setting options
Axis / AXIS_REF
Here, the axis structure for which the code is to be read is transferred.
xEnable / BOOL
Activates the function.
Outputs (VAR_OUT)
Designator / Data type
Value / Meaning
xValid / BOOL
Request has been executed
xBusy / BOOL
Request has been started
xError / BOOL
Request executed with error
wErrorID / WORD
Error number for this command to be executed, not the error number of the
drive
xAxisError / BOOL
Drive has signalled an error
dwAxisErrorID / DWORD
Read error number of the drive
Error messages
The following error messages have been stored:
Error number [hex]
Description
SMC_RP_PARAM_UNKNOWN:=130 Unknown code
SMC_RP_REQUESTING_ERROR:=131 Read request has been aborted, e.g. because the drive did not
respond in the prescribed time.
For the meaning of the drive error numbers, please refer to the drive documentation.