Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
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.