
DMS 3.1 EN 01/2011 TD17 L 107
Control technology | EtherCAT communication manual
EtherCAT function libraries
Function blocks and functions for master/slave states
9.5.7 ecatGetSlaveStateAsync (FB)
Inputs (VAR_INPUT)
Outputs (VAR_OUTPUT)
Function: This function block shows the current state of the slave (see chapter
"The EC_T_STATE structure
" ( 98)).
Library: AtEm.lib
Visualisation: VISU_ecatGetSlaveStateAsync
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.
wSlaveStationAddress
WORD
Station address of the slave
• Designation in the EtherCAT configurator: "EtherCAT address"
• Designation in the EtherCAT specification and parameter reference: "Physical
address".
pwCurrDevState
POINTER TO WORD
Current state of the slave
pwNewReqDevState
POINTER TO WORD
State last requested at the slave.
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 System error messages
( 157)) if an
error has occurred (bError =TRUE).
Commenti su questo manuale