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

POU Execution Time

tonypdean
2015-10-11
2016-01-05
  • tonypdean - 2015-10-11

    Is there a way to monitor how long a pou takes to execute, or how much 'spare' time there is before it is called again? I have a pou that writes data to a file and i want to be sure that i dont call it too fast. I only really need to do this within the codesys development environment.

     
  • tonypdean - 2015-10-11

    OK, just a case of RTFM. I am using a Wago 750-8202 and there is a page in the web server which provides exactly this info.

     
  • shooter - 2015-10-11

    the answer is not as simple as the question.
    1
    you can find the executiontime in the tasks when running, however communication is not done in the pou, but in the overhead , meaning you will need to do 2 measurements one with file and the other without.
    the diff is the time.
    2
    this time is never the same and fluctuates due to timing of interupts etc.
    3.
    check if buffer empty, then you can start next writing.
    a plc is not the best daqsystem so check what is needed and the speed needed

     
  • jethridge - 2016-01-05

    You can make that POU a timed task in task configuration. Create a task, set it to cyclic and define your interval time, then add which POUs you want to call in that task.

     

Log in to post a comment.