SysTaskJoin (FUN)

FUNCTION SysTaskJoin : RTS_IEC_RESULT

<description>Is used to wait for exit of the specified join task.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysTaskJoin

RTS_IEC_RESULT

Input

hTaskToJoin

RTS_IEC_HANDLE

<param name=”hTaskToJoin” type=”IN”>Task to join</param>

ulTimeoutMs

UDINT

<param name=”ulTimeoutMs” type=”IN”>Timeout in milliseconds to wait for join task</param>