This example uses the following equipment for RS-232 communication

  1. Two PCs
    1. One PC with A3200
    2. One PC with a command interface (ex. PuTTY)
  2. USB RS-232 Serial Adapter cable (male connector)**

**Any serial cable that can connect between the serial ports of the PCs will also work

Hardware Connection

Use the RS-232 cable to connect from the A3200 PC to the PC with the command interface. In this example a 9-pin Female to Female serial cable was also needed to connect from the A3200 PC (male connector) to the USB RS-232 adaptor cable (male connector)

Setup the Command Interface PC

  1. Open the Windows Device Manager and locate the correct COM port.



  2. Right-click, select Properties
  3. Go to Port Settings to configure the COM port
    1. If necessary, use the Advanced... settings to change the COM port number


       
  4. Open Command Interface (ex. PuTTY)
    1. Configure the communication and COM port settings



    2. Open the COM port

Setup the A3200 PC

  1. Open the Windows Device Manager and locate the correct COM port.
  2. Right-click, select Properties
  3. Go to Port Settings to configure the COM port
    1. If necessary, use the Advanced... settings to change the COM port number
  4. Use the File and Serial Port commands to configure which COM port to listen to with the A3200
    1. See Serial Communications Example program in the Help File for more information. A modified version of this program is used in this example and is copied below.
    2. See File and Serial Port Command Category page in the Help File for more information.
  5. Run program to listen to the COM port and send/receive information
  6. To execute commands from the COM port, you must read a string and correlate that exact string to a specific command via your A3200 program:


Example Code