SysSemProcessEnter (FUN)

FUNCTION SysSemProcessEnter : RTS_IEC_RESULT

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

<ul> <li>ERR_OK</li> <li>ERR_TIMEOUT: if timeout expires before enter the semaphore</li> <ul>

</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysSemProcessEnter

RTS_IEC_RESULT

Input

hSem

RTS_IEC_HANDLE

<param name=”hSem” type=”IN”>Handle to the semaphore</param>

ulTimeout

UDINT

<param name=”ulTimeoutMs” type=”IN”>Timeout in milliseconds to wait to enter the semaphore or 16#FFFFFFFF for an infinite wait.</param>