How calculate or get the Actual Execution time
I need to use the Actual Execution Time on code. I can see it on Task Overview, but I did not find a function that I can get this value.
I tried to calculate this by time, however it did not work because my Cycle time is 500ms, so the millisecond are update over this rate.
Is there any way to calculate or a function to get this value?
In system diagnostics is there any parameter which Could I use?
Voted best answer
First, you don't have Actual Execution time per application, you have it per Task. If you have only 1 task in your application, it can be calculated. If not, I am afraid not.
From the SystemDiagnostics Function Block, you can have the CyclicLoadPerCent output.
For application with only 1 task:
CyclicLoadPerCent = Actual Execution time / Task time
From that you can calculate Actual Execution time.
Thank you for answer.
I just typed wrong, I mean task.
The application has 4 tasks.
On task overview we can see it, so that I thought somewhere else they calculate it, I can see Actual Execution Time for each task.
I am developing a FDB that estimate the time for machine position and I need the execution time to be accurate.