Etc_co_sdoreaddword, Etc_co_sdoread_access, Etc_co_sdoread_channel – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 916: L-force | plc designer

Advertising
background image

L-force | PLC Designer

Device Editors

914

DMS 4.1 EN 03/2011 TD29

Output parameters:

xDone

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

xBusy

This output is TRUE as long as the reading 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.

abyData

This is an array of 4 Bytes to which the read parameter data will be copied.
If 1 Byte have been read, this will be stored in index 1 of the array. Values of 2
resp. 4 Bytes will be copied to the array according to Intel Byteorder.

usiDataLength

Number of read bytes (1,2,4).

ETC_CO_SdoReadDWord
This function block, which is provided with the library IODrvEtherCAT.library, like
function block ETC_CO_SdoRead4 serves to read EtherCAT slave parameters. However
the read data will be not be copied to an array but to a DWORD (dwData). If byte
swapping is necessary, this will be done automatically. Thus the read value can be
directly used for further processing.

ETC_CO_SdoRead_Access
This function block, which is provided with the library IODrvEtherCAT.library, like
function block ETC_CO_SdoRead serves to read EtherCAT slave parameters. However
by the additional input xCompleteAccess (BOOL) it allows to read the complete index
with all entries. For this purpose xCompleteAccess must be TRUE and bySubIndex must
be 0.

ETC_CO_SdoRead_Channel
This function block, which is provided with the library IODrvEtherCAT.library, like
function block ETC_CO_SdoRead_Access serves to read all EtherCAT slave parameters.
However there is an additional input byChannelPriority (BYTE) for specifying channel
and priority within the CoE mailbox message. The first 6 bits of the byte specify the
channel, the last 2 bits specify the priority.

Advertising