beautypg.com

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

Page 918

background image

L-force | PLC Designer

Device Editors

916

DMS 4.1 EN 03/2011 TD29

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 occurs . 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.

szDataWritten

Number of written Bytes; will be set to szSize after successful writing.

ETC_CO_SdoWrite4
This function block, which is provided with the library IODrvEtherCAT.library, serves to
write EtherCAT slave parameters. In contrast to ETC_CO_SdoWrite only parameters
not 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.