Moxa Technologies CP-118U User Manual

CP-118U User’s Manual
8-Port RS-232/422/485 Serial Board for Universal PCI Bus
Second Edition, December 2004
www.moxa.com/product
Moxa Technologies Co., Ltd.
Web: www.moxa.com
MOXA Technical Support
Worldwide: support@moxa.com.tw The Americas support@moxa.com
CP-118U 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 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.
Table of Contents
Chapter 1 Introduction ..................................................................................................1-1
Overview.................................................................................................................................. 1-2
Applications............................................................................................................................. 1-3
Features.................................................................................................................................... 1-3
Package Checklist .................................................................................................................... 1-3
Installation Flowchart .............................................................................................................. 1-4
Chapter 2 Hardware Installation...................................................................................2-1
CP-118U Block Diagram......................................................................................................... 2-2
DIP Switch Settings................................................................................................................. 2-2
Plugging the Board into an Expansion Slot ............................................................................. 2-3
Chapter 3 Software Installation....................................................................................3-1
Windows Drivers ..................................................................................................................... 3-2
Windows 2003/XP........................................................................................................ 3-3
Windows 2000............................................................................................................ 3-14
Windows 95/98........................................................................................................... 3-26
Windows NT .............................................................................................................. 3-38
Non-Windows Drivers........................................................................................................... 3-45
DOS ............................................................................................................................ 3-45
Linux...........................................................................................................................3-48
SCO ............................................................................................................................ 3-50
Chapter 4 Serial Programming Tools ..........................................................................4-1
MOXA PComm ....................................................................................................................... 4-2
Installing PComm ......................................................................................................... 4-2
PComm Programming Library ..................................................................................... 4-2
Utilities .................................................................................................................................... 4-3
Diagnostic (for MOXA boards only)............................................................................ 4-3
Monitor (for Moxa boards under Windows NT/2000/XP/2003).................................. 4-4
Terminal Emulator........................................................................................................ 4-5
2-wire RS-485 Programming................................................................................................... 4-5
ADDC™....................................................................................................................... 4-6
RTS............................................................................................................................... 4-6
Chapter 5 Pin Assignments..........................................................................................5-1
Board Side Pin Assignments—Female DB62.......................................................................... 5-2
RS-232..........................................................................................................................5-2
RS-422 and 4-wire RS-485........................................................................................... 5-2
2-wire RS-485............................................................................................................... 5-3
Device Side Pin Assignments .................................................................................................. 5-3
Male DB9 (Opt8-D/Opt8-M9)...................................................................................... 5-3
Male DB25 (Opt8B/C) ................................................................................................. 5-4
Female DB25 (Opt8A/S) .............................................................................................. 5-4
RJ45 (Opt8-RJ45)......................................................................................................... 5-5
Chapter 6 Troubleshooting...........................................................................................6-1
General Troubleshooting.......................................................................................................... 6-1
Windows NT............................................................................................................................ 6-2
Windows 95/98........................................................................................................................ 6-2
Appendix A Technical Reference ................................................................................... A-1
Product Specifications ............................................................................................................ A-1
PCI .......................................................................................................................................... A-2
MOXA UART......................................................................................................................... A-2
Appendix B Service Information..................................................................................... B-1
MOXA Internet Services..........................................................................................................B-2
Problem Report Form ..............................................................................................................B-3
Product Return Procedure........................................................................................................B-4
1
1

Chapter 1 Introduction

Moxa’s CP-118U Universal PCI serial board meets the new slot standard for expansion boards, and works with both 3.3V and 5V PCI slots. The board has eight independent RS-232/422/485 serial ports for connecting data acquisition equipment and other serial devices to a PC.
The following topics are covered in this chapter:
! Overview
! Applications
! Features
! Package Checklist
! Installation Flowchart
CP-118U User’s Manual Introduction

Overview

