Task_Info2 (STRUCT)
TYPE Task_Info2 : STRUCT
Task information out of the task configuration
Task configuration menbers which are used with IecTaskCreate are marked with [c], status members are marked with [s].
Note for SIL2: This information is already inside of the data area, so we don’t need to tag it as safe anywhere.
- InOut:
Name
Type
Comment
dwVersionDWORD[c] Version of the structure (2)
pszNamePOINTER TO STRING
[c] Name of the task, mandatory
nPriorityINT[c] IEC priority of the task (0..31)
KindOfTaskINT[c] Kind of task. See corresponding category TaskType.
bWatchdogBOOL[c] Is TRUE, if watchdog is enabled
bProfilingBOOL[c] Is TRUE, if profiling is enabled (not used, FALSE recommended)
dwEventFunctionPointerPOINTER TO BYTE
[c] Function pointer to the event check routine, see IecTaskCreate
pszExternalEventPOINTER TO STRING
[c] Name of the event, if it is an external event task
dwTaskEntryFunctionPointerPOINTER TO BYTE
[c] Function pointer to the task code, mandatory, see IecTaskCreate
dwWatchdogSensitivityDWORD[c] Watchdog sensitivity
dwIntervalDWORD[c] Interval in microseconds
dwWatchdogTimeDWORD[c] Watchdog time in microseconds
dwCycleTimeDWORD[s] Cycle time in microseconds (last execution time)
dwAverageCycleTimeDWORD[s] Average cycle time in microseconds
dwMaxCycleTimeDWORD[s] Maximum cycle time in microseconds
dwMinCycleTimeDWORD[s] Minumum cycle time in microseconds
iJitterDINT[s] Jitter in microseconds
iJitterMinDINT[s] Minimal jitter
iJitterMaxDINT[s] Maximal jitter
dwCycleCountDWORD[s] Cycle counter
iStateWORD[s] Task state. See category TaskState.
wNumOfJitterDistributionsWORD[s] Number jitter statistical distribution entries
pJitterDistributionPOINTER TO Jitter_Distribution
[s] Statistical jitter distribution entries
bTimeSlicingBOOL[s] Timeslicing enabled
byDummyBYTEwDummyWORDdwIECCycleCountDWORD[s] Cycle counter for execution of user code