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>
SysTaskSuspend (FUN) ¶ FUNCTION SysTaskSuspend : RTS_IEC_RESULT <description> Is called to suspend the given task. </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskSuspend RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param>
SysTaskWaitInterval (FUN) ¶ FUNCTION SysTaskWaitInterval : RTS_IEC_RESULT <description> Wait to the next interval to be activated, if OS supports cyclic task. </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskWaitInterval RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param>
SysTaskWaitSleep (FUN) ¶ FUNCTION SysTaskWaitSleep : RTS_IEC_RESULT <description>S This function serves to pause the processing of a running task for a time interval specified in milliseconds. Processing will be continued after the time interval elapsed. </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTaskWaitSleep RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param> ulMilliSeconds UDINT <param name=”ulMilliSeconds” type=”IN”>Time in milliseconds to sleep</param>
SysTaskWaitSleepUs (FUN) ¶ FUNCTION SysTaskWaitSleepUs : RTS_IEC_RESULT <description> This function serves to pause the processing of a running task for a time interval specified in microseconds. The function is not implemented on every platform. </description> <result>error code</result> InOut: Scope Name Type Comment Return SysTaskWaitSleepUs RTS_IEC_RESULT Input hTask RTS_IEC_HANDLE <param name=”hTask” type=”IN”>Handle to task</param> Inout ptSleepUs SYSTIME <param name=”ptSleepUs” type=”IN”>Time in microseconds to sleep</param>
TaskPriorities (GVL) ¶ InOut: Scope Name Type Initial Comment Constant TASKPRIO_RANGE UDINT 255 This priorities are CoDeSys task priorities. The runtime system maps this priorities to operating system priorities TASKPRIO_SEGMENT UDINT 32 TASKPRIO_MAX UDINT 0 TASKPRIO_SYSTEM_BASE UDINT 0 Task segment 1 TASKPRIO_SYSTEM_END UDINT 31 TASKPRIO_REALTIME_BASE UDINT 32 Task segment 2 TASKPRIO_REALTIME_END UDINT 63 TASKPRIO_HIGH_BASE UDINT 64 Task segment 3 TASKPRIO_HIGH_END UDINT 95 TASKPRIO_ABOVENORMAL_BASE UDINT 96 Task segment 4 TASKPRIO_ABOVENORMAL_END UDINT 127 TASKPRIO_NORMAL_BASE UDINT 128 Task segment 5 TASKPRIO_NORMAL_END UDINT 159 TASKPRIO_BELOWNORMAL_BASE UDINT 160 Task segment 6 TASKPRIO_BELOWNORMAL_END UDINT 191 TASKPRIO_LOW_BASE UDINT 192 Task segment 7 TASKPRIO_LOW_END UDINT 223 TASKPRIO_LOWEST_BASE UDINT 224 Task segment 8 TASKPRIO_LOWEST_END UDINT 255 TASKPRIO_IDLE UDINT 255 TASKPRIO_MIN UDINT 255
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 16:11:19 companyName string 3S-Smart Software Solutions GmbH libraryFile SysTask.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile SysTask.clean.json version version 2.0.0.0 ProjectInformation LinkInSimulation bool True Released True LastModificationDateTime date 20.04.2021, 16:11:19 LibraryCategories library-category-list System|SysLibs Author string 3S - Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Description See: Description Placeholder SysTask Project SysTask Title SysTask Version version 3.5.17.0