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
SysTaskEndRTS_IEC_RESULTInput
hTaskRTS_IEC_HANDLE<param name=”hTask” type=”IN”>Handle to task</param>
ulExitCodeUDINT<param name=”ulExitCode” type=”IN”>Exit code of the task</param>