EtherCAT Function Blocks that Work with Drive Parameters

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

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 ASCII SDO 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 this message in the Controller Log window:

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

Solution

When this happens we recommend:

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