SysTaskEnd
(FUN)
FUNCTION SysTaskEnd : RTS_IEC_RESULT
<description>Is called from the task itself, that ends its execution.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>
- InOut:
Scope
Name
Type
Comment
Return
SysTaskEnd
RTS_IEC_RESULT
Input
hTask
RTS_IEC_HANDLE
<param name=”hTask” type=”IN”>Handle to task</param>
ulExitCode
UDINT
<param name=”ulExitCode” type=”IN”>Exit code of the task</param>