EtherCAT Function Blocks that Work with Drive Parameters

These function blocksClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. are used to work with driveClosed In electrical engineering, a drive is an electronic device to provide power to a motor or servo. Control device for regulating the speed, torque and position of a motor. A unit controlling a motor using the current and timing in its coils. parameters not supported by ML and MC functionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. 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.

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 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 MachineClosed The complete assembly of all connected parts or devices, of which at least one is movable. missed 1 cycle(s) of PLC execution.

Solution

When this happens we recommend: