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

Max Cycle time of task

fpin
2018-04-06
2018-04-06
  • fpin - 2018-04-06

    Hi everyone,

    I have a project that has a task that is called with a cycle time of 50ms.

    I switch to online mode, select the Task Configuration object in the device tree and open the Monitor tab. Here I can see "Max. Cycle Time (Β΅s)". I want to know if it is possible to get this value with some function to be sure that it will never go over 50ms.

    And someone knows what happen to codesys if the task lasts more than his cycle time? The codesys will go in exception? And can I catch it in some mode?

     
  • josepmariarams - 2018-04-06

    See CmpIecTask library.

    You can ask about the actual task, and you can ask about maxCycletime,....

    If the task expends more time than your cycle time the plc launches an exception.

    Could be better for you to use an freewheeling task.

    Salut!

     

Log in to post a comment.