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

putByte

Outputs/Sends one byte of data (Places one Byte into the transmit buffer) and returns true or false depending on success or failure.

Not available at design time. Write only at runtime.

Only available with Comm32 - Not available with MSComm32

         Syntax result = object.putByte(value)
     
  object Name of the communications control.
  result Boolean return value. true or false. Will be false if the byte could not be moved into the transmit buffer (ie if the buffer was full)
     
  Example.  
   

Dim i as Byte

For i = 1 to 20
    If Comm1.putByte( i ) = False Then
        '// no more room in tx buffer
        Exit For
    End If
Next i

'// This example will attempt to send the values 1 to 20
'// This function sends the byte as a raw byte value. Not as a string/character. Use this function to send byte values in the range 0 to 255

You do NOT need to change the OutputMode property. The putByte function ALWAYS sends the raw byte value.

 
       

 

 

 

Copyright (c) 2010 Axis Controls Ltd