SPRADH0 August 2024 AM625 , AM6442 , AM69 , TDA4VM
To view basic cycle time and jitter statistics in table format
To view frame specific statistics
To graphically view CPU Load measurements in real-time
To graphically view cycle time and jitter statistics in real-time
PROGRAM PLC_PRG
VAR
tTask : Task_Info2; (* Task Info *)
aIecTasks : ARRAY[1..20] OF Task_Info2; (* All Task Info *)
hCurrentTask : RTS_IEC_HANDLE := SysTypes.RTS_INVALID_HANDLE;
Result : RTS_IEC_RESULT; (* Result Code *)
pTaskInfo : POINTER TO Task_Info2;
hIecTask : RTS_IEC_HANDLE;
pResult : POINTER TO RTS_IEC_RESULT;
...
END_VAR
...
(* Retrieve information about the current task *)
IF hCurrentTask = SysTypes.RTS_INVALID_HANDLE THEN
hCurrentTask := IecTaskGetCurrent(pResult:=ADR(Result));
pTaskInfo := IecTaskGetInfo3(hIecTask:=hCurrentTask, pResult:=ADR(Result));
END_IF
...
Add a Trace object to your CODESYS project
To start the graphical interface in Trace object
To save the trace object content as csv or txt file