cdholding image

comm32 home
comm32 forum
buy comm32

Introduction
Install Comm32
Why Not MsComm?

Properties
   .Break
   .CDHolding
   .CommEvent
   .CommPort
   .CTSHolding
   .DSRHolding
   .DTREnable
   .EOFEnable
   .Handshaking
   .InBufferCount
   .InBufferSize
   .Input
   .InputLen
   .InputMode
   .NullDiscard
   .OutBufferCount
   .OutBufferSize
   .OutPut
   .ParityReplace
   .PortOpen
   .RThreshold
   .RTSEnable
   .Settings
   .STHreshold


Comm32 Properties
   .DeviceName
   .EOFChar
   .EvtChar
   .EvtCharEnable
   .OutPutEx
   .OutPutMode
   .ParallelEnable
   .TxTimeout

Comm32 Functions
   .getByte

   .GetPortStatus
   .InstalledDrivers
   .putByte
   .PortExists
   .ReadBytes
   .ReadString
   .WriteBytes
   .WriteString

OnComm Event
Hardware/Cables etc

Settings

Sets or Retrieves the Baud Rate. Parity, Databits and StopBit parameters.

Available at Design time and Runtime.

MSComm32 and Comm32 have Compatible Behavior.

         Syntax object.Settings = value
     
  object Name of the communications control.
  value A String expression containing the parameters in this order "Baud,Parity,Databits,StopBits"
     
  Example object.Settings = "9600,n,8,1" '// Set all the parameters
       
    object.Settings = "4800" '// Change just the baud rate (Leave the other
'// settings as they are)
   

Text1.Text = object.Settings

'// Retrieves the current parameters.
       

Remarks:

The 'Settings' String does not need to contain all of the settings. For example all of the following are valid:-

   .Settings = "9600"
   .Settings = "9600,n"
   .Settings = "9600,n,8"
   .Settings = "9600,n,8,1"

Baud can be one of the following standard baud rates:
110, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800, 115200 (See below)

Parity can be one of the following standard parity values:
N, E or O (None, Even or Odd) Other values: M or S (Mark or Space) can also be used but may not be supported by all hardware.

DataBits can be one of the following standard values:
7 or 8 (Other values such as 4, 5 or 6 can be used but may not be supported by all hardware)

StopBits can be one of the following standard values:
1 or 2 (The StopBits setting of 1.5 can also be used but may not be supported by all hardware)

Differences between MSComm32 and Comm32

Documentation from Microsoft is contradictory with regard to other baud rates such as: 14400, 56000, 128000, 256000 etc. This is due to differences in hardware. While most hardware will support the above standard baud rates; other hardware such as USB/RS232 cables, PCI cards and other add-on adapters can support many non-standard baud rates which might be rejected by MSComm32.

 

 

Copyright (c) 2010 Axis Controls Ltd