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

Page 919

Advertising
background image

L-force | PLC Designer

Device Editors

DMS 4.1 EN 03/2011 TD29

917

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.

abyData

This array of 4 Bytes contains the data to be written. The data must be stored
according to Intel Byteorder.

usiDataLength

Number of bytes to be written (1,2,4).


Output parameters:

xDone

This output will get TRUE as soon as the writing of the parameter has been
finished successfully.

xBusy

This output is TRUE as long as the writing has not yet been finished.

xError

This output will get TRUE, if an error is detected. eError will show the cause.

eError

This output (type ETC_CO_ERROR) shows the cause of the detected error, which is
indicated by xError. For example "ETC_CO_TIMEOUT" in case of an timeout.

udiSdoAbort

In case of an error detected in the device, this output will provide more detailed
information on the error.

ETC_CO_SdoWriteDWord
This function block, which is provided with the library IODrvEtherCAT.library, like
function block ETC_CO_SdoWrite4 serves to write EtherCAT slave parameters.
However the data to be written data will not be given as an array but as a DWORD
(dwData). If byte swapping is necessary, this will be done automatically. Thus the value
to be written can be specified directly.

ETC_CO_SdoWriteAccess
This function block, which is provided with the library IODrvEtherCAT.library, like
function block ETC_CO_SdoWrite serves to write EtherCAT slave parameters.
However by the additional input xCompleteAccess (BOOL) the complete index with all
entries can be written. If for this purpose xCompleteAccess is set to TRUE, bySubIndex
must be 0. A further input, byChannelPriority (BYTE) can be used to specify the
respective data element (channel and priority) in the CoE Mailbox message.




Advertising