Moxa Technologies CP-118U User Manual

Moxa Technologies CP-118U User Manual

8-port rs-232/422/485 serial board for universal pci bus
Hide thumbs Also See for CP-118U:

Advertisement

Quick Links

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.
Tel:
+886-2-8919-1230
Fax:
+886-2-8919-1231
Web: www.moxa.com
MOXA Technical Support
Worldwide:
The Americas
support@moxa.com.tw
support@moxa.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP-118U and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Moxa Technologies CP-118U

  • Page 1 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. Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 Web: www.moxa.com MOXA Technical Support Worldwide: support@moxa.com.tw The Americas support@moxa.com...
  • Page 2: Copyright Notice

    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.
  • Page 3: Table Of Contents

    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...
  • Page 4 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...
  • Page 5: Chapter 1 Introduction

    Introduction Chapter 1 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.
  • Page 6: Overview

    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.
  • Page 7: Applications

    CP-118U User’s Manual 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:...
  • Page 8: Installation Flowchart

    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.
  • Page 9: Plugging The Board Into An Expansion Slot

    Chapter 2 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:...
  • Page 10: Cp-118U Block Diagram

    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.
  • Page 11: Plugging The Board Into An Expansion Slot

    CP-118U User’s Manual 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.
  • Page 13: Chapter 3 Software 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.
  • Page 14: 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)
  • Page 15: Windows 2003/Xp

    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).
  • Page 16 CP-118U User’s Manual 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.
  • Page 17 CP-118U User’s Manual Wait while the driver software is installed. 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.
  • Page 18 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. Software Installation...
  • Page 19 CP-118U User’s Manual 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.
  • Page 20 CP-118U User’s Manual 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.
  • Page 21: Configuring The Ports

    Configuring the Ports After the driver has been installed, use Device Manager to configure the CP-118U serial ports. Click on Start # Settings # Control Panel # System, select the Hardware tab, and then click on Device Manager.
  • Page 22 CP-118U User’s Manual 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. Click on the port you would like to configure to highlight it, and then click on Port Setting.
  • Page 23 CP-118U User’s Manual Select a COM number for the port from the Port Number pull-down list. 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.
  • Page 24: Using Event Log

    CP-118U User’s Manual 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.
  • Page 25: Removing The Driver

    To uninstall the driver, click on Start # 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.
  • Page 26: Windows 2000

    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).
  • Page 27 CP-118U User’s Manual After plugging the board into an expansion slot and powering on your PC, Windows 2000 will automatically detect the new board, and the Found New Hardware window will open. When the Welcome to the Found New Hardware Wizard window opens, click on Next to continue.
  • Page 28 CP-118U User’s Manual Select Search for a suitable driver for my device (recommended), and then click on Next to continue. Select Specify a location and then click on Next to continue. Software Installation 3-16...
  • Page 29 CP-118U User’s Manual Navigate to the \CP-118U\Software\Win2K-XP-2003 folder on the software CD, and then click on OK to continue. Click on Next to copy the driver files to your system. Software Installation 3-17...
  • Page 30 CP-118U User’s Manual 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 Yes to proceed.
  • Page 31 CP-118U User’s Manual 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. 10. The Found New Hardware window will reappear and indicate that the board’s ports are being installed.
  • Page 32 CP-118U User’s Manual Configuring the Ports After the driver has been installed, use Device Manager to configure the CP-118U serial ports. Click on Start # Settings # Control Panel # System, select the Hardware tab, and then click on Device Manager.
  • Page 33 CP-118U User’s Manual 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. Basic information about the board is displayed on the General page. Click on the Ports...
  • Page 34 CP-118U User’s Manual Configuration tab to configure the board’s serial ports. Click on the port you would like to configure to highlight it, and then click on Port Setting. Software Installation 3-22...
  • Page 35 CP-118U User’s Manual Select a COM number for the port from the Port Number pull-down list. 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.
  • Page 36 CP-118U User’s Manual 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.
  • Page 37 To uninstall the driver, click on Start # 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.
  • Page 38: Windows 95/98

    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 98. First, make sure the board or boards have already been plugged into the system’s PCI or PCI-X slot(s).
  • Page 39 CP-118U User’s Manual After plugging the board into an expansion slot and powering on your PC, Windows 98 will automatically detect the new board, and display the Found New Hardware window. When the Add New Hardware Wizard window opens, click on Next to continue.
  • Page 40 CP-118U User’s Manual Select Other Devices and then click on Next to proceed. Click on Have Disk. Use the Browse button to navigate to the \CP-118U\Software\Win9x\Windows.95 folder on the Documentation and Software CD, and then click on OK. Software Installation...
  • Page 41 CP-118U User’s Manual Click on CP-118U Series [8-23-2004] to highlight it, and then click on Next. Verify that the CP-118U Series driver will be installed, and then click on Next. Software Installation 3-29...
  • Page 42 Basic configuration information will be displayed in the CP-118U Series Installation window. Click on OK to complete the installation of the board. This completes the installation of the CP-118U board. Click on Finish to exit the Add New Hardware Wizard.
  • Page 43 Follow the procedures given below to re-configure the board’s COM ports. Since CP-118U is a Universal PCI board, when a new board is added or an existing board is removed, the board’s configuration will be added or removed automatically by the operating system when you restart the PC.
  • Page 44 CP-118U User’s Manual Basic information about the board is displayed on the General page. Click on the Ports Configuration tab to configure the board’s serial ports. Click on the port you would like to configure to highlight it, and then click on Port Setting.
  • Page 45: Updating The Driver

    CP-118U User’s Manual Select a COM number for the port from the Port Number pull-down list. Check the Auto Enumerating COM Number checkbox to map subsequent ports automatically. The port numbers will be assigned in sequence. For example, if COM3 is assigned to Port 1, then COM4 (if not already occupied) will be assigned to Port 2, etc.
  • Page 46 CP-118U User’s Manual Click on a MOXA CP-118U board under Moxa Smartio/Industio multiport board to highlight it, and then click on Properties. Select the Driver tab, and click on Update Driver…. Software Installation 3-34...
  • Page 47 CP-118U User’s Manual Click on Next. Select Display a list of all the drivers in a specific location, so you can select the driver you want., and then click on Next. Software Installation 3-35...
  • Page 48 CP-118U User’s Manual In the next window, the CP-118U Series option should already be highlighted. Click on Have Disk… and then navigate to the folder that contains the new driver file. Follow the on-screen instructions to complete the driver update procedure.
  • Page 49 CP-118U User’s Manual Removing the Driver This section explains how to remove the CP-118U driver. Open the Control Panel, double click on the Add/Remove Programs icon, and then select the Install/Uninstall tab. Click on the MOXA Smartio/Industio Driver option and then click on Add/Remove to start the driver removal process.
  • Page 50: Windows Nt

    Win32 COMM API standard. Installing the Driver for the First Time The following procedure explains how to install the Smartio CP-118U driver for the first time. First make sure the board or boards are already plugged into the system’s PCI slot(s).
  • Page 51 Continue from Step 3 in the next section, “Configuring the Ports.” Configuring the Ports Follow the instructions in this subsection if the CP-118U Windows NT driver is already installed, and you wish to re-configure a board’s ports or configure the ports of a newly installed board. In...
  • Page 52 Select the board whose ports you wish to configure to highlight it, and then click on Property. Select the just installed CP-118U board from the Board Type pull-down list, click on a specific port to highlight it, and then click on Port Setting to configure the port.
  • Page 53 CP-118U User’s Manual Select a COM number for the port from the Port Number pull-down list. Check the Auto Enumerating COM Number checkbox to map subsequent ports automatically. The port numbers will be assigned in sequence. For example, if COM3 is assigned to Port 1, then COM4 (if not already occupied) will be assigned to Port 2, etc.
  • Page 54 Click on OK to save the settings, and then click on OK in the Property window to complete the port settings and return to the MOXA Smartio/Industio Configuration Panel window. The just configured CP-118U board will be listed, as shown below. Click on OK to return to the Network window.
  • Page 55 Removing a CP-118U Board To remove a CP-118U board, first shut down your PC, and then physically remove the board from the PCI or PCI-X slot. The next time you start up the PC, the system will automatically remove the configuration for the board.
  • Page 56 CP-118U User’s Manual Removing the Driver To remove the CP-118U driver: Open the Control Panel, click on the Network icon, and select the Adapters tab. Click on MOXA Smartio/Industio Family Adapter in the Network Adapters list to highlight it. Click on Remove.
  • Page 57: Non-Windows Drivers

    MOXA provides drivers that allow you to use the following serial board products under DOS: 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)
  • Page 58: Setting Up The Driver

    CP-118U User’s Manual Setting up the Driver This section covers some of the setup program’s most frequently used functions. For complete details, press F1 to open the on-line help file. Run BIN\SETUP.EXE. Press Enter to select the model name of the MOXA board you are installing.
  • Page 59: Port Number

    CP-118U User’s Manual You may enter or modify the settings of each port at this stage. The values displayed first are the port’s initial values that were set up when the driver was installed. Press F10 to save the changes and exit the SETUP program.
  • Page 60: Unloading The Driver

    CP-118U series (Bus= x ,Dev=y) : OK! Device driver setup O.K. This means that the CP-118U Series driver has been installed properly. At this point, you may execute applications that support API-232 functions, or start developing applications using the API-232 library.
  • Page 61 = MOXA Smartio/Industio Family Multiport Board Status Utility(1.1)= Tty Device Major Number= 30. Callout device Major Number= 35. Board 1 : CP-118U series (BusNo=2, DevNo=13) Port 1: 0xac00, max. baud rate = 230400 bps. Port 2: 0xac08, max. baud rate = 230400 bps.
  • Page 62: Sco

    Follow the steps given in this section to install the SCO driver. Note that the SCO driver provided by Moxa only supports RS-232. Consequently, the SCO driver will only work with CP-118U ports that are configured for RS-232. MOXA provides drivers for the following versions of SCO:...
  • Page 63 The Basic Configuration window will open next. You can install up to four MOXA Smartio Multiport Serial Boards under SCO Unix/SCO Open Server. Board No. Press Enter to select the MOXA Multiport Serial Board you installed. For example, select “CP-118U” and then press Enter. None CP-118U C168 ISA Series...
  • Page 64 CP-118U User’s Manual Press Enter to return to the main screen. Board No. Press Esc to save the configuration and exit. Save configuration changes? (Y/N) 10. The driver files will be copied to the SCO system. Press any key to continue.
  • Page 65: Chapter 4 Serial Programming Tools

    Serial Programming Tools Chapter 4 Moxa provides an easy to use yet powerful serial programming library, and communication troubleshooting utilities under Windows 2000/XP/2003, Windows 95/98, and Windows NT. The following sections give details about the installation, the library, and the utilities for various platforms.
  • Page 66: Moxa Pcomm

    CP-118U User’s Manual MOXA PComm PComm, a professional serial comm tool for PCs, is a software package that runs under Windows NT/2000/XP/2003/95/98. PComm provides: A powerful serial communication library that simplifies serial programming tasks for most popular programming languages. The serial communication library is useful for developing...
  • Page 67: Utilities

    CP-118U User’s Manual Utilities In this section, we give brief descriptions of each utility. For more information about these utilities, read the on-line help from the Documentation and Software CD. Diagnostic (for MOXA boards only) This convenient diagnostic program, which only works with MOXA boards and ports, provides internal and external testing of IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, DTR/DCD, etc.
  • Page 68: Monitor (For Moxa Boards Under Windows Nt/2000/Xp/2003)

    CP-118U User’s Manual Monitor (for Moxa boards under Windows NT/2000/XP/2003) This useful port status monitoring program allows you to monitor data transmission of selected Moxa COM ports. The program monitors data transmission/receiving throughput, and communication line status, with data updated and displayed on the screen at regular time intervals.
  • Page 69: Terminal Emulator

    To run Terminal Emulator, click on Start # Program # Pcomm Lite # Terminal Emulator. 2-wire RS-485 Programming If you are using your CP-118U Series board for RS-485 applications, in addition to reading this section, you should also refer to the “Connection Cables and Cable Wiring” chapter for more details about using RS-485.
  • Page 70: Addc

    RS-232 or RS-422 programming. To ensure precise timing control when using 2-wire RS-485 transmission, we recommend that you configure your CP-118U Series ports as described below. There are 2 methods for controlling 2-wire RS-485 transmission.
  • Page 71: Chapter 5 Pin Assignments

    A maximum of 32 drivers and 32 receivers can be set up on a multidrop network. The CP-118U board 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.
  • Page 72: Board Side Pin Assignments-Female Db62

    CP-118U User’s Manual Board Side Pin Assignments—Female DB62 RS-232 Signal RS-422 and 4-wire RS-485 Signal TxD+(B) TxD-(A) RxD+(B) RxD-(A) Port 6 Port 8 Port 7 Port 5 Port 4 Port Number 32, 40, 45, 50, 55, 58 Pin Number Port Number...
  • Page 73: 2-Wire Rs-485

    CP-118U User’s Manual 2-wire RS-485 Signal Data+(B) Data-(A) Device Side Pin Assignments Male DB9 (Opt8-D/Opt8-M9) RS-232 Port Number 32, 40, 45, 50, 55, 58 Pin Number RS-422 / 2-wire RS-485 4-wire RS-485 TxD-(A) TxD+(B) RxD+(B) RxD-(A) Pin Assignments Data+(B) Data-(A)
  • Page 74: Male Db25 (Opt8B/C)

    CP-118U User’s Manual Male DB25 (Opt8B/C) RS-232 Female DB25 (Opt8A/S) RS-232 RS-422 / 2-wire RS-485 4-wire RS-485 RxD+(B) TxD+(B) TxD-(A) RxD-(A) RS-422 / 2-wire RS-485 4-wire RS-485 TxD+(B) RxD+(B) RxD-(A) TxD-(A) Pin Assignments Data+(B) Data-(A) Data+(B) Data-(A)
  • Page 75: Rj45 (Opt8-Rj45)

    CP-118U User’s Manual RJ45 (Opt8-RJ45) RS-232 RS-422 / 2-wire RS-485 4-wire RS-485 RxD+(B) Data+(B) TxD+(B) TxD-(A) RxD-(A) Data-(A) Pin Assignments...
  • Page 77: Chapter 6 Troubleshooting

    32-bit PCI slot. It is also possible that a slot has malfunctioned. In this case, try other slots until you find one that works. The motherboard does not have an available IRQ for the CP-118U Series board. In this case, enter the BIOS and make sure there is an available IRQ under PCI/PnP settings.
  • Page 78: Windows Nt

    The slot the boards are plugged into is defective. Try another slot until you find one that works. The board might be defective. After the system reboots, the error message “CP-118U 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.
  • Page 79: Appendix A Technical Reference

    Product Specifications Bus interface Number of ports I/O address Data bits Stop bits Parity Flow Control UART Speed Connector Data signals Surge protection Operating temperature Power requirement Dimensions (W × D) Technical Reference Appendix A 32-bit PCI Assigned by PCI BIOS Assigned by PCI BIOS 5, 6, 7, 8 1, 1.5, 2...
  • Page 80: Pci

    Due to slot-dependency, it is necessary to re-configure the driver software once the board is plugged into different PCI slots. Up to 4 CP-118U Series boards are allowed in one system. When installing more than one board, remember the order the boards are installed to distinguish the installed boards from each other.
  • Page 81: Appendix B Service Information

    Service Information Appendix B This appendix shows you how to contact Moxa for information about this and other products, and how to report problems. In this appendix, we cover the following topics. ! MOXA Internet Services ! Problem Report Form ! Product Return Procedure...
  • Page 82: Moxa Internet Services

    CP-118U User’s Manual 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.
  • Page 83: Problem Report Form

    CP-118U User’s Manual Problem Report Form Customer name: Company: Tel: Email: Moxa Product: $ CP-118U Serial Number: _________________ Problem Description: Please describe the symptoms of the problem as clearly as possible, including any error messages you see. A clearly written description of the problem will allow us to reproduce the symptoms, and expedite the repair of your product.
  • Page 84: Product Return Procedure

    CP-118U User’s Manual Product Return Procedure For product repair, exchange, or refund, the customer must: Provide evidence of original purchase. Obtain a Product Return Agreement (PRA) from the sales representative or dealer. Fill out the Problem Report Form (PRF). Include as much detail as possible for a shorter product repair time.

Table of Contents