4 ecatsetslavestateasync (fb), Ecatsetslavestateasync (fb), Ecatsetslavestateasync (fb) ( 103) – Lenze EtherCAT control technology User Manual

Page 103: Control technology | ethercat communication manual

Advertising
background image

DMS 3.1 EN 01/2011 TD17

L

103

Control technology | EtherCAT communication manual

EtherCAT function libraries

Function blocks and functions for master/slave states

Outputs (VAR_OUTPUT)

9.5.4

ecatSetSlaveStateAsync (FB)

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).

Function:

This function block sets a specific slave to the state requested at the

block (see chapter "

The EC_T_STATE structure

"

( 98)

). The function

block can only be executed if the master is in the Operational state.

Library:

AtEm.lib

Visualisation:

VISU_ecatSetSlaveStateAsync

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.

Advertising