Etc_co_sdowrite, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 917

Advertising
background image

L-force | PLC Designer

Device Editors

DMS 4.1 EN 03/2011 TD29

915

ETC_CO_SdoWrite
This function block, which is provided with the library IODrvEtherCAT.library, serves to
write EtherCAT slave parameters. In contrast to ETC_CO_SdoWrite4 also parameters
longer than 4 Bytes will be supported. The parameter to be written is specified by
Index and Subindex as used in the object dictionary.

Input parameters:

xExecute

On a rising edge at this input the writing of the slave parameter will be started. In
order to get the internal channel de-allocated, the instance must be called at least
once by "xExecute:= FALSE".

xAbort

If this input is TRUE, the current write process will be aborted.

usiCom

Number of the EtherCAT Masters: If only one EtherCAT Master is used, usiCom
always is "1". In case of multiple masters use "1" for the first, "2" for the second,
etc.

uiDevice

Physical address of the slave.
If the autoconfiguration mode in the master is deactivated , an own address can
be set in the slave. That arbitrarily chosen address must be entered here.
If the autoconfiguration mode is activated, the first slave will get address "1001".
The current address of a slave always can be checked in the Slave configuration
dialog in field „EtherCAT address“.

usiChannel

Reserved for future extensions. Currently not used.

wIndex

Index of the parameter in the object dictionary.

bySubIndex

Subindex of the parameter in the object dictionary.

udiTimeout

Here you can set a timeout in milliseconds. If the writing of the parameter has not
been executed within this time, an error message will be generated.

pBuffer

Pointer on a the buffer which contains the data to be written.

szSize

Size of the data to be written, in Bytes.

eMode

This input (enumeration ETC_CO_MODE) defines the number of bytes to be
written: Possible values are: ETC_CO_AUTO, ETC_CO_EXPEDITED or
ETC_CO_SEGMENTED. Usually the AUTO-mode is used, because then
automatically that mode, which matches the data length, will be used.

Advertising