SysComSetTimeout (FUN)

FUNCTION SysComSetTimeout : RTS_IEC_RESULT

<description>Set the timeout of the specified serial interface (hardware timeout).

The Timeout is the time between two received or sent characters until the read or write operation will return. Typically this value should be 0 (returns immediately)</description>

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

InOut:

Scope

Name

Type

Comment

Return

SysComSetTimeout

RTS_IEC_RESULT

Input

hCom

RTS_IEC_HANDLE

<param name=”hCom” type=”IN”>Handle to com port</param>

ulTimeout

SYS_COM_TIMEOUT

<param name=”ulTimeout” type=”IN”>Timeout in milliseconds for the read and write operation to set</param>