I have KRC4 KSS8.3.34.
I want to program my own timers in SPS (because I need a lot of them).
For that I should want every scan of the SPS to increment an integer variable with the miliseconds of the last SPS scan cycle time. So my int variable would contain the elapsed time by accumulating the past sps cycle times.
For that I have a routine in SPS where every SPS cycle I write the elapsed milliseconds to an int variable.
After that write instruction I write the timer value to 0. I have now the impression that sometimes there is a 0 value in the integer variable, although always there is scan of the sps passed when the integer variable is written. Can I be sure after I write 0 to the timer value, that immediately the timer starts to increase?
Timers in SPS
-
SimotionD410 -
June 26, 2018 at 2:22 PM -
Thread is marked as Resolved.