EtherCAT Library - Drive

These function blocks are used to work with drive parameters that are not supported by ML and MC function blocks.

They support reading and writing drive parameters using the non-cyclic SDO channel in the EtherCATClosedEtherCAT is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT was to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs network. The ASCII name for the parameter is used as an input.

Execution Time

These function blocks typically take a longer time to execute (up to ten cycles to finish executing).
It takes the same amount of time to Read or Write a parameter.


  • It takes more than one cycle to execute these function blocks (but less than 100 ms).
    For more details about how to set up the update rate for SDO communication, refer to the FAQ

Reason

It is not only linked to the SDO ASCII communication. Because these FBs are waiting for the AKD drive to responds, the execution time can also increase due to the load of the AKD firmware at the time you call them.

Result

The PLCClosed"Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events code is overrunning the cycle duration. as explained in Tasking Model / Scheduling
As a consequence, you can see the following message in the Controller Log window:

"The Virtual Machine missed 1 cycle(s) of PLC execution"

Solution

When this happens we recommend to:

  • Use these function blocks sparingly in programs
  • Rely on the EtherCAT read/write SDO function blocks whenever possible
  • Smooth the load of the PLC code by executing these function blocks at the required update rate. For more details, click here...