3 l_etc_setmasterstate (fb), L_etc_setmasterstate (fb), L_etc_setmasterstate (fb) ( 153) – Lenze EtherCAT Controller-based Automation User Manual
Page 153: 9function library l_iodrvethercat.lib
Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17
153
9
Function library L_IODrvEtherCAT.lib
9.6
State Machine Interface
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
9.6.3
L_ETC_SetMasterState (FB)
This function block sets the state of the EtherCAT master.
Visualisation: VISU_L_ETC_SetMasterState
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
L_ETC_SetMasterState
BOOL xExecute
xDone BOOL
WORD wState
xBusy BOOL
UDINT udiTimeOut
xError BOOL
eErrorCode L_ETC_ERRORCODE
Identifier/data type
Meaning/possible settings
xExecute
BOOL
A positive edge (TRUE) sets the EtherCAT master state given by wState.
wState
WORD
EtherCAT master state to be set of the
L_ETC_STATE (EtherCAT status) ( 158)
type
udiTimeout
UDINT
Timeout in milliseconds (ms)
• The value 0 is not permissible and causes the error ETC_E_INVALIDPARM
(0x9811000B).
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
eErrorCode
L_ETC_ERRORCODE
Error code of the incorrectly executed action (xError = TRUE).