2 ecatstopasync (fb), Ecatstopasync (fb), Ecatstopasync (fb) ( 101) – Lenze EtherCAT control technology User Manual
Page 101: Control technology | ethercat communication manual

DMS 3.1 EN 01/2011 TD17
L
101
Control technology | EtherCAT communication manual
EtherCAT function libraries
Function blocks and functions for master/slave states
9.5.2
ecatStopAsync (FB)
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function:
This function block sets the master and all slaves connected to the
"Initialization" state.
Library:
AtEm.lib
Visualisation:
VISU_ecatStopAsync
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.
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.
Identifier/data type
Meaning/possible settings
bDone
BOOL
FALSE: Function block is active or has not been called
TRUE: Function block has been executed.
bBusy
BOOL
FALSE: Function block is not active.
TRUE: Function block is active.
bError
BOOL
FALSE: No error
TRUE: An error has occurred.
dwErrorCode
DWORD
Display of a hexadecimal error code (see also
) if an
error has occurred (bError = TRUE).