Moxa Technologies CP-134U User Manual

Industio CP-134U Series
User’s Manual
Industrial 4-Port RS-422/485 Serial Board for PCI Bus
www.moxa.com/product
Fifth Edition, January 2004
Moxa Technologies Co., Ltd.
Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 www.moxa.com
support@moxa.com.tw (Worldwide) support@moxa.com (The Americas)
Industio CP-134U 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 Moxa Technologies Co., Ltd.
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................................support@moxa.com.tw
World Wide Web (WWW) Site for product information:
.............................http://www.moxa.com
.............................http://www.moxa.com.tw
or
Table of Contents
1 Introduction ........................................................................... 1-1
Overview .......................................................................................................1-2
Features .........................................................................................................1-4
Package Checklist .........................................................................................1-4
2 Hardware Installation ............................................................ 2-1
CP-134U Series Block Diagrams .................................................................. 2-2
Installing the Industio CP-134U Series Board.............................................. 2-7
3 Software Installation ............................................................. 3-1
Windows NT ................................................................................................. 3-2
Windows 95/98............................................................................................3-10
Windows 2000/XP.......................................................................................3-25
Linux ...........................................................................................................3-37
4 Serial Programming Tools.................................................... 4-1
PComm Installation .........................................................................................4-2
PComm Programming Library ........................................................................ 4-2
RS-485 Programming.................................................................................... 4-2
5 Connection Cables and Cable Wiring.................................. 5-1
Pinouts and Cable Wiring..............................................................................5-1
Impedance Matching and Termination Resistors .......................................... 5-9
6 Troubleshooting .................................................................... 6-1
General Troubleshooting............................................................................... 6-1
Windows NT ................................................................................................. 6-3
Windows 95/98..............................................................................................6-4
A Technical Reference .............................................................A-1
Specifications ............................................................................................... A-1
PCI................................................................................................................ A-2
Return Procedure.......................................................................................... A-3
Revision History........................................................................................... A-4
1
1
1 Introduction
Welcome to the MOXA CP-134U Series of industrial 4-port RS-422/485 serial boards for the PCI bus.
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 Industio CP-134U Series boards, including CP134-UI and CP-134UL, are designed for a 32-bit PCI bus with the Plug and Play and Universal PCI feature. The ports for these boards can be configured independently, with ports 1 and 2 set to the RS-232, RS-422, or RS-485 interface, and ports 3 and 4 set to the RS-422 or RS-485 interface. Industio products provide a reliable communication link over a longer distance (up to 4000 ft for ports set to the RS-422/485 interface), and are suitable for industrial environments. Connections with point-to-point full-duplex (RS-422 or 4-wire RS-485)or multidrop half-duplex (2-wire RS-485) are available to meet user’s various needs. And each RS-485 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-134U series board, eliminating the need for software interference. This means that Windows applications can manage RS-485 ports without needing to write extra code for controlling the half-duplex protocol.
With their well-designed and fine-tuned device driver, Industio CP-134U boards make full use of the 64 byte Tx/Rx FIFO and on-chip H/W flow control, so that they can transfer data without loss even at speeds as high as 230.4 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 Industio CP-134U 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, TVSS (Transient Voltage Surge Suppressor) technology is included in some models to protect the board. An optical isolation option (2000V), and embedded surge protection (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.
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
1-2
Industio CP-134U Series User’s Manual
Introduction
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 and 32/64-bit slot.
Operating System Support
The Industio CP-134U series is compatible with most major industrial platforms, including Windows NT/2000/XP, Windows 95/98, and Linux. MOXA device drivers are provided for smoother installation, configuration, and performance. In this manual, sections for MOXA Windows NT, Windows 2000/XP, Windows 95/98, and Linux 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 and Windows 95/98. You can use this library to develop your own applications using 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.
Board Applications
The board is suitable for many industrial applications, including:
Multipoint data acquisition Factory automation Critical industrial control Remote serial device control
Industio CP-134U Series User’s Manual
1-3
Features
The Industio CP-134U Series includes the following products:
CP-134U 4 RS-422/485 ports, Universal PCI interface with embedded Surge Protection and Isolation Protection (16 KV ESD, 2 KV Isolation) CP-134UI 4 RS-422/485 ports, Universal PCI interface with embedded Surge Protection and Isolation Protection
Below we list the outstanding features of the Industio CP-134U Series boards:
Supports 4 independent serial ports—2 ports for RS-232 or RS-422/485, and 2 ports
Compact board size (half-size) Jumpers for selecting between RS-232 and RS-422/485 DIP Switches for selecting between RS-422, 4-wire RS-485, and 2-wire RS-485 DIP Switch for RS-485 data control—ADDC™ (Automatic Data Direction Control) Jumper for Termination Resistor selection—eliminates impedance matching headaches Reliability—high speed 16C550C compatible Communication Controllers with
PComm Lite—a powerful serial Comm utility. Embedded Surge Protection (16 KV ESDS) for all signal lines (CP-134UI, CP-134UL) Supports 64 byte FiFo Driver Supports drivers for most major industrial platforms—Windows NT/2000/XP,
Supports both 3.3V and 5V connector types
for RS-422/485
on-chip hardware flow control to guarantee no data loss
Windows 95/98, and Linux
Package Checklist
You should find the following items in the Industio CP-134U Series package:
Industio CP-134U Series 4-port serial board
MOXA software CD-ROM, which includes:
Drivers for MOXA Multiport Async Products User’s Manual (PDF format)
1-4
Industio CP-134U Series User’s Manual
2
2
2 Hardware Installation
You will need to install both hardware and software for Industio CP-134U 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-134 Series Block Diagram
Installing the Industio CP-134U Series Board
CP-134U Series Block Diagrams
Industio CP-134U 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-134UI
2-2
Industio CP-134U Series User’s Manual
Hardware Installation
CP-134U
The Industio CP-134U Series has two 30-pin jumpers and two sets of four DIP Switches on the board that allow the user to set the serial interface for each of the board’s four ports. Ports 1 and 2 can be set to RS-232, RS-422, RS-485 (2-wire), or RS-485 (4-wire). Ports 3 and 4 can be set to RS-422, RS-485 (2-wire), or RS-485 (4-wire). Refer to the following information to determine the proper settings for your board.
Industio CP-134U Series User’s Manual
2-3
Jumper Settings
The two on-board 30-pin jumpers are used to select between the RS-232 and RS-422/485 serial interfaces. If you select RS-422/485, then you will also need to set the DIP Switches to select between RS-422, RS-485 (4-wire), and RS-485 (2-wire). Note that the two ports can be configured independently.
Jumper pins: Top for Port 1, Bottom for Port 2
RS-422/485: Cover the left two columns of pins with the jumper to select the RS-422/485 option.
RS-232: Cover the right two columns of pins with the jumper to select the RS-232 option.
DIP Switch Settings
Refer to the figures on the following two pages to see how to select between RS-422, RS-485 (2-wire), and RS-485 (4-wire).
2-4
Industio CP-134U Series User’s Manual
Hardware Installation
DIP Switch
Settings
RS-232 — —
RS-422 — OFF
S1-1 S2-1
Port 1
RS-485 (2-wire)
RS-485 (4-wire)
ON ON
OFF ON
DIP Switch
Settings
RS-232 — —
RS-422 — OFF
RS-485 (2-wire)
S1-2 S2-2
ON ON
Port 2
RS-485 (4-wire)
OFF ON
Industio CP-134U Series User’s Manual
2-5
DIP Switch
Settings
RS-422 — OFF
S1-3 S2-3
Port 3
RS-485 (2-wire)
RS-485 (4-wire)
ON ON
OFF ON
DIP Switch
Settings
RS-422 — OFF
RS-485 (2-wire)
RS-485 (4-wire)
S1-4 S2-4
ON ON
OFF ON
Port 4
2-6
Industio CP-134U Series User’s Manual
Hardware Installation
Installing the Industio CP-134U Series Board
Step 1 : Power off the PC.
Warnin g! 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 Industio CP-134U Series control board firmly into a free 32-bit PCI slot,
or the CP-134U Series board into both a 32-bit/64-bit 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! Each board must occupy one unique IRQ and two 8-byte I/O addresses,
which are assigned automatically by the PCI BIOS. However, you can
select a free IRQ number manually via the PC’s BIOS setup for the PCI slot, but normally this method is not available for the I/O address. The possible IRQ numbers are 2, 3, 4, 5, 7, 10, 11, 12, and 15. The possible I/O addresses are from 0x0000 to 0xFFFF.
Step 8: Proceed with the software installation discussed in the next chapter, “Software
Installation.”
Industio CP-134U Series User’s Manual
2-7
3
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, Windows 2000/XP, and Linux. Before proceeding with the software installation, complete the hardware installation, discussed in the previous chapter, “Hardware Installation.”
If you need to develop your own applications, refer to the next chapter, “Serial Programming Tools,” for programming issues.
The following topics are covered in this chapter:
Windows NT
Windows 95/98
Windows 2000/XP
Linux
Windows NT
Windows NT supports up to 256 serial ports, from COM1 to COM256. To fully integrate the advanced features of Windows NT, Moxa has developed multi-process and multi-thread, pure 32-bit Windows NT device drivers for the Industio CP-134U Series multiport boards. The driver conforms to the Win32 COMM API standard.
To install the driver for the first time, go directly to the next section, “Installing the
Driver.”
If the driver is already installed, and you want to re-configure the board and port(s),
add more boards, or delete boards, refer to the section “Configuring the Board and Ports.”
To update or remove the driver, refer to either, “Updating the Driver” or “Removing
the Driver.”
3-2
Industio CP-134U Series User’s Manual
Installing the Driver
The following procedure is for installing the Industio CP-134U Series driver for the first time under Windows NT 4.0. Before taking these steps, make sure the board(s) have
already been plugged into the system’s PCI slot(s).
1. Log into NT as Administrator.
2. Open the [Control Panel], click on the [Network] icon, and select the [Adapters] tab.
3. Click on the [Add] button, then the [Have Disk...] button in the “Select Network
Adapter” dialog box.
4. Specify the exact path of the driver diskette, E:\Software\Winnt\Windows.nt for the
example shown here, and then click [OK].
Software Installation
Industio CP-134U Series User’s Manual
3-3
5. Select “MOXA Smartio/Industio Family multiport board” from the “Select OEM
Option” dialog box, and then click [OK] to enter the “MOXA Smartio/Industio Configuration Panel” dialog box to start the installation.
6. Click the [Add] button to open the Property dialog box to change port settings and advanced FIFO configurations done automatically by the system.
3-4
7. In the “Property” dialog box, select the newly plugged Industio CP-134U Series board from the Board Type pull down list. Next, click on one of the ports to highlight it, and then click on [Port Setting] to open the port’s configuration window.
Industio CP-134U Series User’s Manual
Software Installation
8. The [Port #] window will open to allow you to change settings, as described below, for that particular port.
Port Number
You must set up all of the board’s ports with the desired “COM number,” which
Industio CP-134U Series User’s Manual
3-5
should not conflict with other COM numbers in use. In this “Individual Port Setting” dialog box, there are two ways to map physical ports to COM numbers, depending on whether you check the “Auto Enumerating COM Number” box.
If “Auto Enumerating COM Number” is checked, and the COM number of the first port is specified, then subsequent ports are mapped to the next available COM number. For instance, if the first port is mapped to COM3, then the second port is mapped to COM4.
If “Auto Enumerating COM Number” is not checked, specify the COM number for each port separately. For example, the second port could be mapped to COM10, and the first port mapped to COM3.
Rx FIFO Trigger
You may choose from Rx FIFO trigger levels of from 1 to 62 bytes, with the default value set at 56 bytes.
Tx FIFO Size
You may choose a Tx FIFO size from between 1 and 64 bytes with the default value set at 64 bytes.
9. Click [OK] in the “Port #” and “Property” dialog boxes to go back to the “MOXA Smartio/Industio Configuration Panel” dialog box.
3-6
Note ! If you need to install more than one board, click [Add] and repeat steps 6
to 8 to configure the additional board. Up to four Industio CP-134U Series boards can be installed in one NT system.
Click [OK] to finish the configuration.
Industio CP-134U Series User’s Manual
Software Installation
10. When you have finished the configuration, click on the [Close] button in the “Network Settings” dialog box.
11. Restart the Windows NT system. The new configuration will take effect when the system restarts.
Note ! The latest configuration will not take effect unless the system restarts.
12. Once the system restarts, you may check the event log issued by the MOXA driver to see if the board’s ports have been initialized successfully.
Enter the [Administrative] group, click on the [Event Viewer] icon and select
[System Event Log] to check a message similar to “MOXA CP-134U, with first serial port COM3, has been enabled” for each configured board.
If an error message similar to “Cannot find any configured MOXA CP-134U
board!” appears, refer to the “Troubleshooting” chapter for solutions.
Industio CP-134U Series User’s Manual
3-7
Note ! Once the board and the driver are installed and the driver restarts
successfully, you can start to develop applications with the PComm library (see the “Serial Programming Tools” chapter) or the Microsoft Win32 API. You can also execute 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.
Configuring the Board and Ports
The following steps explain how to re-configure the board’s ports:
1. In the [Control Panel], click on the [Network] icon and select the [Adapters] tab.
2. Select “MOXA Smartio/Industio Family Adapter” in “Network Adapters.”
3-8
3. Click on the [Properties] button to open the “MOXA Smartio/Industio Configuration Panel” dialog box. See steps 8-9 in the previous section, “Installing the
Driver,” for more details.
Industio CP-134U Series User’s Manual
Software Installation
You may use this configuration panel to:
Click on [Property] to enter the “Property” dialog box to configure the selected
board with the correct “COM Number,” “Rx FIFO Trigger,” and “Tx FIFO Size.” See Steps 8 and 9 in the previous section, “Installing the Driver,” for more details.
Click on [Add] to add one more board that has not yet been configured for the
system. See Steps 6 to 9 in the previous section, “Installing the Driver,” for more details.
To automatically remove the configuration, simply unplug the CP-134U Series
board—after you turn off your PC. There is no need to use the remove board function from the Moxa Smartio/Industio Configuration Panel dialog box.
Click [OK] to confirm the configuration changes that you’ve made.
Click on [Cancel] to close the window without changing the configuration.
Updating the Driver
To update the driver for the Industio CP-134U Series board, simply remove the driver, as described in the next section, and reinstall it as detailed in the section, “Installing the Driver.”
Industio CP-134U Series User’s Manual
3-9
Removing the Driver
To remove the driver for the Industio CP-134U Series board,
1. Open the [Control Panel], click on the [Network] icon, and select the [Adapters] tab.
2. Select “MOXA Smartio/Industio Family Adapter” from the adapter list, and then click on the [Remove] button, and then click [OK] to remove the driver.
3. Restart the system to activate the new configuration.
Windows 95/98
Windows 95/98 supports up to 128 serial ports, from COM1 to COM128. To fully integrate the advanced features of Windows 95/98, Moxa has developed multi-process and multi-thread, pure 32-bit Windows 95/98 virtual device port drivers (VxD) compliant with communication drivers (VCOMM), for the Industio CI-134 Series and other MOXA multiport boards. The drivers conform to the Win32 COMM API standard.
To install the driver for the first time, go directly to the section, “Installing the Driver.”
If you have already installed the driver and want to re-configure the board and ports,
add more boards, or delete boards, refer to the section “Configuring the Board and Ports.”
To upgrade or remove the driver, go to either the “Updating the Driver” or “Removing the Driver” sections.
Installing the Driver
Because of Windows 95/98’s Plug and Play capability, you can easily plug in the Industio CP-134U Series board and get to work right away with very little installation effort. Windows 95/98 will automatically detect the presence of the newly plugged board and prompt you to install the driver software from the driver diskette.
At most, 4 Industio CP-134U Series boards can be installed in ONE system, provided I/O addresses and IRQ number resources are sufficient and available in the system.
The following flow chart illustrates the driver installation stages of the Industio CP-134U Series boards. Each stage will be discussed in turn.
3-10
Industio CP-134U Series User’s Manual
Software Installation
Install the Smartio PCI board in the system.
Start Windows 95/98 to detect the board.
Driver installed before? Yes
No
Install the driver from the diskette. See the “First Time Driver Installation” section.
Configure the port. See the “Port Configuration” section.
The Industio CP-134U Series ports should now be ready for use. See the “Board and Ports Ready” section.
Industio CP-134U Series User’s Manual
3-11
Loading...
+ 60 hidden pages