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 Copyright 2004 Moxa Technologies Co., Ltd. All rights reserved. Reproduction without permission is prohibited.
MOXA Internet Services Customer satisfaction is our number one concern, and to ensure that customers receive the full benefit of our products, Moxa Internet Services has been set up to provide technical support, driver updates, product information, and user’s manual updates. The following services are provided: E-mail for technical support Address…………support@moxa.com.tw...
Chapter Welcome to the MOXA CP-132UL Series of industrial 2-port RS-422/485 serial boards for the PCI bus. Moxa’s Universal PCI CP-132UL series meets the new slot standard for expansion boards, and works with both 3.3V and 5V PCI slots. The CP-132UL series offers 2 independent RS-422/485 serial ports for connecting data acquisition equipment and many other serial devices to a PC and compatible systems.
Industio—The Industrial Multiport Async Solution Moxa Industio products are smart, multiport serial I/O solutions for industrial applications. The CP-132U Series boards, including CP-132UL V2, and CP-132UL-I V2 (the previous version is CP-132U-I V1), are designed for a 32-bit PCI bus with the Plug and Play and Universal PCI feature.
Broad Applications The board is suitable for many industrial applications, including the following: Multipoint data acquisition Factory automation Critical industrial control Remote serial device control Introduction CP-132U Series User’s Manual...
Supports both 3.3V and 5V connector types Package Checklist The following items are included in the CP-132UL Series package: CP-132U Series 2-port serial board MOXA software CD-ROM, which includes: " Drivers for MOXA Multiport Async Products " User’s Manual (PDF) CP-132U Series User’s Manual...
Chapter 2Hardware Installation You will need to install both hardware and software for CP-132UL Series boards. The hardware installation procedure is given in this chapter, and the next chapter deals with software installation for various operating systems. The following topics are covered in this chapter: CP-132UL Series Block Diagram Installing the CP-132UL Series Board...
CP-132UL Series Block Diagram CP-132UL Series boards’ hardware configuration for IRQ number and I/O address is automatically assigned by the PCI BIOS. This means that the board MUST be plugged in first before installing the driver software. CP-132U Series User’s Manual...
Hardware Installation CP-132UL-I V2 (120 x 64.5 mm) CP-132U-I V1 (120 x 100 mm) CP-132U Series User’s Manual...
Page 12
CP-132UL V2 (120 x 64.5 mm) CP-132UL V1 (120 x 64.5 mm) CP-132U Series User’s Manual...
Page 13
The figures on the following page show you how to use the switches to select one of the three serial interfaces for each of the board’s two ports. DIP Switch Port 1 Settings S1-1 S2-1 RS-422 — RS-485 (2-wire) RS-485 (4-wire) Hardware Installation Port 2 S1-2 S2-2 — CP-132U Series User’s Manual...
Step 2: Remove the PC’s cover. Step 3: Remove the slot cover bracket if there is one. Step 4: Plug the CP-132U Series control board firmly into a free 32-bit PCI slot or 64-bit PCI slot. Step 5: Fasten the holding screw to fix the control board in place.
Chapter 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, Windows 2000/XP/2003, DOS, FreeBSD, and Linux. Before proceeding with the software installation, complete the hardware installation, discussed in the previous chapter, “Hardware Installation.”...
3. Select Search for the best driver in these locations, check Include this location in the search, and then click on Browse. You should be able to locate the \Software\Win2K-XP-2003 folder on the software CD. Click on Next to continue. CP-132U Series User’s Manual...
5. Wait while the driver software is installed. The next window shows the model number of the board, and indicates that Windows has completed the driver installation. Click on Finish to continue with the rest of the installation procedure. Software Installation CP-132U Series User’s Manual...
Page 18
7. Select Search for the best driver in these locations, check Include this location in the search, and then click on Browse. You should be able to locate the \Software\Win2K-XP-2003 folder on the software CD. Click on Next to continue. CP-132U Series User’s Manual...
Page 19
Windows OS. Click on Continue Anyway to proceed. 9. Wait while the port driver is being installed. Click on Finish to continue with the rest of the installation procedures. Software Installation CP-132U Series User’s Manual...
2. When the System Properties window opens, click on the Hardware tab, and then click on Device Manager. 3. When the Device Manager window opens, you will be able to see the model of MOXA CP-168U Series under Multi-port serial adapters, and MOXA communication ports under Ports (COM & LPT). CP-132U Series User’s Manual...
1. Click on a specific port from the CP-168U Series Installation window, and then click on [Port Setting] to open the Port X dialog box. Software Installation CP-132U Series User’s Manual...
Page 22
3. Check the Auto Enumerating COM Number check-box to have subsequent ports mapped to continuous COM numbers. For example, if COM 3 is assigned to Port 1, then COM 4 will be automatically assigned to Port 2. CP-132U Series User’s Manual...
Page 23
NOTE: If you do not have the PComm software, you can download the free version of the software from Moxa’s website at www.moxa.com. Software Installation CP-132UL V2/CP-132UL-I V2 CP-132UL/CP-132U-I Tx FIFO Rx FIFO High Middle CP-132U Series User’s Manual Tx FIFO Rx FIFO Unit: Bytes...
The following procedure shows how to install the CP-168U driver for the first time under Windows 2000 and Windows XP. First make sure the board or boards have already been plugged into the system’s PCI or PCI-X slot(s). 3-10 CP-132U Series User’s Manual...
Page 25
1. Windows XP can auto-detect new devices, and activate the Found New Hardware function to install a device driver for Plug and Play devices. 2. Select Install from a list or specific location. Click Next to continue. CP-132U Series User’s Manual 3-11...
Page 26
Software\Win2K-XP-2003 as shown below (change the drive letter if needed). Click OK to continue. 3-12 CP-132U Series User’s Manual 3. Checkmark Include this location in the search, click Browse, and then locate the Software\Win2K-XP-2003 folder on the software CD. Click Next to continue.
Page 27
The next window that opens cautions you that although this software hasn’t passed Windows Logo testing, this driver has already been tested and been shown that it can support Windows OS. Click Continue Anyway to proceed. CP-132U Series User’s Manual 3-13...
Page 28
Hardware Wizard window to open starts the port installation stage. Click on Next to continue. 3-14 CP-132U Series User’s Manual 6. The next window shows the model number of the board, and indicates that Windows has completed the driver installation. Click Finish to continue with the rest of the installation procedure.
Page 29
The next window that opens cautions you that although this software hasn’t passed Windows Logo testing, the driver has already been tested and been shown that it can support Windows OS. Click Continue Anyway to proceed. CP-132U Series User’s Manual 3-15...
Page 30
Software\Win2K-XP-2003 as shown below (change the drive letter, if needed). Click OK to continue. 13. Click Next to continue with the installation. 3-16 CP-132U Series User’s Manual 10. Wait while the installation wizard searches. 11. Wait while the wizard installs the software.
Page 31
“Port 0.” Click Finish to install the board’s second port. 13. Repeat the above procedure (Step 7 to Step 12) for the rest of the board’s ports. The last window to open completes installation of Port CP-132U Series User’s Manual 3-17...
You may also expand the Ports (COM & LPT) item to check the status of the COM ports. If you see a question mark on top of the icon, then the installation might have a problem. Check the Event Log to determine the reason for the problem. 3-18 CP-132U Series User’s Manual Windows XP...
Page 33
1. Click on a specific port from the CP-168U Series Installation window, and then click [Port Setting] to open the Port X dialog box. CP-132U Series User’s Manual 3-19...
Page 34
3. Check the Auto Enumerating COM Number check-box to have subsequent ports mapped to continuous COM numbers. For example, if COM 3 is assigned to Port 1, then COM 4 will be assigned automatically to Port 2. 3-20 CP-132U Series User’s Manual...
Administrative Tools # Event Viewer, to enter the Event Viewer program. The latest information relevant to the Moxa driver is under the system category. Software Installation CP-132UL V2/CP-132UL-I V2 CP-132UL/CP-132U-I Tx FIFO Rx FIFO FIFO CP-132U Series User’s Manual 3-21 Rx FIFO Unit: Bytes...
Removing the Driver You can uninstall the board by first selecting Start # Settings # Control Panel # System. Windows 2000 3-22 CP-132U Series User’s Manual Windows XP...
Page 37
CP-168U Series board under Multiport serial adapters, and then click the right mouse button. Select the Uninstall… option. Windows 2000 Click OK to proceed with the un-installation of the board. Windows 2000 Software Installation Windows XP Windows XP CP-132U Series User’s Manual 3-23...
A maximum of 4 Smartio CP-168U boards can be installed in one system, provided sufficient I/O address and IRQ number resources are available. The following flow chart illustrates the driver installation stages of the Smartio CP-168U boards. Each stage will be discussed later in more detail. CP-132U Series User’s Manual 3-25...
Page 40
The installation of the Smartio CP-168U 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. 3-26 CP-132U Series User’s Manual...
Page 41
New hardware found message box, and then display the following dialog boxes. Click the Next button to proceed. Windows 95 2. Click [Other Locations]. Software Installation Windows 98 2. Select [Display a list...] and then click [Next]. CP-132U Series User’s Manual 3-27...
Page 42
Select Other Location window. The system will start reading the files from the CD. 4. Click [Finish]. 3-28 CP-132U Series User’s Manual 3. Select Other Devices and then click [Next]. 4. Click [Have Disk]. 5. Type \Software\Win9x\Windows and click [OK].
Page 43
Remote Access Service to provide dial-up networking capabilities. Software Installation Windows 98 After port configuration, click [Finish]. The COM ports of the Smartio CP-168U board can be used without restarting Windows 98. CP-132U Series User’s Manual 3-29...
Page 44
PC. 1. Open the [Control Panel], click on the [System] icon, select the [Device Manager] tab, and then click on the plus sign to the left of Moxa Smartio/Industio multiport board. 3-30 CP-132U Series User’s Manual...
Page 45
High to Low are available, with the default set to High (120 bytes). Check the Set the change to all ports check-box to apply the just defined Rx FIFO Trigger to Software Installation CP-132U Series User’s Manual 3-31...
1. Open [Control Panel], click on the [System] icon, and select the [Device Manager] tab. 2. Click on the MOXA CP-168U board and then click on [Properties]. 3-32 CP-132U Series User’s Manual CP-132UL V2/CP-132UL-I V2 CP-132UL/CP-132U-I Tx FIFO Rx FIFO...
Page 47
Software Installation 3. Select the [Driver] tab, and click on [Update Driver...]. 4. Click on [Have Disk...] and type the path of the new driver. CP-132U Series User’s Manual 3-33...
Page 48
1. Open the [Control Panel], double click the [Add/Remove Programs] icon, and then select the [Install/Uninstall] tab. 2. Click on the MOXA Smartio/Industio Driver option and then click on [Add/Remove] to start the driver removal process. 3-34 CP-132U Series User’s Manual...
Smartio CP-168U board and other MOXA multiport boards. The drivers conform to the Win32 COMM API standard. The Windows NT driver for MOXA’s multiport serial boards supports the following products: Software Installation CP-132U Series User’s Manual 3-35...
Page 50
4. Click the [Add] button, and then the [Have Disk...] button in the [Select Network Adapter] dialog box. 5. Specify the exact path of the driver diskette, C:\Windows.nt in the example shown here, and then click [OK] to proceed. 3-36 CP-132U Series User’s Manual...
Page 51
[OK] to start installing the driver. 7. The Moxa Smartio/Industio Configuration Panel dialog box appears. Click the [Add] button to open the Property dialog box to change port settings and advanced FIFO configuration done automatically by the system. Software Installation CP-132U Series User’s Manual 3-37...
Page 52
12. Select a Tx FIFO Size from the Tx FIFO Level pull-down list. Tx FIFO Levels from High to Low are available, with the default set to High (128 bytes). Check Set the change to all ports check-box to apply the just defined Tx FIFO Size to all ports. 3-38 CP-132U Series User’s Manual...
Page 53
15. Restart the PC. NOTE The driver configuration will NOT take effect until you restart the PC. Software Installation CP-132UL V2/CP-132UL-I V2 CP-132UL/CP-132U-I Tx FIFO Rx FIFO High Middle CP-132U Series User’s Manual 3-39 Tx FIFO Rx FIFO Unit: Bytes...
Page 54
2. Click on MOXA Smartio/Industio Family Adapter from the Network Adapters list to highlight it, and then click on [Properties] to open the MOXA Smartio/Industio Configuration Panel dialog box to change port settings and advanced FIFO configuration. 3-40 CP-132U Series User’s Manual...
Page 55
3. Click on [Property] from the MOXA Smartio/Industio Configuration Panel to open the Property window. 4. Next, refer to the instructions given in the previous section, “First Time Driver Installation” from the “Windows NT” section. Software Installation CP-132U Series User’s Manual 3-41...
Page 56
1. Open the [Control Panel], click on the [Network] icon, and select the [Adapters] tab. 2. Click on MOXA Smartio/Industio Family Adapter from the Network Adapters list. 3. Click the [Properties] button to open the Moxa Smartio/Industio Configuration Panel dialog box. 3-42 CP-132U Series User’s Manual...
Page 57
First shut down your PC, and then physically remove the CP-168U board from the PCI or PCI-X slot. The next time you start up the PC, the system will automatically remove the configuration. There is no need to click the Remove button in the Moxa Smartio/Industio Configuration Panel dialog box. CP-132U Series User’s Manual 3-43...
Page 58
1. Open the [Control Panel], click on the [Network] icon, and select the [Adapters] tab. 2. Click on MOXA Smartio/Industio Family Adapter from the Network Adapters list. 3. Click the [Remove] button in the Network dialog box. 3-44 CP-132U Series User’s Manual...
Installing the Driver 1. Run the installation program, DOSINST.EXE under \Software\DOS on the software CD. Specify the target API-232 directory (e.g. C:\MOXA) where the software driver will be copied. Press F2 to start the installation. Software Installation CP-132U Series User’s Manual 3-45...
Page 60
2. After the installation is complete, a message window will open to ask if you want to run the SETUP.EXE file. It is strongly recommended that you press Y to run this SETUP.EXE file. 3-46 CP-132U Series User’s Manual...
If necessary, press F1 to refer to the on-line help instructions. 1. Run the BIN\SETUP.EXE file. 2. Press Enter to select the proper model name (CP-134U Series for this example). CP-132U Series User’s Manual 3-47...
Port numbers can be set to any number between 0 and 255 (inclusive). However, you must ensure that each port is assigned a unique port number. If you are developing your own application software, then you may want to select port numbers that take into consideration 3-48 CP-132U Series User’s Manual...
Smartio/Industio Family DOS driver Version 1.5 Setup driver … CP-134U series (Bus= x ,Dev=y) : OK! Device driver setup O.K. This means that the CP-134U Series driver has been installed properly. At this point, you Software Installation CP-132U Series User’s Manual 3-49...
The following steps use CP-168U to illustrate. Follow the steps below to install the driver under Linux. 1. # mkdir moxa # cd moxa # tar xvfz mxser.tgz 2. #cd mxser #make clean; make install 3. # cd /moxa/mxser/driver # ./msmknod 3-50 CP-132U Series User’s Manual...
Page 65
Port 7: 0xac30, max. baud rate = 230400 bps. Port 8: 0xac38, max. baud rate = 230400 bps. 6. You can use Moxa terminal utility to test tty port. # cd /moxa/mxser/utiltiy/term # ./msterm Software Installation CP-132U Series User’s Manual 3-51...
Chapter 4Serial Programming Tools Moxa supports an easy to use yet powerful serial programming library and communication troubleshooting utilities under Windows NT, Windows 95/98, and Windows 2000/XP/2003.You can save a lot of development time by using MOXA’s Serial Programming Tools. The following sections give details about the installation, the library, and the utilities for various platforms.
IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, DTR/DCD, etc. It allows the user to check the function of both software and hardware. To run the Diagnostic program, click on [Start]#[Program]#[PComm Lite]#[Diagnostic]. A typical test report for the CP-168U Series board is shown below. CP-132U Series User’s Manual...
Page 69
Click on a specific port to see a graph of the current communication parameters and status of that port. To run the Monitor program, click on [Start]#[Program]#[Pcomm Lite]#[Monitor]. CP-132U Series User’s Manual...
Terminal Emulator features multi-windows, and supports VT100 and ANSI terminal types. You can transfer data interactively, send patterns periodically, and transfer files using ASCII, XMODEM, YMODEM, ZMODEM, and KERMIT protocols. To run Terminal Emulator, click on [Start]#[Program]#[Pcomm Lite]#[Terminal Emulator]. CP-132U Series User’s Manual...
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 Software Installation CP-132U Series User’s Manual...
Page 72
); For more information on these functions, refer to the PComm library’s on-line Help file for Windows 95/98/NT/2000/XP/2003. CP-132U Series User’s Manual /* Set sio_write() into block mode if for Windows NT and Windows 95/98 */ /* Turn on RTS signal. The RS-485 port is ready for transmitting data.
Chapter 5Connection Cables and Cable Wiring In serial data communications, the term DTE stands for Data Terminal Equipment, such as a PC’s COM1/2, serial printers, and terminals. The term DCE stands for Data Communication Equipment, such as modems.
32 receivers can be set up on a multidrop network. The CP-132UL Series supports both 2-wire half-duplex and 4-wire full-duplex RS-485 communications. In 2-wire RS-485, Data+/- pins are used for both data transmitting and receiving, depending on the RTS signal. CP-132U Series User’s Manual...
Page 78
Multidrop 4-wire RS-485 (full-duplex) CP-132UL Master TxD+(B) TxD-(A) RxD+(B) RxD-(A) See the section “RS-485 Programming” in the “Serial Programming Tools” chapter for more details on RS-485 programming. CP-132U Series User’s Manual RS-485 Device 1 Slave Data+ Data- RS-485 Device N Slave Data+ Data-...
The solution to this problem is to establish the same impedance at the ends of the transmission line, as in the line itself, by terminating the ends of the line with resistors. CP-132U Series User’s Manual...
Common CP-132UL Series problems and possible solutions are listed below. If you still have problems after reading this chapter, contact your dealer or Moxa for help, or use the Problem Report Form at the end of this manual to report problems to your dealer. General Troubleshooting 1.
Page 82
API of the operating system. To check this problem, run another existing and known good application or use the utilities provided by Moxa (such as Pcomm Terminal emulator or HyperTerminal under Windows NT and Windows 95/98). CP-132U Series User’s Manual...
Smartio/Industio Series board!” appears in the Event Log. Make sure the PCI board is seated firmly in the expansion slot. 3. The COM number of the CP-132U Series conflicts with others. The COM numbers of different boards happen to be the same. Try changing the COM number mappings.
The board might be defective. 2. After the system reboots, the error message “CP-132U Series (BusNo=x, DevNo=x, Port1=COMx) interrupt number is invalid!” appears. This indicates that the MOXA board was found, but the IRQ conflicts with another adapter.
Up to 4 CP-132UL Series boards are allowed in one system. When installing more than one board, please remember the order the boards are installed to distinguish the installed boards from each other. CP-132U Series User’s Manual CP-132UL 220 mA (+5V)
$ Carefully pack the product in an anti-static package, and send it, pre-paid, to the dealer. The PRA should be visible on the outside of the package, and include a description of the problem, along with the return address and telephone number of a technical contact. Technical Reference CP-132U Series User’s Manual A-3...
Revision History Document Edition CP-132U Series User’s Manual Revision Date January 27, 2004 1. Update the edition of this manual on the title page. 2. Change the contact phone number on the title page. 3. p. 5-4 Add 4-wire RS-485 pinouts.
Need help?
Do you have a question about the CP-132U Series and is the answer not in the manual?
Questions and answers