SysComOpen3
(FUN)
FUNCTION SysComOpen3 : 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
SysComOpen3
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>
pSettingsEx2
POINTER TO SysComSettingsEx2
<param name=”pSettingsEx2” 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>