3 ecatsetmasterstateasync (fb), Ecatsetmasterstateasync (fb), Ecatsetmasterstateasync (fb) ( 102) – Lenze EtherCAT control technology User Manual
Page 102: Control technology | ethercat communication manual

Control technology | EtherCAT communication manual
EtherCAT function libraries
Function blocks and functions for master/slave states
102
L
DMS 3.1 EN 01/2011 TD17
9.5.3
ecatSetMasterStateAsync (FB)
Inputs (VAR_INPUT)
Function:
This function block sets the master and all slaves connected to the
state requested at the function block (see chapter "
"
Library:
AtEm.lib
Visualisation:
VISU_ecatSetMasterStateAsync
Note!
• State changes are usually carried out automatically by the control system. By
means of this function block you can change the state manually. Please note
that the bus system may become unstable if the state is changed manually.
• The ecatSetMasterStateAsync function block can be used to set the master
and the slaves to the Operationalstate. In this case, however, no re-
synchronisation of the distributed clocks initiated Use the
function block for this purpose.
Identifier/data type
Meaning/possible settings
bEnable
BOOL
The function block is activated in an edge-controlled manner:
• Positive edge (TRUE) = function block is executed.
dwTimeout
DWORD
Time-out in milliseconds
• If the action could not be carried out successfully after time-out, bError is set
to TRUE.
• The time required for the action depends on the structure of the EtherCAT
network.
eReqState
STATE
Requested state