GetTaskInfo (FUNC)

Navigation:  Libraries > CT Task Access >

GetTaskInfo (FUNC)

Previous pageReturn to chapter overviewNext page

The GetTaskInfo function returns a value of type Task_Info. This contains information relating to the current task.

 

Inputs: None

 

Return value: Task_Info; structure of task information.

 

Example in FBD:

 

GetTaskInfo

 

Example in ST:

 

PROGRAM Freewheeling

VAR

 GetTaskInfo: CTTask.Task_Info;

 info: CTTask.Task_Info;

END_VAR

 

 

info := CTTask.GetTaskInfo();