Moxa Technologies CP-132U User Manual

CP-132U Series User’s Manual
Industrial 2-Port RS-422/485 Serial Board for Universal PCI Bus
Fifth Edition, December 2004
Moxa Technologies Co., Ltd.
support@moxa.com.tw (Worldwide) support@moxa.com (The Americas)
CP-132U 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
Copyright 2004 Moxa Technologies Co., Ltd.
All rights reserved.
Reproduction without permission is prohibited.
Trademarks
MOXA is a registered trademark of The Moxa Group.
All other trademarks or registered marks in this manual belong to their respective manufacturers.
Disclaimer
Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa.
Moxa provides this document “as is,” without warranty of any kind, either expressed or implied, including, but not limited to, its particular purpose. Moxa reserves the right to make improvements and/or changes to this manual, or to the products and/or the programs described in this manual, at any time.
Information provided in this manual is intended to be accurate and reliable. However, Moxa Technologies assumes no responsibility for its use, or for any infringements on the rights of third parties that may result from its use.
This product might include unintentional technical or typographical errors. Changes are periodically made to the information herein to correct such errors, and these changes are incorporated into new editions of the publication.
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
World Wide Web (WWW) site for product information
Address………..http://www.moxa.com
Table of Contents
Chapter 1 Introduction.................................................................................. 1-1
Overview .......................................................................................................1-2
Features .........................................................................................................1-4
Package Checklist .........................................................................................1-4
Chapter 2 Hardware Installation .................................................................. 2-1
CP-132UL Series Block Diagram .................................................................2-2
Installing the CP-132UL Series Board.......................................................... 2-6
Chapter 3 Software Installation ................................................................... 3-1
Windows 2003............................................................................................... 3-1
Windows 2000/XP.......................................................................................3-10
Windows 95/98............................................................................................3-24
Windows NT ............................................................................................... 3-35
DOS............................................................................................................. 3-45
Linux ........................................................................................................... 3-50
Chapter 4 Serial Programming Tools.......................................................... 4-1
RS-485 Programming.................................................................................... 4-5
Chapter 5 Connection Cables and Cable Wiring........................................ 5-1
RS-422/485 Pinouts and Cable Wiring .........................................................5-2
Impedance Matching and Termination Resistors .......................................... 5-7
Chapter 6 Troubleshooting .......................................................................... 6-1
General Troubleshooting............................................................................... 6-1
Windows NT ................................................................................................. 6-3
Windows 95/98..............................................................................................6-4
Appendix A Technical Reference .............................................................A-1
Specifications ............................................................................................... A-1
PCI................................................................................................................ A-2
Return Procedure.......................................................................................... A-3
Revision History........................................................................................... A-4
1
1

Chapter 1Introduction

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. It provides a reliable communication link (RS-422/485) over a long distance (up to 4000 ft), and is suitable for industrial environments.
The following topics are covered in this chapter:
Overview
Features Package Checklist

Overview

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. 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. Industio products provide a reliable communication link over a longer distance (up to 4000 ft), and are suitable for industrial environments. Connections with point-to-point full-duplex or multidrop half-duplex are available to meet user’s various needs. Each port can control up to 32 devices in a multidrop environment.
ADDC™ (Automatic Data Direction Control) for RS-485
To make it easier to manage 2-wire RS-485 half-duplex connections, ADDC™ (Automatic Data Direction Control) intelligence is built into each CP-132UL series board, eliminating the need for software interference. This means that Windows applications can manage RS-485 ports, without the need to write extra code for controlling the half-duplex protocol.
With their well-designed and fine-tuned device driver, CP-132UL series boards make full use of the 128 byte Tx/Rx FIFO and on-chip H/W and S/W flow control, so that they can transfer data without loss even at speeds as high as 921.6 Kbps, providing a reliable, high performance solution for serial multiport communications.
Termination Resistors Ready for RS-422/485
Termination Resistors are already installed on the CP-132UL series boards, eliminating the headaches involved in determining the proper impedance for the resistors. For more details, refer to the “Connection Cable and Cable Wiring” chapter.
Surge/Isolation Protection
To prevent boards from being damaged by lightning or high potential voltage, CP132UL Series boards have built-in surge protection. An optical isolation option (2000V), and surge protection option (max. ESD of 16 KV, max. EFT of 2 KV) are also available in this series. Both of these features provide protection when the boards are used in critical or harsh factory-type environments.
CP-132U Series User’s Manual
1-2
Introduction
PCI Solution
The board complies with PCI Spec. 2.1 and does not require either switches or jumpers. The hardware configuration for the IRQ and I/O address is automatically assigned by the PCI BIOS. This means that the board MUST be plugged into the computer first before installing the driver software. For more PCI information, refer to the Technical Reference Appendix.
Universal PCI
The 32/64-bit PCI local bus specification specifies both 3.3V and 5V connector types for the PCI hardware. Moxa’s universal PCI card allows the user to plug into both a 3.3V/5V and 32/64-bit slot.
Operating System Support
The CP-132UL series is compatible with most major industrial platforms, including Windows 2000/XP/2003, Windows NT, Windows 95/98/Me, DOS, and Linux. MOXA device drivers are provided for smoother installation, configuration, and performance. In this manual, sections for MOXA Windows 2003, Windows 2000/XP, Windows NT, Windows 95/98, DOS, Linux, and SCO are included.
MOXA Serial Comm Tools
For application development, MOXA provides an easy-to-use serial communication library called PComm that runs under Windows NT/2000/XP/2003 and Windows 95/98. You can use this library to develop your own applications using Microsoft C, Turbo C, Assembly, QuickBASIC, Turbo Pascal, Clipper, Visual Basic, Visual C++, Borland Delphi, etc. Utilities, such as Data Scope, Monitor, Terminal Emulator, Diagnostics, etc., are included for debugging or monitoring the communication status, terminal emulation, or even file transfer.
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
CP-132U Series User’s Manual
1-3

