SysTaskGetContext (FUN) ¶ FUNCTION SysTaskGetContext : RTS_IEC_RESULT <description>Get the current register context of the task. Task must be in suspended mode!</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetContext RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param> pContext POINTER TO RegContext <param name=”pContext” type=”OUT”>Pointer to context</param>
SysTaskGetCurrent (FUN) ¶ FUNCTION SysTaskGetCurrent : RTS_IEC_RESULT <description>Returns the handle of the current running task.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetCurrent RTS_IEC_RESULT Input phTask POINTER TO RTS_IEC_HANDLE <param name=”phTask” type=”OUT”>Pointer to task handle</param>
SysTaskGetCurrentOSHandle (FUN) ¶ FUNCTION SysTaskGetCurrentOSHandle : RTS_IEC_RESULT <description>Returns the operating system handle of the current running task.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetCurrentOSHandle RTS_IEC_RESULT Input puiTaskOSHandle POINTER TO RTS_IEC_HANDLE <param name=”puiTaskOSHandle” type=”OUT”>Pointer to operating system task handle</param>
SysTaskGetInfo (FUN) ¶ FUNCTION SysTaskGetInfo : RTS_IEC_RESULT <description>Returns the task info of the specified task.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetInfo RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param> ppInfo POINTER TO POINTER TO SYS_TASK_INFO <param name=”ppInfo” type=”OUT”>Pointer pointer to get task info structure</param>
SysTaskGetInterval (FUN) ¶ FUNCTION SysTaskGetInterval : RTS_IEC_RESULT <description>Get the actual interval of a cyclic task. If the specified task is no cyclic task, the function return an error.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetInterval RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to the task</param> Inout pulInterval UDINT <param name=”pulInterval” type=”OUT”>Interval of the task in microseconds!</param>
SysTaskGetOSHandle (FUN) ¶ FUNCTION SysTaskGetOSHandle : RTS_IEC_HANDLE <description>Function to get the operating system specific handle.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetOSHandle RTS_IEC_HANDLE Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param>
SysTaskGetName (FUN) ¶ FUNCTION SysTaskGetName : POINTER TO STRING <description>Returns the task name of the specified task.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetName POINTER TO STRING Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param> pResult POINTER TO RTS_IEC_RESULT <param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>
SysTaskGetOSPriority (FUN) ¶ FUNCTION SysTaskGetOSPriority : RTS_IEC_RESULT <description>Returns the operating system priority of the given task.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetOSPriority RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param> pulOSPriority POINTER TO UDINT <param name=”pulOSPriority” type=”OUT”>Pointer to get operating system priority</param>
SysTaskGetPriority (FUN) ¶ FUNCTION SysTaskGetPriority : RTS_IEC_RESULT <description>Get the runtime system priority of the given task.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskGetPriority RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” TYPE=”IN”>Handle to the task</param> pulPriority POINTER TO UDINT <param name=”pulPriority” type=”OUT”>Pointer to get priority</param>
SysTaskJoin (FUN) ¶ FUNCTION SysTaskJoin : RTS_IEC_RESULT <description>Is used to wait for exit of the specified join task.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskJoin RTS_IEC_RESULT Input hTaskToJoin RTS_IEC_HANDLE <param name=”hTaskToJoin” type=”IN”>Task to join</param> ulTimeoutMs UDINT <param name=”ulTimeoutMs” type=”IN”>Timeout in milliseconds to wait for join task</param>