Access the SerialPort object

The SerialPort object provides an interface to the serial communication port.
Attribute
Data Type
Instruction
Description
BaudRate
DINT
GSV
Specifies the baud rate. Valid values are 110, 300, 600, 1200, 2400, 4800, 9600, and 19200 (default).
ComDriverID
SINT
GSV
Specifies the specific driver. Each value has a specific meaning:
  • 0xA2. DF1. This is the default.
  • 0xA3. ASCII.
DataBits
SINT
GSV
Specifies the number of bits of data per character. Each value has a specific meaning:
  • 7. Seven data bits. ASCII only.
  • 8. Eight data bits. This is the default.
DCDDelay
INT
GSV
Specifies the amount of time to wait for the data carrier detect (DCD) to become low before erroring the packet. The delay is in counts of 1 s packets. Default is 0 counter.
Parity
SINT
GSV
Specifies the parity. Each value has a specific meaning:
  • 0. No parity. This is the default.
  • 1. Odd parity. ASCII only.
  • 2. Even parity.
RTSOffDelay
INT
GSV
Amount of time to delay turning off the RTS line after the last character has been transmitted. Valid value:
0...32,767
Delay in counts of 20 msec periods. The default is 0 msec.
RTSSendDelay
INT
GSV
Amount of time to delay transmitting the first character of a message after turning on the RTS line. Valid value:
0...32,767
Delay in counts of 20 msec periods. The default is 0 msec.
StopBits
SINT
GSV
Specifies the number of stop bits. Each value has a specific meaning:
  • 1. One stop bit. This is the default.
  • 2. Two stop bits. ASCII only.
PendingBaudRate
DINT
SSV
Pending value for the BaudRate attribute.
PendingCOM DriverID
SINT
SSV
Pending value for the COMDriverID attribute.
PendingDataBits
SINT
SSV
Pending value for the DataBits attribute.
PendingDCD Delay
INT
SSV
Pending value for the DCDDelay attribute.
PendingParity
SINT
SSV
Pending value for the Parity attribute.
PendingRTSOff
Delay
INT
SSV
Pending value for the RTSOffDelay attribute.
PendingRTSSendDelay
INT
SSV
Pending value for the RTSSendDelay attribute.
PendingStopBits
SINT
SSV
Pending value for the StopBits attribute.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.