Control technology | ethercat communication manual – Lenze EtherCAT control technology User Manual

Page 104

Advertising
background image

Control technology | EtherCAT communication manual

EtherCAT function libraries

Function blocks and functions for master/slave states

104

L

DMS 3.1 EN 01/2011 TD17

Inputs (VAR_INPUT)

Outputs (VAR_OUTPUT)

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

pwNewReqDevState

WORD

Requested state

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

Advertising