7 l_etc_coe_sdowriteex (fb), L_etc_coe_sdowriteex (fb), L_etc_coe_sdowriteex (fb) ( 135) – Lenze EtherCAT Controller-based Automation User Manual

Page 135: 9function library l_iodrvethercat.lib

Advertising
background image

Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17

135

9

Function library L_IODrvEtherCAT.lib

9.2

CoE Interface

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

9.2.7

L_ETC_CoE_SdoWriteEx (FB)

This function block triggers downloading of a CoE object (SDO) to the slave or to the master.
Visualisation: VISU_L_ETC_CoE_SdoWriteEx

Complete access
By setting bit 0 at dwFlags, all subindices of an object are read by the slave using a single SDO

service. The following rules apply for transmission via "complete access":

• Subindex 1 always begins at an even byte address.
• Boolean/bit variables are packed in bytes. Following non-bit objects begin at the next byte

address.

• Non-existent subindices do not require any memory space.
• "Complete access" can start with subindex 0 or subindex 1. Other subindices are not permitted.

Note!

For executing the function block, the EtherCAT master and the slave must be at least in

the "Pre-Operational" state.

L_ETC_CoE_SdoWriteEx

BOOL  xExecute

xDone  BOOL

BOOL  xAbort

xBusy  BOOL

USINT  usiCom

xError  BOOL

UINT  uiDevice

eErrorCode  L_ETC_ERRORCODE

DWORD  dwFlags

udiSdoAbort  UDINT

WORD  wIndex

BYTE  bySubindex

UDINT  udiTimeOut

CAA_PVOID  pBuffer

CAA_SIZE  szSize

Advertising