Function blocks for can over ethercat, Etc_co_sdoread, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 913

Advertising
background image

L-force | PLC Designer

Device Editors

DMS 4.1 EN 03/2011 TD29

911

First via Ethercat_Master.FirstSlave the first slave of the master is retrieved.
In the WHILE loop the respective instance is called and thereby wState is determined.
Then the state can be checked. With pSlave^.NextInstance the pointer on the next
slave gets retrieved. At the end of the list the pointer gets Null and the loop will be
exited.

IODrvEtherCAT library function blocks for "CAN over Ethercat"

Function blocks for CAN over EtherCAT
The EtherCAT library IODrvEtherCAT.library, which automatically will be included in
the project when an EtherCAT configuration is supported, i.a. contains function blocks
for reading and writing parameters. Thus the particular parameters can be checked
and modified also in online mode.
Multiple function blocks can be active at the same time. Internally the particular
requests will be handled in a queue and get processed successively.
See the following modules:
ETC_CO_SdoRead (reading a parameter which might be longer than 4 Bytes)
ETC_CO_ SdoRead4 (reading a parameter which is not longer than 4 Bytes)
ETC_CO_SdoReadDWord (reading a parameter and storing the value to a DWORD)
ETC_CO_SdoRead_Access (reading all entries)
ETC_CO_SdoRead_Channel (reading slave parameters)
ETC_CO_SdoWrite (writing a parameter which might be longer than 4 Bytes)
ETC_CO_SdoWrite4 (writing a parameter which is not longer 4 Bytes)
ETC_CO_SdoWriteDWord (writing parameter values given directly in a DWORD)
ETC_CO_SdoWriteAccess (writing slave parameters)

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

Advertising