IecTaskGetNext (FUN) ¶ FUNCTION IecTaskGetNext : RTS_IEC_HANDLE Get the first IEC task in the specified application InOut: Scope Name Type Comment Return IecTaskGetNext RTS_IEC_HANDLE Returns the andle to the first IEC task Input pszAppName POINTER TO STRING Application name hPrevIecTask RTS_IEC_HANDLE Handle to the previous task pResult POINTER TO RTS_IEC_RESULT Pointer that returns the runtime system error code (see CmpErrors.library)
IecTaskGetOmittedCycleCounters (FUN) ¶ FUNCTION IecTaskGetOmittedCycleCounters : RTS_IEC_RESULT Returns the omitted cycle counters of the specified IEC task. InOut: Scope Name Type Comment Return IecTaskGetOmittedCycleCounters RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors.library) Input hIecTask RTS_IEC_HANDLE Handle of the task Inout omittedCycleCounters IecTaskOmittedCycleCounters Omitted cycle counters
IecTaskGetProfiling (FUN) ¶ FUNCTION IecTaskGetProfiling : BOOL InOut: Scope Name Type Return IecTaskGetProfiling BOOL
IecTaskGetWatchdogHitCount (FUN) ¶ FUNCTION IecTaskGetWatchdogHitCount : RTS_IEC_RESULT Function returns the watchdog hit count information of the specified task InOut: Scope Name Type Comment Return IecTaskGetWatchdogHitCount RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors.library) Input hIecTask RTS_IEC_HANDLE Handle to the specified task pWatchdogHitCount POINTER TO Task_WatchdogHitCount A pointer to the Task_WatchdogHitCount structure wWatchdogHitCountSize WORD The size of the Task_WatchdogHitCount structure
IecTaskOmittedCycleCounters (STRUCT) ¶ TYPE IecTaskOmittedCycleCounters : STRUCT Omitted cycle counters InOut: Name Type omittedCycles DWORD consecutiveOmittedCycles DWORD
IecTaskReload (FUN) ¶ FUNCTION IecTaskReload : RTS_IEC_HANDLE Reload a specified IEC task. Reload means here: Delete the task at the actual position and create it newly. InOut: Scope Name Type Comment Return IecTaskReload RTS_IEC_HANDLE Handle to the new created task Input hIecTask RTS_IEC_HANDLE Handle to the task to reload udiTimeoutMs UDINT Timeout in milliseconds to wait, until the task deleted itself. Timeout can be one of the following predefined values: RTS_TIMEOUT_DEFAULT: Default timeout to delete the task RTS_TIMEOUT_NO_WAIT: Immediate deletion of the task See Timeouts details. pResult POINTER TO RTS_IEC_RESULT Pointer to error code
IecTaskResetStatistics (FUN) ¶ FUNCTION IecTaskResetStatistics : RTS_IEC_RESULT Reset the task statistics of a task (see Task_Info member e.g. dwCycleTime, dwAverageCycleTime, etc.) InOut: Scope Name Type Comment Return IecTaskResetStatistics RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors.library) Input hIecTask RTS_IEC_HANDLE Handle of the task
Jitter_Distribution (STRUCT) ¶ TYPE Jitter_Distribution : STRUCT Jitter distribution InOut: Name Type Comment wRangeMax WORD Maximal range wCountJitterNeg WORD Jitters events negative wCountJitterPos WORD Jitter event positive
TaskState (GVL) ¶ Task status definitions InOut: Scope Name Type Initial Constant TS_NOT_CREATED WORD 16#0 TS_VALID WORD 16#1 TS_ACTIVE WORD 16#2 TS_SUSPENDED WORD 16#4 TS_DELETED WORD 16#8 TS_EXCEPTION WORD 16#10 TS_WATCHDOG_ENABLE WORD 16#40 TS_DISABLE_TASK_TIME WORD 16#80 TS_ACTIVATED WORD 16#100 TS_TOACTIVATE WORD 16#200 TS_STOP WORD 16#400 TS_HALT_ON_BP WORD 16#800 TS_SINGLE_CYCLE WORD 16#1000 TS_WATCHDOG_ENABLE2 WORD 16#2000
TaskType (GVL) ¶ IEC task types InOut: Scope Name Type Initial Constant TaskCyclic INT 16#0 TaskEvent INT 16#1 TaskExternal INT 16#2 TaskFreewheeling INT 16#3