Does the simulation mode affect timed loops

ray1981
2022-04-21
2022-04-28
  • 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.