Skip to main content

Checking the Time Behavior

  1. Create a simple standard project with CODESYS.

  2. Configure the only task to 1ms cycle time.

  3. Program a counter variable as type DWORD that counts the cycles.

    As a result, you detect immediately whether the 1000th place is incremented approximately one time per second, as we want it in this case.

  4. In online mode, open the Monitoring tab in the Task Configuration.

    You see the jitter times which are calculated by the RTE. On a normal system, these fluctuate by ±100 μs.

If the hardware is equipped with a serial or parallel port, then you can use SysPort.library to program outputs at the individual pins of these ports in the project described above. Then you can examine the time behavior of CODESYS Control RTE very precisely by means of an oscilloscope.

If you have an EtherCAT slave with digital I/Os, then you can use these I/Os to perform very good measurements with the oscilloscope as well.

For more information, see: Configuring Real-Time Behavior on Special Platforms and Tab: Monitoring