Serial Port Functions
6-18-3 CloseCOMPort
6-18-4 OpenCOMPort
6-18-5 SetupCOMPort
Description
Closes the designated serial communications port on the PC. The port must
have been configured and opened before it can be closed.
Syntax
ReturnState = CloseCOMPort(PortNumber)
Remarks
Argument
Type
ReturnState
bool
PortNumber
Integer
Typical Example:
bState = CloseCOMPort(1)
Description
Opens the designated serial communications port on the PC for transmitting or
receiving data. The port must have been configured before it can be opened.
Syntax
ReturnState = OpenCOMPort(PortNumber)
Remarks
Argument
Type
ReturnState
bool
PortNumber
Integer
Typical Example:
bState
= OpenCOMPort(1)
Description
Configures the designated serial communications port on the PC for
transmitting or receiving data.
Syntax
ReturnState
ConfigurationString,
ControlCharFlag, TermMode)
Remarks
Argument
Type
ReturnState
bool
PortNumber
Integer
SECTION 6 Functions and Methods
Description
True if successful else false.
The number of the port previously configured
using the function SetupCOMPort and opened
with OpenCOMPort.
Description
True if successful else false.
The number of the port previously configured
using the function SetupCOMPort.
=
SetupCOMPort(PortNumber,
HandShaking,
Description
True if successful else false.
A string indicating the desired Baud rate,
Parity, number of data bits and stop bits.
TerminationChar,
115