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

Does the simulation mode affect timed loops

  • ray1981

    ray1981 - 2022-04-21

    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.

  • dFx

    dFx - 2022-04-28

    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.


Log in to post a comment.