Smartio—The Smart Multiport Async Solution
CP-118U is one of the newest members of Moxa’s well-known Smartio series of multiport serial boards, in which Smartio stands for Smart Multiport serial I/O solution. The 8-port RS-232/422/485 CP-118U board is designed for the plug-and-play 32-bit PCI bus, and is an economical solution for connecting terminals, modems, printers, scanners, cash registers, bar code readers, keypads, numeric displays, electronic scales, data acquisition equipment, and many other serial devices for the PC and compatible systems. The Smartio device driver makes full use of the 128 byte Tx/Rx FIFO and on-chip H/W and S/W flow control. Your applications will be capable of transmitting data without loss at speeds as high as 921.6 Kbps, providing a reliable, high performance solution for multiport serial communications.
PCI Solution
The CP-118U board complies with PCI Spec. 2.1. The serial transmission mode (RS-232, RS-422, 2-wire RS-485, or 4-wire RS-485) for each port is set with onboard switches, but the ports’ transmission parameters are configured after the board is installed. The IRQ and I/O addresses are assigned automatically by the PCI BIOS. For this reason, the board MUST be plugged into the computer before installing the driver. For more PCI information, refer to the “Technical Reference” appendix.
Surge Protection
The CP-118U board comes with built-in 15 KV ESD surge protection to prevent damage to the board from lightning or high potential voltage. The surge protection feature makes the CP-118U board suitable for industrial, factory-type applications, and for use with applications that are subject to severe weather conditions.
ADDC™ (Automatic Data Direction Control) for RS-485
To make 2-wire RS-485 half-duplex connections easier to manage, ADDC™ (Automatic Data Direction Control) intelligence is built into the CP-118U board, eliminating the need for software interference. This means that Windows applications can be set up to manage RS-485 ports without writing additional code to control the half-duplex protocol.
Operating System Support
The CP-118U board is compatible with all 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, we give installation details for Windows 2003/XP, Windows 2000, Windows NT, Windows 95/98, DOS, Linux, and SCO.
Visit Moxa’s website at www.moxa.com of Moxa’s products.
Universal PCI
The 32/64-bit PCI local bus specification requires that PCI hardware be compatible with both 3.3V and 5V connector types. Moxa’s universal PCI cards can be plugged into 3.3V or 5V, and 32-bit or 64-bit slots.
MOXA Serial Comm Tool
For application development, MOXA provides an easy-to-use serial communication library called PComm that runs under Windows NT/2000/XP/2003/95/98. Use this library to develop your own applications with Visual Basic, Visual C++, Borland Delphi, etc. Utilities, such as Data Scope, Monitor, Terminal Emulator, and Diagnostics are included to make it easier to debug, monitor communication status, provide terminal emulation, and transfer files.
to download the latest drivers and user’s manuals for all
1-2
CP-118U User’s Manual Introduction

Applications

The CP-118U board is suitable for many different applications, including:
! Internet/Intranet Connections ! Remote Access ! Multi-user Applications ! Industrial Automation ! Office Automation ! Telecommunications ! PC-based Vending Machines and Kiosks ! POS (Point-of-Sale) Systems

Features

The CP-118U board has the following outstanding features:
! 8 independent RS-232/422/RS-485 serial ports ! Supports Universal PCI ! Data flow LED display onboard ! MOXA UART with 128-byte FIFO driver ! 50 bps to 921.6 Kbps transmission speed ! Supports both 4-wire and 2-wire RS-485 ! 2-wire RS-485 data control with ADDC™ ! Embedded 15 KV ESD surge protection ! Drivers for all major industrial platforms—Windows 2000/XP/2003, Windows NT, Windows
95/98, Windows XP Embedded, Linux, FreeBSD, SCO

Package Checklist

The following items are included in the CP-118U package:
! CP-118U 8-port serial board ! Documentation and Software CD-ROM ! Quick Installation Guide
NOTE: Notify your sales representative if any of the above items are missing or damaged.
1-3
CP-118U User’s Manual Introduction

