CP-132 Series User’s Manual Industrial 2-port RS-422/485 Serial Board for PCI Bus Fourth Edition, July 2012 www.moxa.com/product © 2012 Moxa Inc. All rights reserved.
CP-132 Series User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice © 2012 Moxa Inc. All rights reserved. Trademarks The MOXA logo is a registered trademark of Moxa Inc. All other trademarks or registered marks in this manual belong to their respective manufacturers.
About this Manual This manual is composed of six chapters and one appendix. This manual is written for installers, system administrators and software programmers. If you are a first-time installer and system administrator, we recommend you to go through the whole manual except chapter 4. If you are a software programmer, you may refer to chapter 4, “Serial Programming Tools”. If you need cable wiring information, please see the chapter 5 “Connection Cable and Cable Wiring”.
Table of Contents 1. Introduction ...................................................................................................................................... 1-1 Overview ........................................................................................................................................... 1-2 Features ............................................................................................................................................ 1-4 Check List ....................
1 1.
CP-132 Series Introduction Overview Industio - The Industrial Multiport Async Solution The term Industio stands for smart multiport serial I/O solution for industrial applications. The Industio CP-132 Series boards, including CP-132, CP-132I, CP-132S and CP-132IS, are designed for 16-bit ISA/EISA bus. They offer 2 independent RS-422/RS-485 serial ports for connecting data acquisition equipment and many other serial devices to the PC and its compatible systems.
CP-132 Series Introduction PCI Solution The board complies with PCI Spec. 2.1 needing neither switch nor jumper. The hardware configuration for the IRQ and I/O address is automatically assigned by the PCI BIOS. Hence, the board MUST be plugged first before installing the software driver. For more PCI information, please refer to Appendix “Technical Reference”.
CP-132 Series Introduction Features The Industio CP-132 Series consists of members as follows, CP-132 2 RS-422/RS-485 ports, 16C550C UART CP-132S 2 RS-422/RS-485 ports, surge protection, 16C550C UART CP-132I 2 RS-422/RS-485 ports, isolation protection, 16C550C UART CP-132IS 2 RS-422/RS-485 ports, surge and isolation protection, 16C550C UART The following are the outstanding features of Industio CP-132 Series • Support 2 independent RS-422 or RS-485 serial ports • Compact board size (half-size)
CP-132 Series Introduction Installation Guide This section gives a brief summary of how to install the Industio CP-132 Series under each supported operating system.
2 2.
CP-132 Series Hardware Installation The installation of the Industio CP-132 Series consists of hardware and software installation. The hardware installation is detailed in this chapter. The next chapter deals with the software installation for various operating systems. The no-switch-no-jumper Industio CP-132 Series board hardware configuration for IRQ number and I/O address is automatically assigned by the PCI BIOS. Hence, the board MUST be plugged first before installing the software driver.
CP-132 Series Hardware Installation Installing the Industio CP-132 Series board Step 1: Power off the PC. WARNING Make sure your system is switched off before you start installing any board. If you don’t, you may risk damaging your system and the board. NOTE Step 2: Remove the PC’s cover. Step 3: Remove the slot cover bracket if there is any. Step 4: Plug the Industio CP-132 Series control board firmly into a free 32-bit PCI slot.
3 3. Software Installation In this chapter, the software driver installation, configuration and driver update/removal procedures are described for various operating systems, including Windows NT, Windows 95/98 and DOS. Before proceeding with the software installation, complete the hardware installation, detailed in previous chapter, “Hardware Installation”.
CP-132 Series Software Installation Windows NT Windows NT supports up to 256 serial ports, from COM1 to COM256. To fully integrate the advanced features of Windows NT, multi-process and multi-thread, pure 32-bit Windows NT device drivers are developed for the Industio CP-132 Series multiport boards. The driver conforms to Win32 COMM API standard. • To install the driver for the first time, please go directly to the next section, “Installing Driver”.
CP-132 Series Software Installation 6. Click [Add] button to open Property dialog box to change port setting and advanced FIFO configuration done automatically by the system. 7. Select the newly plugged Industio CP-132 Series board from the b pull down list. 8. In the “Property” dialog box, select the desired port in the port list and click [Port Setting] to enter the individual “Port #” setting dialog box to change the port COM number mappings or FIFO settings.
CP-132 Series Software Installation If “Auto Enumerating COM Number” is checked and specify the COM number of the first port, subsequent ports are mapped to continuous COM numbers. For instance, if first port is mapped to COM3, then second port is mapped to COM4 sequentially. If “Auto Enumerating COM Number” is not checked, specify the COM number for individual port. For instance, the second port can be out of sequence, say COM10, while the first port is mapped to COM3.
CP-132 Series NOTE Software Installation Once the board and the driver are installed and the driver restarts successfully, you can start to develop applications with the PComm library (See “Serial Programming Tools” chapter) or the Microsoft Win32 API. You can also execute any ready-made applications, such as PComm utility Terminal emulator (See “Serial Programming Tools” chapter) or HyperTerminal to transmit/receive data, as well as Remote Access Service to provide dial-up networking capabilities.
CP-132 Series • Software Installation By unplugging CP-132 Series board, the system will automatically remove the configuration. Therefore, there is no need to do remove action from Moxa Smartio/Industio Configuration Panel dialog box. • Click [OK] to confirm the configuration changes you made. • Click [Cancel] to leave the dialog with the configuration unchanged.
CP-132 Series Software Installation Installing Driver You can easily plug the Industio CP-132 Series board and work right away with very little installation efforts under Windows 95/98 supporting Plug and Play capability. Windows 95/98 will automatically detect the presence of the newly plugged board and prompt you to install the software driver for the first time. In this case, you need the driver diskette.
CP-132 Series Software Installation First Time Driver Installation Stage This stage presents the steps for installing the driver for the first time of the first Industio CP-132 Series board. The installation of the Industio CP-132 Series board for Windows 95 and Windows 98 are slightly different and will be described in two columns. Follow the steps in the left column for Windows 95 or the right column for Windows 98 respectively.
CP-132 Series Software Installation 4. Click [Finish] button. 4. Click [Have Disk] button. 5. Type A:\Windows.95 and click [OK] button. The system will start reading the files from the diskette. 6. Click [Next] button. 7. Click [Next] button.
CP-132 Series Software Installation Port Configuration Stage After the driver is installed, CP-132 Series Installation dialog box will be displayed automatically and the port mapping is automatically done by the system. If one CP-132 Series board had installed previously and another CP-132 Series board was plugged, the system will prompt you to do port configuration directly discussed in this section. 1. Click on a specific port. 2. Click [Port Setting] button to open Port X dialog box. 3.
CP-132 Series Software Installation 8. Check Set the change to all ports check-box then the if desire to apply Tx FIFO Size just defined to all ports. 9. Click [OK] button in Port X dialog box to confirm the port setting. 10. Click [OK] button in Property dialog box to complete the port setting. Board and Port Ready Stage Board and Port Ready Stage for Windows 95 and Windows 98 is a slight different. In this last stage, you will complete the driver installation.
CP-132 Series Software Installation Configuring Board and Port If desire to re-configure the COM number for the ports of installed boards and drivers under Windows 95/98, please follow procedures listed below. For this is a PCI board, once the board is added or unplugged, the configuration will be automatically added or removed by the system. Thus, it saves your effort to do add or remove action. 1.
CP-132 Series Software Installation 6. Re-assign the Rx FIFO Trigger by selecting a number from the pull-down list. Check Set the change to all ports check-box if desire to apply this setting to all ports. Rx FIFO trigger levels, at 1, 4, 8 or 14 bytes, are available, and the default value is 14 bytes. 7. Re-assign the Tx FIFO Size by selecting a number from the pull-down list. Check Set the change to all ports check-box if desire to apply this setting to all ports.
CP-132 Series Software Installation Updating Driver This section will discuss how to update the Windows 95/98 driver to enhance the function of the board. 1. Open [Control Panel], click [System] icon, and select [Device Manager] tab. 2. Click on MOXA CP-132 Series and click [Properties] button. 3. Select [Driver] tab. 4. Click [Update Driver...] button. 5. Click [Have Disk...] button and type the path of the new driver. 6. Insert the source diskette in the floppy drive if there is any. 7.
CP-132 Series Software Installation Removing Driver This section explains how to remove the Industio CP-132 Series board driver. 1. Open [Control Panel] icon, double click [Add/Remove Programs] icon, and then select [Install/Uninstall] tab. 2. Click on MOXA Smartio/Industio Driver option and then click [Add/Remove] button to start the driver removal. 3. Click [Yes] button in the following shown message box to confirm the driver removal. 4. Click [OK] button in Add/Remove Programs Properties dialog box.
CP-132 Series Software Installation DOS MOXA DOS API-232 is a software package that assists users to develop and/or debug programs for serial communications. This section will show you how to install the package, how to setup up the driver, and how to load or unload driver. For details of the serial programming (API-232 Library) and utilities, please refer to the next chapter, “Serial Programming Tools”. Installing Driver Run the installation program, DOSINST.EXE, in the DOS driver diskette.
CP-132 Series Software Installation Driver Setup The following are steps for setting up the Industio CP-132 Series driver. Note that it is not intended to illustrate all the convenient functions of the setup programs when configuring the boards. 1. Run the setup program, BIN\SETUP.EXE, in the API-232 directory. 2. Press Enter to pop up the SETUP dialog box.
CP-132 Series Software Installation 3. You may now enter/modify each port’s configuration. These displayed values are the port initial values as driver is loaded. Legend: Port number: Some noticeable fields and functions are explained below. This is actually the port ID of each port. The application software will refer to the port by its port number (ID). Duplicated port number is not allowed. That is, each MOXA serial port is referred to as port number in terms of serial programming.
CP-132 Series Software Installation 5. Press F10 to save the latest configuration and exit the SETUP program. Loading Driver Having completed the setup, you can load the driver, "BIN\DP-DRV.EXE", at the DOS prompt. The driver will detect the Industio CP-132 Series board automatically. If the board(s) is(are) detected, a message similar to below will show: Smartio/Industio Family DOS driver Version 1.1 Setup driver…. CP-132 series (Bus=0, Dev=14): O.K.! Device driver setup O.K.
4 4. Serial Programming Tools Moxa supports easy but powerful serial programming library and communication troubleshooting utilities under Windows NT, Windows 95/98 and DOS. You will save a lot of developing time with the MOXA Serial Programming Tools. The following sections will details the installation, the library and the utilities for various platforms.
CP-132 Series Serial Programming Tools Windows NT and Windows 95/98 PComm, the professional serial comm tool for PC, is a software package under Windows NT and Windows 95/98, which consists of powerful serial communication library for easy programming in most popular languages, useful utilities such as diagnostic, monitor and terminal emulator, illustrative example programs and comprehensive on-line documents.
CP-132 Series Serial Programming Tools Monitor (for MOXA boards under Windows NT Only) A useful port status monitoring program that allows you to watch the selected MOXA COM ports’ data transmitting/receiving throughput and communication line status which are updated and displayed on the screen at time intervals. You can also click on one of the specific displayed port in order to visualize the current communication parameters and status of that port.
CP-132 Series Serial Programming Tools DOS Installing API-232 API-232 Library is the professional serial programming tool for DOS. It is installed automatically along with the MOXA DOS drivers. The installation is detailed in Chapter "Software Installation". DOS API-232 Library DOS API-232 library supports languages like Microsoft C, Turbo C, Macro Assembly, QuickBasic, Turbo Pascal, Clipper, etc. Sample programs for each supported language are included, and placed in the sub-directory, ..
CP-132 Series Serial Programming Tools 3. The Diagnostic test utility provides port connection test with two MOXA ports connected via a properly wired cable. Please see on-line help as running BIN\SCOPE.EXE for more usage and capability information. Diagnose The Diagnose, BIN\DIAGNOSE.EXE, is a utility that can help users to diagnose the hardware condition of each port of the selected board. See on-line help for more details.
CP-132 Series Serial Programming Tools How to transmit and receive data for Windows NT, 95/98 & DOS We recommend you to configure Industio CI-132 Series ports as follows in order to acquire precise timing control in RS-485 2-wire transmission. There are 2 solutions to control RS-485 2-wire transmission. Solution 1 The following model is common in RS-485 2-wire transmission.
5 5. Connection Cable and Cable Wiring In serial data communications, the term DTE is for Data Terminal Equipment, like PC COM1/2, serial printers and terminals. The term DCE is for Data Communication Equipment, like modems.
CP-132 Series Connection Cable and Cable Wiring RS-422 Cable Wiring The RS-422 standard uses a balanced voltage digital interface to allow 9600 bps communications over cables of up to 4000 ft (1.2 km) in length. Ten receivers can be connected to any one driver for broadcasting systems.
CP-132 Series Connection Cable and Cable Wiring RS-485 pin outs for Industio CP-132 Series: Pin Signal 1 Data-(A) 2 Data+(B) 5 GND See the section “RS-485 Programming” of the chapter “Serial Programming Tools” for more RS-485 programming details. Impedance Matching and Termination Resistors For RS-422/485 serial communications, when an electrical signal travels through two different resistance junctions in a transmission line, the impedance mismatch will sometimes cause signal reflection.
6 6. Troubleshooting Common Industio CP-132 Series problems and possible solutions are listed below. If you still have problems, contact your dealer or Moxa for help.
CP-132 Series Troubleshooting General Troubleshooting 1. The MOXA PCI board cannot be detected by the MOXA driver while installing the driver. Hardware causes and solutions: a. The board is not installed or missing (absent). Please install it. b. The board is not properly plugged in the system. If that is the case, re-plug the board in a 32-bit PCI slot this time. Sometimes the slot for plugging the board is malfunctioned. In this case, try other slots until you find a good one. c.
CP-132 Series Troubleshooting Windows 95/98 This section is specific for troubleshooting under Windows 95/98. For general problems and solutions, please see the previous section, “General Troubleshooting”. 1. The system fails to find the Industio CP-132 Series board! • The board(s) is(are) not plugged properly. • The slot with boards plugging in is defective, please try another slot until you find a good one. The board might be defective. 2.
A A. Technical Reference Specifications Bus interface: 32-bit PCI Number of ports: 2 Max. boards: 4 I/O address: Assigned by PCI BIOS IRQ: Assigned by PCI BIOS Comm. controller: 16C550C or compatible Speed (bps): 50 to 921.6 K Data bits: 5, 6, 7, 8 Stop bits: 1, 1.5, 2 Parity: none, even, odd, space, mark Data signals: RS-422-TxD+/-, RxD+/-, RTS+/-, CTS+/-, GND RS-485-Data+/-, GND Connectors: 2×DB9 male Optical isolation: max.
CP-132 Series Technical Reference PCI The 32-bit Industio CP-132 Series board complies with the PCI specifications 2.1. Hardware configuration for IRQ and I/O addresses is automatically assigned by the PCI BIOS. Hence, you must first plug the board before installing the software driver. Unlike ISA slots, different PCI slots in the same PC may have different bus numbers and device numbers with respect to the PCI specifications.