SysComOpen2 (FUN)

FUNCTION SysComOpen2 : RTS_IEC_HANDLE

<description>Opens a serial communication device specified by settings</description> <result><p>RESULT: Handle to the opened com port or RTS_INVALID_HANDLE if failed</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysComOpen2

RTS_IEC_HANDLE

Input

pSettings

POINTER TO SysComSettings

<param name=”pSettings” type=”IN”>Settings for the communication device.

See category “Com port settings” for detailed information</param>

pSettingsEx

POINTER TO SysComSettingsEx

<param name=”pSettingsEx” type=”IN”>Optional extended settings for the serial device. Can be 0.</param>

pResult

POINTER TO RTS_IEC_RESULT

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