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>
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>
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>
SysTaskLeave (FUN) ¶ FUNCTION SysTaskLeave : RTS_IEC_RESULT <description>This function is called to mark leaving the while loop.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskLeave RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param>
SysTaskResume (FUN) ¶ FUNCTION SysTaskResume : RTS_IEC_RESULT <description>Is called to resume the given task, if the task was suspended.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskResume RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param>
SysTaskSetExit (FUN) ¶ FUNCTION SysTaskSetExit : RTS_IEC_RESULT <description>Set the exit flag of the specified task. On the next cycle, the task will exit.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskSetExit RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param>
SysTaskSetInterval (FUN) ¶ FUNCTION SysTaskSetInterval : RTS_IEC_RESULT <description> Set the actual interval of a cyclic task. If the specified task is no cyclic task, the function return an error. This interface can be used to synchronize a task to another task or to events. </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskSetInterval RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to the task</param> ulInterval UDINT <param name=”ulInterval” type=”IN”>New interval of the task in microseconds!</param>
SysTaskSetPriority (FUN) ¶ FUNCTION SysTaskSetPriority : RTS_IEC_RESULT <description> Set the 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 SysTaskSetPriority RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param> ulPriority UDINT <param name=”ulPriority” type=”IN”>Task priority to set. Is the virtual priority between 0(highest)..255(lowest) and will be mapped to OS priority</param>