Features

The CP-132UL Series includes the following products:
CP-132UL V2 2 RS-422/485 ports, Universal PCI interface with embedded Surge Protection (16 KV ESD) CP-132UL-I V2 2 RS-422/485 ports, Universal PCI interface with embedded Surge Protection and Isolation Protection (16 KV ESD, 2 KV Isolation)
CP-132UL Series boards have the following outstanding features:
! Supports 2 independent RS-422 or RS-485 serial ports ! Compact board size (half-size) ! DIP Switch for RS-422/RS-485 selection ! DIP Switch for selecting 2-wire or 4-wire RS-485 ! Jumper for Termination Resistor selection—eliminates impedance matching headaches ! Reliability—high speed MOXA UART (16550C compatible) Communication
! PComm—a powerful serial Comm utility. ! Embedded Surge Protection (16 KV ESD) for all signal lines (CP-132UL V2,
! Supports 128 byte FIFO ! Supports drivers for most major industrial platforms—Windows 2000/XP/2003,
! Supports low profile bracket size (CP-132 UL V2 and CP-132UL-I V2) ! Supports both 3.3V and 5V connector types
Controllers with on-chip hardware and software flow control to guarantee no data loss
CP-132UL-I V2)
Windows NT, Windows 95/98/ME, DOS, and Linux

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
1-4
2
2

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
2-2
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
2-3
CP-132UL V2 (120 x 64.5 mm)
CP-132U Series User’s Manual
2-4
CP-132UL V1 (120 x 64.5 mm)
Hardware Installation
CP-132UL Series boards have four onboard DIP Switches, referred to below as S1-1, S1-2, S2-1, and S2-2, that allow the user to choose one of three serial interfaces—RS-422, RS-485 (2-wire), RS-485 (4-wire)—for each of the two ports. Note that S2-1 and S2-2 select between RS-422 and RS-485, and S1-1 and S1-2 select between 2-wire and 4-wire RS-485 (S1 is only active when S2 is set to ON).
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
Settings
RS-422 — OFF — OFF
S1-1 S2-1 S1-2 S2-2
Port 1
Port 2
RS-485 (2-wire)
RS-485 (4-wire)
ON ON
OFF ON
ON ON
OFF ON
CP-132U Series User’s Manual
2-5

Installing the CP-132UL Series Board

Step 1: Power off the PC.
Warning! To avoid damaging your system and board, make sure your computer is turned off
before installing any board.
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.
Step 6: Replace the system cover.
Step 7: Power on the PC. The BIOS will automatically set the IRQ and I/O address.
Note! Moxa Universal PCI or PCI boards will occupy one unique IRQ and I/O address,
which are assigned automatically by the PCI BIOS.
Step 8: Proceed with the software installation discussed in the next chapter, “Software
Installation.”
CP-132U Series User’s Manual
2-6
3
3

Chapter 3Software 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, 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.”
Refer to the next chapter, “Serial Programming Tools,” for information on developing your own serial programming applications.
Windows 2000/XP/2003, Windows NT, Windows 95/98, DOS, FreeBSD, and Linux drivers can be downloaded from the Moxa website.

Windows 2003

This section includes information about how to install the driver for UPCI/PCI boards under Windows 2003. The drivers conform to the Win32 COMM API standard.
The Windows 2003 driver for MOXA’s multiport serial boards supports the following products:
! Universal PCI Boards: CP-168U, CP-104UL, CP-104JU, CP-134U, CP-134U-I,
CP-132UL, CP-132UL-I V2(CP-132U-I V1)
! PCI Boards: C168H/PCI, C104H/PCI, C104HS/PCI, CP-114, CP-114I, CP-114S,
CP-114IS, CP-132, CP-132I, CP-132S, CP-132IS
! ISA Boards: C168H, C168HS, C168P, C104H, C104HS, C104P, CI-104J, CI-104JS,
CI-134, CI-134I, CI-134IS, CI-132, CI-132I, CI-132IS
! cPCI Boards: CT-114I
The following installation steps use CP-168U as an example.

Installing the Driver

