SysComOpen (FUN)

FUNCTION SysComOpen : RTS_IEC_HANDLE

<description>Open a serial communication device.</description> <result><p>RESULT: Handle to the opened com port or RTS_INVALID_HANDLE if failed</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysComOpen

RTS_IEC_HANDLE

Input

sPort

SYS_COM_PORTS

<param name=”sPort” type=”IN”>Com port to open. SYS_COMPORT1 = COM1, …</param>

pResult

POINTER TO RTS_IEC_RESULT

<param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>