Installation Flowchart

The following flowchart gives a brief summary of the procedure you should follow to install the CP-118U board and which chapters to refer to for more detailed information:
Use the onboard DIP Switches to select the data transmission mode for each port.
Install the board in a PCI or PCI-X expansion slot.
Install the driver and configure the board and ports.
Connect the serial devices to the CP-118U board’s serial ports.
Restart the system, and check the driver initialization status.
Chapter 2, “Hardware Installation”
Chapter 2, “Hardware Installation”
Chapter 3, “Software Installation”
Chapter 5, “Pin Assignments”
Chapter 3, “Software Installation”
Develop and run your serial communication applications
1-4
Chapter 4, “Serial Programming Tools”
2
2

Chapter 2 Hardware Installation

The CP-118U Series hardware installation procedure is described in this chapter. Since the CP-118U board’s IRQ number and I/O addresses are assigned automatically by the PCI BIOS, the board MUST be plugged in before installing the driver.
The following topics are covered in this chapter:
! CP-118U Block Diagram
! DIP Switch Settings
! Plugging the Board into an Expansion Slot
CP-118U User’s Manual Hardware Installation

CP-118U Block Diagram

135 mm [5.31 in]
121 mm [4.76 in]
82 mm
CP-118U
MU860
[3.23 in]
41.7 mm [1.64 in]

DIP Switch Settings

CP-118U has three onboard DIP Switch arrays, each with 8 switches, referred to below and on the board (see the above block diagram) as S1, S2, and S3. The switches are used to select one of four serial interfaces—RS-232, RS-422, 4-wire RS-485, 2-wire RS-485—for each of the eight ports. Note that S3 selects between RS-232 and RS-422/485, S2 selects between RS-422 and RS-485, and S3 selects between 2-wire and 4-wire RS-485.
Mode S1 S2 S3
RS-232 --- --- ON
RS-422 --- ON OFF
4-Wire RS-485 ON OFF OFF
2-Wire RS-485 OFF OFF OFF
2-2
CP-118U User’s Manual Hardware Installation

Plugging the Board into an Expansion Slot

Since the CP-118U board’s IRQ number and I/O address are automatically assigned by the PCI BIOS, the board MUST be plugged into one of the computer’s expansion slots before installing the driver.
Step 1: Power off the PC.
WARNING
To avoid damaging your system and board, make sure your computer is turned off before
installing the board.
Step 2: Remove the PC’s cover. Step 3: Remove the slot cover bracket if there is one. Step 4: Use the onboard DIP Switches to set the transmission mode for each port (see the
previous section for details).
Step 5: Plug the CP-118U board firmly into a free 32-bit PCI slot. Step 6: Fasten the holding screw to fix the control board in place. Step 7: Replace the PC’s cover. Step 8: Power on the PC. The BIOS will automatically set the IRQ and I/O address.
Each Moxa Universal PCI or PCI board uses one unique IRQ and I/O address, both of which are
NOTE
assigned automatically by the PCI BIOS.
Step 9: Proceed with the software installation discussed in the next chapter, “Software
Installation.”
2-3
3
3

Chapter 3 Software Installation

In this chapter, installation, configuration, and update/removal procedures for the driver are given for Windows (2003/XP, 2000, 98/95, NT), DOS, Linux, and SCO. 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 about developing your own serial programming applications. Note that up to 4 CP-118U boards can be installed in one system, provided sufficient I/O address and IRQ number resources are available.
Windows 2000/XP/2003, Windows XP Embedded, Windows NT, Windows 95/98, DOS, FreeBSD, Linux, and SCO drivers can be downloaded from the Moxa website.
The following topics are covered in this chapter:

! Windows Drivers