1. After installing the UPCI/PCI board and powering on your PC, Windows 2003 will auto
detect and find the UPCI/PCI board you just added. The Found New Hardware window will open in the bottom right corner of the Windows desktop.
2. The Welcome to the Found New Hardware Wizard window will open automatically.
Select Install from a list or specific location (Advanced). Click on Next to continue.
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
3-2
Software Installation
4. Wait while the installation wizard searches. 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 on Continue Anyway to proceed.
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.
CP-132U Series User’s Manual
3-3
6. The Found New Hardware Wizard window will open to help you install the driver for
MOXA Port 0. Select Install from a list or specific location (Advanced). Click on Next to continue.
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
3-4
Software Installation
8. Wait while the installation wizard searches. 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 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.
CP-132U Series User’s Manual
3-5
10. Repeat steps 6 to 9, until the port driver installation for every port is completed.

How to Check the Installation

There are three ways to check the installation of the CP-168U Series board.
Using Device Manager
1. Use your mouse to position the cursor over your desktop’s My computer icon, click
the right mouse button, and then select Properties.
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
3-6
Software Installation
4. If there are any special marks, such as a question mark or an exclamation mark in front
of the icons, the installation of the board or the ports was not successful. Examine the Event Log for details.
Port Configuration
After the driver is installed, the MOXA CP-168U Installation dialog box will be displayed, and the system will map the ports automatically.
If one MOXA CP-168U board was installed previously, and another MOXA CP-168U board is added, the system will prompt you to take care of port configuration, which is discussed in this section.
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.
CP-132U Series User’s Manual
3-7
2. Select a COM number for the port from the Port Number pull-down list.
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
3-8
Using PComm
Software Installation
4. Select an Rx FIFO Trigger from the Rx FIFO Level pull-down list. Rx FIFO trigger
levels from High to Low are available, with the default set to High (120 bytes). Check Set the change to all ports check-box to apply the just defined Rx FIFO Trigger to all ports.
5. Select a Tx FIFO Size from the Tx FIFO Level pull-down list. Tx FIFO Levels from
High to Low are available, with default value 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.
CP-132UL V2/CP-132UL-I V2 CP-132UL/CP-132U-I Tx FIFO Rx FIFO Tx FIFO Rx FIFO High 128 120 64 56 Middle 64 60 32 28 Low 1 1 1 1
Unit: Bytes
6. Click [OK] in the Port X dialog box to confirm the port settings, and then click [OK]
in the Property dialog box to complete the port settings.
The PComm Diagnostic program is a very useful tool for checking the status of MOXA’s multiport boards. It provides internal and external testing of IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, etc. This program can be used to make sure that MOXA’s boards and ports are working properly.
To start this program, click on Start # Programs # PComm Lite 2000 #PComm Diagnostic.
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.
CP-132U Series User’s Manual
3-9
Using Event Log
To use Event Log to check MOXA boards, click Start # Settings # Control Panel # Administrative Tools # Event Viewer to enter the Event Viewer program. You can find the latest information relevant to MOXA’s drivers under System category.

Windows 2000/XP

Windows 2000/XP supports up to 256 serial ports, from COM1 to COM256. In order to utilize fully Windows 2000/XP’s multi-process and multi-thread advanced features, pure 32-bit Windows 2000/XP device drivers were developed for MOXA multiport boards. The drivers conform to the Win32 COMM API standard.
The Windows 2000/XP driver for MOXA’s multiport serial boards supports the following products:
! Universal PCI Boards: CP-168U, CP-104UL, CP-104JU, CP-134U, CP-134U-I,
CP-132UL, CP-132UL-I V2(CP-132U-I V1)
! PCI Boards: C168H/PCI, C104H/PCI, C104HS/PCI, CP-114, CP-114I, CP-114S,
CP-114IS, CP-132, CP-132I, CP-132S, CP-132IS
! ISA Boards: C168H, C168HS, C168P, C104H, C104HS, C104P, CI-104J, CI-104JS,
CI-134, CI-134I, CI-134IS, CI-132, CI-132I, CI-132IS
! cPCI Boards: CT-114I
The following steps use CP-168U to illustrate the installation procedure.

Installing the Driver

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).
CP-132U Series User’s Manual
3-10
Windows 2000 Windows XP
1. Windows 2000 can auto-detect new devices,
and activate the Found New Hardware function to install a device driver for Plug and Play devices.
Software Installation
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. Click Next to continue.
3. Select Search for a suitable driver… and
then click Next to continue.
2. Select Install from a list or specific
location. Click Next to continue.
CP-132U Series User’s Manual
3-11
4. Select Specify a location and then click Next
to continue.
5. Insert the Moxa Driver CD into the CD-ROM
drive, and then specify the location of the file as Software\Win2K-XP-2003 as shown below (change the drive letter if needed). Click OK to continue.
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.
4. Wait while the driver software is installed.
CP-132U Series User’s Manual
3-12
Software Installation
6. Click Next to copy the driver files to your
system.
7. Wait while the installation wizard searches.
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.
5. Wait while the installation wizard searches.
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
Loading...
+ 61 hidden pages