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:
Example in ST:
PROGRAM Freewheeling
VAR
GetTaskInfo: CTTask.Task_Info;
info: CTTask.Task_Info;
END_VAR
info := CTTask.GetTaskInfo();