Caculating my program execution time

vinothsps

Level-1
Beiträge
6
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hi Everyone,

Another question on scan cycle:

I'm using Beckhoff SPS, and I set the scan cycle as 1ms. So far, all of my programs runs within 1ms. Is it possible to know exactly how much microseconds my program takes for one complete execution without using timers?
 
There is no way to get a precise (offline) calculation - too much factory to take into account.
Measuring the execution time is easy. Just look in online display of the task which runs the code. You have here two informations.
- the pure calculation time of a cycle of the code
- the complete time required from the start to the end of the code (including the time spend in tasks which have a higher priority and thus have put your plc code in the waiting orbit).

Guga

P.S. within the PLC there is also a system variable which holds one of the two informations
 
Zurück
Oben