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

Task execution problem

Anonymous
2009-10-08
2010-10-05
  • Anonymous - 2009-10-08

    Originally created by: Stefano.Casarini

    Hello,

    i have this critical problem with an automatic machine controlled by Codesys SP RTE for winXp.

    my application have 5 task, the application goes correctly in "running" state, but after a random time the automatic machine is freezed, in the configuration task the task are all in RUN but the counter cycle of every task is stop and all tasks should be stop...at this point the only solution is to restart the pc

    Why the tasks don't run?

    Other best solution??

    Best Regards

    Stefano

     
  • bschuster - 2009-10-09

    Hello,

    please post your application

     
  • spfeif - 2009-10-10

    Also check your cycle times. Are you doing any long processing tasks? Maybe the watchdog timer is tripping? Put a counter in each task and see if they are all being executed. Try disabling the application one task at a time and determine if there is something in one of the tasks that is causing an error. Try to isolate it.

     
  • shooter - 2010-10-05

    put the tasktime slower of a task not needed badly.
    check for overflow in a counter
    look for exits in a program, better is return. (they will leave the stack)

     

Log in to post a comment.