SysEventWait (FUN)

FUNCTION SysEventWait : RTS_IEC_RESULT

<description>Wait for the given Event</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library):

<ul>

<li>ERR_OK: if event was received</li> <li>ERR_TIMEOUT: for timeout</li>

</ul>

</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysEventWait

RTS_IEC_RESULT

Input

hEvent

RTS_IEC_HANDLE

<param name=”hEvent” type=”IN”>Handle of the event</param>

ulTimeout

UDINT

<param name=”lTimeout” type=”IN”>Timeout in ms to wait for the event:
<ul>

<li>ulTimeout = 16#FFFFFFFF: means infinite wait</li> <li>ulTimeout = 0: means no wait, only check the event!</li>

</ul>

</param>