Moxa Technologies CP-134U PComm Installation, PComm Programming Library, RS-485 Programming

Models: CP-134U

1 87
Download 87 pages 51.18 Kb
Page 66
Image 66
PComm Installation

PComm Installation

To install PComm, run \Setup.exe from the diskette. Note that the PComm diagnostic and monitor utilities are for MOXA boards only. MOXA Windows NT, Windows 95/98, or Windows 2000/XP device drivers, as well as MOXA boards are required. The drivers are installed separately, with details given in the “Software Installation” chapter.

PComm Programming Library

The serial communication library helps you develop programs for serial communications for any COM port complying with the Microsoft Win32 API. It facilitates the implementation of multi-process and multi-thread serial communication programs, and consequently greatly reduces developing time.

For a complete library function description and sample programs for Visual C++, Visual Basic, and Delphi, check the help file and the sample programs in the PComm directory.

RS-485 Programming

If you intend to use your Industio CP-134U Series board for RS-485 applications, you can refer to the RS-485 programming guide below, and also see the chapter, “Connection Cables and Cable Wiring,” for more details about RS-485 operation.

The Industio CP-134U Series supports only 2-wire half-duplex RS-485 communication. In this case, the data+/- pins are used for both data transmitting and receiving, depending on the mode selected. The modes available are ADDC™ (Automatic Data Direction Control), or By RTS.

ADDC™ (Automatic Data Direction Control)

The ADDC™ scheme is the best solution for RS-485 applications. To use ADDC™ mode, set the mode switch to the ON position.

Under this mode, no extra code is required to control data transfer (both data transmitting and receiving), since it is automatically managed with the board’s built-in intelligent hardware mechanism. This means that RS-485 programming using ADDC™ mode is just as simple and straightforward as RS-232 or RS-422 programming.

4-2 Industio CP-134U Series User’s Manual

Page 66
Image 66
Moxa Technologies CP-134U user manual PComm Installation, PComm Programming Library, RS-485 Programming