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

Speed of TASK - EVENT (CODESYS Control for Raspberry Pi SL)

khar
2021-09-04
2021-09-06
  • khar - 2021-09-04

    Hi,

    Anyone knows how fast Task-Event gets updated? I understand this is like an "interruption". This is for CODESYS Control for Raspberry Pi SL. I know that for some PLCs this task is update very bus cycle but not sure for the Raspberry. I want to know how fast this is scanned since I have another micro that could trigger an interruption in less than 10us, which I find difficult the RASPI will detect. Thank you.

     
  • Ingo

    Ingo - 2021-09-04

    Hi!

    Those events are scanned in the Scheduler interval, which is by default 1ms on most systems. But those events are not useful for fast reactions.

    Some systems provide so called "external events". Those can be better compared with " interrupt handlers". But the raspi has no support for that.

    Your only chance is a quick cyclic task, in which you execute your code.

    Cheers,
    Ingo

     
  • khar - 2021-09-06

    hi @ingo,

    Thanks for your reply. I had a hunch that the scheduler task was going to be slow. The min cycle time on the raspi using codesys is 50us, it is "fast" but not fast enough. I will try other methods. Thanks again.

    Cheers,
    Khar

     

Log in to post a comment.