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>