SysTaskExit
(FUN)
FUNCTION SysTaskExit : RTS_IEC_RESULT
<description>Tries to exit the given task gracefully. If the task doesn’t answer in the specified timeout, then the task will be deleted hard!</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>
- InOut:
Scope
Name
Type
Comment
Return
SysTaskExit
RTS_IEC_RESULT
Input
hTask
RTS_IEC_HANDLE
<param name=”hTask” type=”IN”>Handle to task</param>
ulTimeoutMs
UDINT
<param name=”ulTimeoutMs” type=”IN”>Timeout in milliseconds</param>