" Windows 2003/XP
" Windows 2000
" Windows 95/98
" Windows NT
! Non-Windows Drivers
" DOS
" Linux
" SCO
CP-118U User’s Manual Software Installation
N
Windows Drivers
MOXA provides drivers that allow you to use the following serial board products under Windows 2003/XP/2000, Windows XP Embedded, Windows 98/95, and Windows NT.
! Universal PCI Boards: CP-118U, CP-168U, CP-104UL, CP-104JU, CP-102U, CP-102UL,
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 overall procedure for installing the Windows drivers for the CP-118U Series boards is summarized in the flowchart at the right. Note that except for Windows NT, a newly installed board will be detected automatically by the Windows OS when it boots up.
Plug the CP-118U Series board into an empty PCI or PCI-X slot. See the Hardware Installation chapter.
Turn on your PC. Windows will automatically detect the board (except for Windows NT).
Driver already installed?
o
Install the driver from the Documentation and Software CD. See the Installing the Driver for the First Time subsection for detailed instructions.
Configure the board’s ports. See the Configuring the Ports subsection for detailed instructions.
The CP-118U board and ports are ready to use.
Ye s
3-2
CP-118U User’s Manual Software Installation

Windows 2003/XP

In this section, we describe the installation procedure for Windows XP. The installation procedure for Windows 2003 is similar.
Windows 2003/XP support up to 256 serial ports, from COM1 to COM256. In order to utilize fully Windows 2003/XP’s multi-process/multi-thread advanced features, pure 32-bit Windows 2003/XP device drivers were developed for MOXA multiport boards. The drivers conform to the Win32 COMM API standard.
Installing the Driver
The following procedure shows how to install the CP-118U driver for the first time under Windows XP. First, make sure the board or boards have already been plugged into the system’s PCI or PCI-X slot(s).
If you have already installed a CP-118U or other MOXA Smartio/Industio board in your
NOTE
computer, and you install additional boards, Windows 2003/XP will automatically detect and install the new board(s) the next time you boot up the computer. In this case, proceed directly to the next section, “Configuring the Ports,” to configure the ports’ serial transmission parameters.
1. After plugging the board into an expansion slot and powering
on your PC, Windows XP will automatically detect the new board, and 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), and then click on Next to continue.
3-3
CP-118U User’s Manual Software Installation
3. Select Search for the best driver in these locations, check Include this location in the
search, and then click on Browse. Navigate to the \CP-118U\Software\Win2K-XP-2003
folder on the software CD, and then click on Next to continue.
4. Wait while the installation wizard searches. The next window that opens cautions you that
although this software hasn’t passed Windows Logo testing, the driver has been tested and shown that it can support the Windows OS. Click on Continue Anyway to proceed.
3-4
CP-118U User’s Manual Software Installation
5. Wait while the driver software is installed.
6. The next window shows the model name of the board, and indicates that Windows has
completed the driver installation. Click on Finish to proceed with the rest of the installation procedure.
3-5
CP-118U User’s Manual Software Installation
7. 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), and then click on Next to proceed.
8. Select Search for the best driver in these locations, check Include this location in the
search, and then click on Browse. If necessary, use the Browse button to navigate to the CP-118U\Software\Win2K-XP-2003 folder, and then click on Next to proceed.
3-6
CP-118U User’s Manual Software Installation
9. Wait while the installation wizard searches. The next window that opens cautions you that
although this software hasn’t passed Windows Logo testing, the driver has been tested and shown that it can support the Windows OS. Click on Continue Anyway to proceed.
10. Wait while the wizard installs the software.
3-7
CP-118U User’s Manual Software Installation
11. After all files have been copied to the system, the Completing the Found New Hardware
Wizard window will open to indicate that it has finished installing Port 0. Click on Finish to
proceed with the rest of the installation.
12. Repeat Step 7 through Step 11 for each of the remaining seven ports. The last port to be
installed will be MOXA Port 7, as shown in the following figure.
3-8
CP-118U User’s Manual Software Installation
13. The Found New Hardware pop-up window will reappear to inform you that the hardware
was installed successfully.
Configuring the Ports
After the driver has been installed, use Device Manager to configure the CP-118U serial ports.
1. Click on Sta rt # Settings # Control Panel # System, select the Hardware tab, and then
click on Device Manager.
3-9
CP-118U User’s Manual Software Installation
2. Expand the Multi-port serial adapters tab, right click on MOXA CP-118U Series (PCI
Bus), and then click on Properties to open the board’s configuration panel.
3. Click on the port you would like to configure to highlight it, and then click on Port Setting.
3-10
CP-118U User’s Manual Software Installation
4. Select a COM number for the port from the Port Number pull-down list.
5. Check the Auto Enumerating COM Number checkbox to map subsequent ports
automatically. The port numbers will be assigned in sequence. For example, if COM 3 is assigned to Port 1, then COM 4 (if not already occupied) will be assigned to Port 2, etc.
6. Select an Rx FIFO Trigger from the Rx FIFO Level pull-down list. Rx FIFO trigger levels
of High, Middle, and Low are available, with the default set to High (120 bytes). Check Set the change to all ports checkbox to apply this Rx FIFO Trigger to all ports.
7. Select a Tx FIFO Level from the Tx FIFO Level pull-down list. Tx FIFO Levels of High,
Middle, and Low are available, with the default set to High (128 bytes). Check Set the change to all ports checkbox to apply the just defined Tx FIFO Size to all ports.
CP-118U Tx FIFO Rx FIFO High 128 120 Middle 64 60 Low 1 1
Unit: Bytes
8. Click on OK to save the port settings, and then click on OK in the Property window to
finish the port settings procedure.
3-11
CP-118U User’s Manual Software Installation
Using MOXA PComm Utility
The PComm Diagnostic program is a useful tool for checking the status of MOXA’s multiport boards. The program can be used to test internal and external IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, etc. Use this program to ensure that your MOXA boards and ports are working properly.
To start the program, click on Start # Programs # PComm Lite 2000(XP Ver 1.2) # PComm Diagnostic.
The PComm Lite software can downloaded for free from Moxa’s website at
NOTE
www.moxa.com/support/free_downloads.htm.
Using Event Log
To use the Event Log to check the installation of your MOXA boards, click on Star t # Settings # Control Panel # Administrative Tools # Event Viewer to enter the Event Viewer utility.
Look under the System category to find the latest information relevant to MOXA’s drivers.
3-12
CP-118U User’s Manual Software Installation
Removing the Driver
1. To uninstall the driver, click on St art # Settings # Control Panel # System, select the
Hardware tab, and then click on Device Manager. Use the mouse to place the cursor over
the CP-118U Series board under Multi-port serial adapters, and then click the right mouse button. Select the Uninstall… option.
2. Click on OK to proceed with uninstalling the board.
3-13
CP-118U User’s Manual Software Installation
3. The Device Manager window refreshes automatically, showing that the driver and ports for
the CP-118U Series board have been removed.

Windows 2000

In this section, we describe the installation procedure for Windows 2000.
Windows 2000 supports up to 256 serial ports, from COM1 to COM256. In order to utilize fully Windows 2000’s multi-process and multi-thread advanced features, pure 32-bit Windows 2000 device drivers were developed for MOXA multiport boards. The drivers conform to the Win32 COMM API standard.
Installing the Driver for the First Time
The following procedure shows how to install the CP-118U driver for the first time under Windows 2000. First, make sure the board or boards have already been plugged into the system’s PCI or PCI-X slot(s).
If you have already installed a CP-118U or other MOXA Smartio/Industio board in your
NOTE
computer, and you install additional boards, Windows 2000 will automatically detect and install the new board(s) the next time you boot up the computer. In this case, proceed directly to the next section, “Configuring the Ports,” to configure the ports’ serial transmission parameters.
3-14
Loading...
+ 58 hidden pages