Im trying to make a timed loop with a TON and place each second a value in a array. So the counter of the for loop with add each second the new value to the array. But when I run in simmulation mode I would expect to see the array getting new values each second. Unfortunately I only see after a couple of seconds (i.e. the interval loop time) all values appearing.
Is this normal behaviour? Im using CodesysV2.3.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello All,
Im trying to make a timed loop with a TON and place each second a value in a array. So the counter of the for loop with add each second the new value to the array. But when I run in simmulation mode I would expect to see the array getting new values each second. Unfortunately I only see after a couple of seconds (i.e. the interval loop time) all values appearing.
Is this normal behaviour? Im using CodesysV2.3.
Well, I would just use a task for this, triggered every second. That would be more efficient.
Anyway, show us your code, and you might be helped.