2 ecatcoesdouploadreq (fb), Ecatcoesdouploadreq (fb), Ecatcoesdouploadreq (fb) ( 123) – Lenze EtherCAT control technology User Manual

Page 123: Control technology | ethercat communication manual

Advertising
background image

DMS 3.1 EN 01/2011 TD17

L

123

Control technology | EtherCAT communication manual

EtherCAT function libraries

Function blocks for CANopen over EtherCAT (CoE)

Outputs (VAR_OUTPUT)

9.8.2

ecatCoeSdoUploadReq (FB)

Inputs (VAR_INPUT)

Identifier/data type

Meaning/possible settings

bDone

BOOL

FALSE: Download is active.

TRUE: Download has been executed.

bBusy

BOOL

FALSE: Download is not active.

TRUE: Download 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 the

download has failed (bError = TRUE).

Function:

This function block activates the upload of a CoE parameter from the

slave to the master.

Library:

AtEm.lib

Visualisation:

VISU_ecatCoeSdoUploadReq

Identifier/data type

Meaning/possible settings

bExecute

BOOL

The function block is activated in an edge-controlled manner:

• Positive edge (TRUE) = function block is executed.

wObIndex

WORD

CANopen index

The indexes for codes can be calculated with 16#5FFF

hex

- code number.

byObSubIndex

BYTE

Object subindex

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.

wSlaveStationAddress

WORD

Station address of the slave

• Designation in the EtherCAT configurator: "EtherCAT address"

• Designation in the EtherCAT specification and parameter reference: "Physical

address".

Advertising