How to access task cycle in program

Chag
2012-11-07
2012-11-23
  • Chag - 2012-11-07

    I know that through TaskConfiguration I can configure or Monitor when i'm online the task cycle ( average, time... in micro sec ). How can I get those informations through program ?

     
  • sarathbabu - 2012-11-08

    Hi,

     Use SysIECTaskGetInfo function of type BOOL from SysLibIECTasks.lib to get the information of an IEC task.
    

    Have a GOOD DAY

     
  • shooter - 2012-11-12

    use a time() and when same routine is done again (main loop subtracte newtime with oldtime.

     
  • eschwellinger

    eschwellinger - 2012-11-23

    Hi,
    you could use the implcit generated instance which is used by SyslibTaskinfo.lib

    _callTask+'Name of the Task'

    Example:
    Your Task is called ErsteTask then use _callTaskErsteTask

    cu
    Edwin

    IMG: callErsteTask.png

     

Log in to post a comment.