4 diagnostic interface, 1 l_etc_getemergency (fb), Diagnostic interface – Lenze EtherCAT Controller-based Automation User Manual
Page 141: L_etc_getemergency (fb), L_etc_getemergency (fb) ( 141), Based automation", release 3.4, Diagnostic interface ( 141), 9function library l_iodrvethercat.lib
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
141
9
Function library L_IODrvEtherCAT.lib
9.4
Diagnostic Interface
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
9.4
Diagnostic Interface
The "Diagnostic Interface" provides diagnostic blocks for the master and the slaves. The
L_ETC_GetErrorString function converts the internal error code into a readable string.
9.4.1
L_ETC_GetEmergency (FB)
This function block outputs CoE emergency frames which have been stored in a buffer by the I/O
driver before.
Visualisation: VISU_L_ETC_GetEmergency
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Note!
For executing the function block, the EtherCAT master and the slave must be at least in
the "Pre-Operational" state.
L_ETC_GetEmergency
USINT usiCom
xDone BOOL
BOOL xExecute
xBusy BOOL
BOOL xReset
xError BOOL
eErrorCode L_ETC_ERRORCODE
oEmcy L_ETC_COE_EMERGENCY
uiCount UNIT
Identifier/data type
Meaning/possible settings
usiCom
USINT
EtherCAT master instance number
• In the Lenze control technology R3.x, only instance number 1 is currently
supported. usiCom has been pre-assigned with 1, so that the input can be left
open.
• A value that does not equal 1 causes the error ETC_E_INVALIDPARM
(0x9811000B).
xExecute
BOOL
A positive edge (TRUE) activates a read request of a CoE emergency frame from the
buffer.
xReset
BOOL
A positive edge (TRUE) resets the buffer and deletes all CoE emergency frames saved
until then.
Identifier/data type
Meaning/possible settings
xDone
BOOL
• TRUE: An action has been executed successfully.
• FALSE: No action active / action is still being executed.
xBusy
BOOL
• TRUE: An action is currently being executed.
• FALSE: No action active
xError
BOOL
• TRUE: An error has occurred.
• FALSE: No error