FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
08-23-2023 11:36 AM
Hello,
I am executing a task in the PLC on the CtrlX7. This runs cyclically with 1ms. In the task, an analog sensor is used. The problem is that I only get a value change in my trace every 4ms. The task is actually executed every 1ms. The EtherCat has a cycle time of 2ms. Therefore I would expect a value change at least every 2ms. I have this behavior with two sensors, so I exclude the sensors and the PLC task. How is the data written to the data layer? Is there a delay here? Why is it exactly twice the cycle time of EtherCat?
Solved! Go to Solution.
08-23-2023 02:48 PM
Hello, which kind / type/ brand of analoge IO are you using? Is it a Bosch Rexroth IO, then plase share the type plate / firmware version from CoE data.
Normally, based on the IO refresh time and if its a free running (2 cycles) or sync module (1 cycle/ every cycle) you can expect.
08-23-2023 04:11 PM
08-23-2023 04:20 PM - edited 08-23-2023 04:27 PM
I don't see the online view of the CoE, you shared offline data, I assume you have v1.0.2, in the ctrlX IO we did some optimizations, please see our download section for latest firmware. It's 1.2.x please update and check timing again. You can do via FoE download.
Timing depend on hardware internal processing time, this cannot be adjusted, hardware dependend
08-23-2023 04:30 PM
08-23-2023 04:33 PM
you see in the CoE software version 1.0.0, the old one, please update to 1.2.0
08-24-2023 09:44 AM
@V_A one additional info, when you use in the PLC task the TASK_EXTERNAL_EVENT, the external event need to be added in the scheduler as well, than you will get each EtherCAT cycle a new value. But keep in mind the PLC task is now coupled to the external event, when this doesn't run, the PLC task doesn't run too.
What to do is explained in the following How-To