6 ecatgetslavestate (fun), Ecatgetslavestate (fun), Ecatgetslavestate (fun) ( 106) – Lenze EtherCAT control technology User Manual

Page 106: Control technology | ethercat communication manual

Advertising
background image

Control technology | EtherCAT communication manual

EtherCAT function libraries

Function blocks and functions for master/slave states

106

L

DMS 3.1 EN 01/2011 TD17

9.5.6

ecatGetSlaveState (FUN)

Inputs (VAR_INPUT)

Return value

Function:

This function shows the current state of the slave (see chapter "

The

EC_T_STATE structure

"

( 98)

).

Library:

AtEm.lib

Visualisation:

-

Identifier/data type

Meaning/possible settings

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

pwReqDevState

POINTER TO WORD

Set value of the current slave 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

ecatGetSlaveState

DWORD

Current state of the slave

Advertising