Industio CP-114 Series User’s Manual 3 in 1 RS-232/422/485 Industrial Serial Board for PCI Bus Fifth Edition, June 2008 www.moxa.com/product © 2008 Moxa Inc., all rights reserved. Reproduction without permission is prohibited.
Industio CP-114 Series User’s Manual The product described in this manual is furnished under a license agreement and may be used only in accordance with the terms of the agreements. Copyright Notice Copyright ©2008 Moxa Inc. All rights reserved. Reproduction in any form without permission is prohibited. Trademarks MOXA is a registered trademark of Moxa Inc. All other trademarks or registered marks in this manual belong to their respective manufacturers.
About This Manual This manual is composed of six chapters and one appendix. This manual is written for installer, system administrator and software programmer. If you are a first-time installer and system administrator, we recommend you to go through the whole manual except Chapter 4. If you are a software programmer, you may refer to chapter 4, “Serial Programming Tools”. If you need cable wiring information, please see chapter 5, “Connection Cable and Cable Wiring”.
Table of Contents Chapter 1 Introduction .............................................................................................1-1 Overview.................................................................................................1-1 Features..................................................................................................1-2 Check List ...............................................................................................1-3 Installation Guide ..........................
1 1 Introduction Overview Industio - Industrial Multiport Async Solutions for PCI The term Industio stands for smart multiport serial I/O solution for industrial applications. The Industio CP-114 Series boards, including CP-114, CP-114I, CP-114S and CP-114IS, are RS-232/RS-422/RS-485 4-port serial communication interface boards for 32-bit PCI bus with “Plug and Play” feature. The Industio CP-114 Series support all three serial interfaces, RS-232, RS-422 and RS-485, in one board.
Operating System Support Support for Windows NT, Windows 95/98 and DOS with user-friendly installation, configuration and performance. Moxa Serial Comm Tools For application development, Moxa provides an easy-to-use serial communication library under Windows NT, Windows 95/98 (PComm) and DOS (API-232). Users 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.
Introduction Check List Upon unpacking the Industio CP-114 Series, you should find items in the package: Industio CP-114 Series 4 ports serial board×1 Moxa Software CD-ROM×1, which includes: z Drivers for Moxa Multiport Async Products z PComm Lite programming library and utilities for Windows NT/95/98 z API-232 programming library and utility for DOS z User’s Manual (PDF) Industio CP-114 Series User’s Manual (This manual) Fan out cable DB37 to 4× DB9 (Male) Installation Guide This section gives
2 Hardware Installation 2 The installation of the Industio CP-114 Series consists of hardware and software installation. The respective sections of the operating systems in the next chapter deal with the software installation. The hardware installation is detailed in this chapter.
z z S2 Data Mode Selection Switch for Port 1/2/3/4: (Valid if JP5/6 is Left and S1 is ON) ON* Set the RS-485 port to Automatic Data Direction Control Mode. OFF Set the RS-485 port to By RTS Mode. JP1/2/3/4 Termination Resistor Port 1/2/3/4: (Valid if JP5/6 is Left and S1 is ON) Open * Not using Termination Resistor Short Using Termination Resistor Installing the Industio CP-114 Series Board The BIOS automatically assigns the IRQ number and I/O addresses for the Industio CP-114 Series board.
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 and DOS. Before proceeding with the software installation, complete the hardware installation detailed in previous chapter. However, if it is necessary for you to develop your own applications, please refer to the next chapter, “Serial Programming Tools”, for serial programming issues.
5. Select “Moxa Smartio/Industio Family multiport board” in the “Select OEM Option” dialog box, and click [OK] to enter the “Moxa Smartio/Industio Configuration Panel” dialog box to start the installation.
Software Installation 6. In the “Moxa Smartio/Industio Configuration Panel” dialog box, click [Add] to enter “Property” dialog box to add the Industio CP-114 Series board. Select the “CP-114 Series” in the “Board Type” field. In the “Property” dialog box, the COM number field of the newly installed board is set to default COM No. If necessary, you may select to change all the ports of the board with the desired “COM Number”. Note ! You may go directly to the step 8 if you need not change any setting. 7.
z Rx FIFO Trigger Rx FIFO trigger levels, at 1, 4, 8 or 14 bytes, are available, and the default value is 14 bytes. z Tx FIFO Size Tx FIFO sizes from 1 to 16 bytes are available, and the default value is 16 bytes. 8. Click [OK] in the “Port #” and the “Property” dialog boxes to go back to the “Moxa Smartio/Industio Configuration Panel” dialog box. Note ! If you need to install more than one board, click [Add] and repeat steps 6 to 8 to configure another board.
Software Installation 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 “Serial Programming Tools”) or the Microsoft Win32 API. You can also execute any ready-made applications, such as PComm utility Terminal emulator (See “Serial Programming Tools”) or HyperTerminal to transmit/receive data, as well as Remote Access Service to provide dial-up networking capabilities.
Removing Driver To remove the driver for the Industio CP-114 board, 1. Open the [Control Panel], click on the [Network] icon, and select the [Adapters] tab. 2. Select “Moxa Smartio/Industio Family Adapter” in the adapter list, then click on the [Remove] button and the [OK] button 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.
Software Installation The following flow chart illustrates the driver installation stages of the Industio CP-114 Series boards. Each stage is detailed later. Install the Industio PCI board in the system See chapter “Hardware Installation” Start Windows 95/98 to detect the board Yes Driver installed before? No Install the driver with the diskette See “First Time Driver Installation Stage” Configure the port See “Port Configuration Stage” The ports of the Industio CP-114 Series board are ready to work.
Software Installation Windows 95 Windows 98 2. 2. Click on the [Other Locations] button. Select “Display a list...” and click [Next>]. 3. Type “A:\Windows.95” in the Location field, and click [OK] button. The system will start reading the files from the diskette. 3. Select “Other Devices” and click [Next>] button. 4. Clink on the [Finish] button. 4. Click on the [Have Disk] button.
5. Type “A:\Windows.95” and click [OK] button. The system will start reading the files from the diskette. 6. Click [Next>] button. 7. Click [Next>] button. Port Configuration Stage This stage displays the “CP-114 Series Installation” dialog box for the port configuration. Here you can map the Moxa ports to the system COM numbers. In the “CP-114 Series Installation” dialog box, the COM number field of the newly installed board is set to default COM No.
Software Installation In the “CP-114 Series Installation” dialog box, select the desired port in the port list and click [Port Setting] to enter the individual “Port #” setting dialog box to change the port number mappings or FIFO settings. z Port Number You have to set up all the ports of the board with the desired “COM number”, which should not conflict with other COM number in use.
Board and Port Ready Stage Click [OK] for all the dialog boxes to finish the configuration and exit the “CP-114 Series Installation” dialog box. In this last stage, you will complete the driver installation. Windows 95 After the port installation, you can immediately use the COM ports of the Industio CP-114 Series board without restarting Windows 95 system. Windows 98 After the port installation, click on the [Finish] button.
Software Installation Configuring Board and Port If you already have installed the driver and want to re-configure the COM number for the ports under Windows 95/98, follow this procedure. 1. Open the [Control Panel], click on the [System] icon, select the [Device Manager] tab, and then [Moxa Smartio/Industio multiport board]. Select the desired [CP-114 Series] entry, click on the [Properties] button and select the [Ports Configuration] tab. Î 2.
Updating Driver This section explains how to update the driver. 1. In the [Control Panel], click on the [System] icon, select the [Device Manager] tab and select [Moxa Smartio/Industio multiport board]. 2. Select the “CP-114 Series” option. Click on the [Properties] button and then select the [Driver] tab. 3. Click on the [Update Driver...] button. Click then on the [Have Disk...] button to type the path of the new driver and update the driver. 4. Restart the system to activate the new configuration.
Software Installation Removing Driver This section explains how to remove the Industio CP-114 Series board driver. 1. Open [Control Panel] icon, double click [Add/Remove Programs] icon, and then select [Install/Uninstall] tab. 2. Click on Moxa Smartio/Industio Driver option and then click [Add/Remove] button to start the driver removal. 3. Click [Yes] button in the following shown message box to confirm the driver removal. 4. Click [OK] button in Add/Remove Programs Properties dialog box.
DOS Moxa DOS API-232 is a software package that assists users to develop and/or debug programs for serial communications. This section will show you how to install the package, how to setup up the driver, and how to load or unload driver. For details of the serial programming (API-232 Library) and utilities, please refer to the next chapter, “Serial Programming Tools”. Installing Driver Run the installation program, DOSINST.EXE, in the DOS driver diskette. Specify the target API-232 directory (e.g.
Software Installation Driver Setup The following are steps for setting up the Industio CP-114 Series driver. Note that it is not intended to illustrate all the convenient functions of the setup programs when configuring the boards. 1. Run the setup program, BIN\SETUP.EXE, in the API-232 directory. 2. Press Enter to pop up the SETUP dialog box.
Note ! Up to now you have completed the setup for Industio CP-114 Series board. You may skip this step and go directly to the next step 5 if you need not change any setting or configure any board. 3. 3. You may now enter/modify each port’s configuration. These displayed values are the port initial values as driver is loaded. Legend: 3-18 Industio CP-114 User's Manual Some noticeable fields and functions are explained below.
Software Installation Port number: This is actually the port ID of each port. The application software will refer to the port by its port number (ID). Duplicated port number is not allowed. That is, each Moxa serial port is referred to as port number in terms of serial programming. You may map the port number range to the one you prefer between 0 and 255 as long as no port number overlapping condition or port number undefined condition occurs.
Loading Driver Having completed the setup, you can load the driver, "BIN\DP-DRV.EXE", at the DOS prompt. The driver will detect the Industio CP-114 Series board automatically. If the board(s) is(are) detected, a message similar to below will show: Smartio/Industio Family DOS driver Version 1.1 Setup driver…. CP-114 series (Bus=0, Dev=11): O.K.! Device driver setup O.K. It means the Industio CP-114 Series driver is installed properly.
4 4 Serial Programming Tools Moxa supports some easy but powerful serial programming libraries and communication troubleshooting utilities under Windows NT and Windows 95/98. You will save a lot of developing time with the Moxa Serial Programming Tools. The following sections will detail the installation, the library and the utilities for various platforms. PComm, the professional serial comm tool for PC, is a software package for Windows NT and Windows 95/98.
Utilities Following are short descriptions of each utility. For details, please see the on-line help on the diskette. Diagnostic (for Moxa boards only) A convenient diagnostic program that provides internal and external testing, such as IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, DTR/DCD testing, etc., for the Moxa boards and ports to verify correct operations of both the software and hardware. Click [Start] and select [Program Files] and [PComm Lite] and [Diagnostic].
Serial Programming Tools Monitor (for Moxa boards under Windows NT Only) A useful port status monitoring program that allows you to watch the selected Moxa COM ports’ data transmitting/receiving throughput and communication line status which are updated and displayed on the screen at time intervals. You can also click on one of the specific displayed port in order to visualize the current communication parameters and status of that port.
Terminal Emulator The Terminal Emulator features multi-windows and supports terminal types of VT100 and ANSI. You can transfer data interactively, send pattern periodically or transfer file using ASCII, XMODEM, YMODEM, ZMODEM and KERMIT protocols. Click [Start] and select [Program Files] and [PComm Lite] and [Terminal Emulator].
Serial Programming Tools DOS Installing API-232 API-232 Library is the professional serial programming tool for DOS. It is installed automatically along with the Moxa DOS drivers. The installation is detailed in Chapter "Software Installation". DOS API-232 Library DOS API-232 library supports languages like Microsoft C, Turbo C, Macro Assembly, QuickBasic, Turbo Pascal, Clipper, etc. Sample programs for each supported language are included, and placed in the sub-directory, ..
Data Scope The Data Scope, BIN\SCOPE.EXE, is a suite of utility programs that can help users with system troubleshooting and serial communication debugging. There are three major functions in Data Scope utility: 1. The Data Scope utility offers transparent monitoring of serial communication lines and allows data to be streamed to disk storage for later analysis. 2.
Serial Programming Tools RS-485 Programming If you intend to do RS-485 communication with Industio CP-114 Series, please follow the RS-485 programming guide below and also refer to the chapter, “Connection Cable and Cable Wiring”, for more RS-485 operation details. The Industio CP-114 Series supports only 2-wire half-duplex RS-485 communication. Data+/pins are served for both data transmitting and receiving, depending on the mode selected: either Automatic Data Direction Control (ADDC) or By RTS mode.
There are 2 solutions to control RS-485 2-wire transmission. Solution 1 The following model is common in RS-485 2-wire transmission. sio_SetWriteTimeouts(port, 0); sio_RTS(port, 1); sio_write(port, buff, 10); sio_RTS(port, 0); sio_read(port, buff, 10); /* Set sio_write() into block mode if for Windows NT and Windows 95/98 */ /* Turn on RTS signal. The RS-485 port is ready for transmitting data. */ /* Write 10 byte characters in "buff".
5 5 Connection Cable and Cable Wiring In serial data communications, the term DTE is for Data Terminal Equipment, like PC COM1/2, serial printers and terminals. The term DCE is for Data Communication Equipment, like modems. RS-232 Cable Wiring The followings are pin assignments for the DB9 RS-232 connector for Port 1 and Port 2 of Industio CP-114 Series.
Type 1: To connect the Industio CP-114 Series to a DTE device.
Connection Cable and Cable Wiring Type 2: To connect Industio CP-114 Series to a DCE device. Modem or any DCE Device CP-114 CP-114 DCE Device DB9 Male DB25 Female RxD TxD CTS RTS DTR DSR GND DCD Type 3: 2 3 8 7 4 6 5 1 2 3 4 5 6 20 7 8 RxD TxD CTS RTS DTR DSR GND DCD To connect Industio CP-114 Series to a DTE with 3-pin wiring. If the [Hardware flow control] feature is set to “ON”, you must loop back (or short) the RTS with CTS and the DSR with DTR, DCD on the Moxa site.
RS-422 Cable Wiring The RS-422 standard uses a balanced voltage digital interface to allow 9600 bps communication over cables of up to 400 ft (1.2 km) in length. Ten receivers can be connected to any one driver for broadcasting systems.
Connection Cable and Cable Wiring RS-485 Cable Wiring The RS-485 standard is an enhanced version of the RS-422 balanced line standard. It allows multiple drivers and receivers in a multidrop systems. As many as 32 drivers and 32 receivers can be put on any multidrop system. The Industio CP-114 Series supports only 2-wire half-duplex RS-485 communication. Data+/pins are served for both data transmitting and receiving, depending on the RTS signal.
Impedance Matching and Termination Resistors For RS-422/485 serial communications, when an electrical signal travels through two different resistance junctions in a transmission line, the impedance mismatch will sometimes cause signal reflection. Signal reflection causes signal distortion, which in turn will contribute communication errors. The solution to this problem is to establish the same impedance at the line ends as in the line itself by terminating them with resistors.
Connection Cable and Cable Wiring DB37 Connector The following lists the pin assignments of the Industio CP-114 Series DB37 connector on the bracket. With this information, you may fabricate any type of fan-out cables, such as DB37 to DB9 x 4 or DB37 to DB25 x 4. For RS-232 Mode Pin no. Signal 29 11 12 13 14 15 16 36 37 RI2 DCD2 GND CTS2 RxD2 RI1 DTR1 CTS1 RxD1 Pin no. Signal 19 30 31 32 33 34 17 18 TxD1 DTR2 DSR2 RTS2 TxD2 DCD1 DSR1 RTS1 Note: Make shield grounded to connector.
6 6 Troubleshooting Common Industio CP-114 Series problems and possible solutions are listed below. If you still have problems, contact your dealer or Moxa for help. Or use the “Problem Report Form” at the end of this manual to report problems to your dealer at once for faster technical support. General Troubleshooting 1. The Moxa driver, while installing the driver, cannot detect the Moxa PCI board. Hardware causes and solutions: a. The board is not installed or missing (absent). Please install it. b.
Log. This indicates that the Moxa board is found, but the IRQ is conflicting with another adapter. Please make sure there is no conflict with other adapter’s IRQ. Check the PCI BIOS IRQ settings first. Make sure that an IRQ is available. 2. After the system reboots, the error message “Cannot find any configured Moxa Smartio/Industio PCI Series board!” appears in the Event Log. Please make sure the PCI board is seated firmly in the expansion slot. 3.
A A Technical Reference Specification Bus interface: Number of ports: I/O address: IRQ: Data bits: Stop bits: Parity: UART: Speed (bps): Connectors: Data signals: 32-bit PCI (Spec 2.1) 2 (RS-232 or RS-422/485), 2 (RS-422/485) Assigned by BIOS Assigned by BIOS 5, 6, 7, 8 1, 1.5, 2 None, even, odd, space, mark 16C550C or compatible×4, each with 16byte Tx/Rx FIFO 50 ~ 921.
UART 16C550C The UART chip, 16C550C, is an intelligent asynchronous controller capable of supporting one full duplex channel that simultaneously transfers data at 921.6 Kbps. To increase the overall data throughput, special features such as on-chip FIFO and on-chip hardware flow control are used to reduce the number of interrupts to the onboard CPU and to prevent any loss of valuable data.