Moxa Technologies C168P User Manual
Moxa Technologies C168P User Manual

Moxa Technologies C168P User Manual

Universal 8 port serial board
Hide thumbs Also See for C168P:

Advertisement

Quick Links

The content of this manual is also available in CD-ROM and at Moxa Web Site.
C168P User's Manual
Universal 8 Port Serial Board
May 1999 (7th Edition)
Moxa Technologies Co., Ltd.
Tel:
+866-2-8665-6373
Fax:
+886-2-8665-6372
www.moxa.com
support@moxa.com.tw

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C168P and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Moxa Technologies C168P

  • Page 1 C168P User’s Manual Universal 8 Port Serial Board The content of this manual is also available in CD-ROM and at Moxa Web Site. May 1999 (7th Edition) Moxa Technologies Co., Ltd. Tel: +866-2-8665-6373 Fax: +886-2-8665-6372 www.moxa.com support@moxa.com.tw...
  • Page 2: Copyright Notice

    All rights reserved. Reproduction in any form 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.
  • Page 3: Moxa Internet Services

    MOXA Internet Services Customer’s satisfaction is always our number one concern. To ensure that customers get the full benefit of our services, Moxa Internet Services have been built for technical support, product inquiry, new driver update, user’s manual update, etc. The followings are the services we provide.
  • Page 4: About This Manual

    If you encounter any problem during installation, please refer to Chapter “Troubleshooting”. Chapter 1 Introduction Overview and features of the C168P boards, list of items and overall installation guide. Chapter 2 Hardware Installation Hardware installation for the C168P boards and connection option (Opt8x) is detailed.
  • Page 5: Table Of Contents

    Introduction ... 1-1 Overview... 1-1 Features... 1-4 Check List ... 1-5 Installation Guide... 1-8 Hardware Installation ... 2-1 Default Settings ... 2-1 Quick Hardware Installation ... 2-2 How to Do Quick Hardware Installation..2-2 Hardware Installation with IO-IRQ Utility... 2-3 IO-IRQ Utility and Hardware Configuration...
  • Page 6 Utilities .... 4-2 DOS ... 4-6 Installation.... 4-6 DOS API-232 Library.... 4-6 Utilities .... 4-6 RS-485 Programming for Opt8J ... 4-8 Connection Option (Opt8x) and Cable Wiring ... 5-1 RS-232 Cable Wiring for Opt8A/B/C/D/S ...
  • Page 7: Introduction

    Introduction Overview The Standard Multiport Async Solutions The standard C168P multiport boards offer 8 serial ports for connecting terminals, modems, printers, data acquisition equipment and any other serial devices to the PC/AT and its compatible systems. The Smartio C168P is equipped with custom-designed ASIC chip which replaces lots of conventional ICs and reduces the board to half-size.
  • Page 8: Quick Installation

    I/O address, 0xA700. However, to adopt quick installation (described later), it is a must to keep JP1 always short. Quick Installation To ease the hardware configuration, users who install only one C168P board under Windows NT/95/98 are recommended to adopt quick installation described in Chapter 2.
  • Page 9: Operating System Support

    Borland Delphi, etc. Utilities, such as diagnostic and monitor, are included for diagnosing the board/port or monitoring the communication status. Wide Applications The C168P is suitable for many applications. Here are a few: Internet/Intranet Connection Remote Access Application Multi-user Application...
  • Page 10: Features

    3: Driver supported by Moxa and shipped with product R : Driver supported by Moxa but sent by request C : Driver supported by OS Note: MOXA FTP site is available for driver download C168P User’s Manual W indows NT, Windows 95/98, DOS, Linux C168H/HS...
  • Page 11: Check List

    Check List Upon unpacking the C168P package, you should find the following items in the package, C168P 8-port serial async board Device driver diskettes: Windows NT and Windows 95/98¡Ñ DOS¡Ñ C168P User's Manual (This Manual) PComm Lite diskette¡Ñ You need also one of the following connection options:...
  • Page 12 Opt8D (1 meter long). Opt8F/Opt8Z RS-422 connection box with 8 port female DB25 connectors (isolation protection for Opt8F). 1.5 meter DB62 to DB62 cable. 110V or 220V adapter. C168P User’s Manual P1P2 P3 P4 C168P Opt8C/Opt8D C168 P Opt8F/Opt8Z...
  • Page 13 Opt8J is the RS-422/485 connection box with 8 port female DB25 connectors for MOXA 8 port boards, including the C168P. There are 8-DIP switches on the side of the Opt8J. Each switch controls the communication mode (RS-422 or RS-485) of each port, respectively.
  • Page 14: Installation Guide

    485 cable wiring. And also to Chapter “Serial Programming Tools” for Opt8J RS- 485 programming details. Installation Guide This section gives a brief summary of how to install the C168P under each supported operating system. The installation is simple and involves the following stages: Configure C168P with io-irq.exe.
  • Page 15: Hardware Installation

    The installation of the C168P consists of hardware and software installation. The hardware installation is detailed in this chapter. The next chapter deals with the software installation for various operating systems. Default Settings The C168P has the following default (factory) settings:...
  • Page 16: Quick Hardware Installation

    Quick Hardware Installation To fully utilize the superior feature of flexible hardware configuration design of the C168P, a quick and easy method of installation is designed for users, which absolutely free the users from hardware configuration effort, i.e., installation without running configuration program: Io-irq.exe. Simply always short the jumper JP1.
  • Page 17: Hardware Installation With Io-Irq Utility

    IRQ : INT Vector : 0x1C0 Because the ASIC-designed C168P has no switch and no jumper for configuring manually the I/O address, IRQ, INT vector, etc. of the boards, you must run the software utility, Io-irq.exe, in the driver diskette under DOS system to change the hardware configuration.
  • Page 18: Io-Irq Utility And Hardware Configuration

    If you are installing multiple boards, insert one board at a time and configure it using the Io-irq program before inserting the next board. This is to prevent conflict between two boards with same default hardware settings. The C168P has the following default (factory) settings, I/O address: IRQ: INT Vector: 0x1C0 Configuration Access Port (CAP): 0x180 4.
  • Page 19 Hardware Installation 1. Run the utility “Io-irq.exe” contained in the driver diskette to set up I/O address, IRQ and INT vector of the board. 2. Select “Smartio/Industio ISA Family” and press ENTER key. C168P User’s Manual...
  • Page 20 3. Enter the CAP address of the C168P board to be configured. 4. Configure the following parameters as necessary. Port Index I/O address Speed C168P User’s Manual Indicate the port index for each port. Enter the base I/O address for each port, either sequentially or not.
  • Page 21 If not using interrupt vector, type 0 or leave blank as the interrupt vector. There are two modes for the C168P driver. One is using interrupt vector, the other is not using interrupt vector. Driver employing interrupt vector scheme is supposed to have better performance than employing polling scheme.
  • Page 22 C168P User’s Manual...
  • Page 23: Software Installation

    Windows NT supports up to 256 serial ports, from COM1 to COM256. To fully integrate the advanced features of Windows NT, multi-process and multi-thread, pure 32-bit Windows NT device drivers are developed for the C168P multiport boards. The driver conforms to Win32 COMM API standard.
  • Page 24: Installing Driver

    Installing Driver Following is the procedure for installing the C168P driver for the first time under Windows NT 4.0. Note ! Make sure the board(s) has(have) already been plugged in the system slot(s) if you are doing quick installation. 1. Please log in NT as Administrator.
  • Page 25 Smartio/Industio Configuration Panel” dialog box to start the installation. 6. In the “Moxa Smartio/Industio Configuration Panel” dialog box, click [Add] to enter “Property” dialog box to add the C168P board. Select the “C168 Series” in the “Board Type” field. If necessary, type the desired interrupt vector address, in the “INT Vector”...
  • Page 26 7. In the “Property” 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 COM number mappings or FIFO settings. C168P User’s Manual...
  • Page 27 Note ! If you need to install more than one board, click [Add] and repeat steps 6 to 8 to configure another board. Up to four C168P boards can be installed in a system. Click [OK] to finish the configuration.
  • Page 28 [System Event Log] to check a message similar to “MOXA Smartio C168 Series, with first serial port COM3, has been enabled” for each configured board. C168P User’s Manual The latest configuration will not take effect unless the system restarts.
  • Page 29: Configuring Board And Port

    If you already have installed the driver and want to re-configure the ports, please follow this procedure. In the [Control Panel], click on the [Network] icon and select the [Adapters] tab. 2. Select “MOXA Smartio/Industio Family Adapter” in “Network Adapters”. Software Installation C168P User’s Manual...
  • Page 30 Please see steps 6 to 8 in the previous section, “Installing Driver”, for more details. Click [Remove] to remove the board currently selected from the configured board list. Click [OK] to confirm the configuration changes you made. Click [Cancel] to leave the dialog with the configuration unchanged. C168P User’s Manual...
  • Page 31: Updating Driver

    Updating Driver To update the driver for the C168P boards, simply remove the driver, as described in the next section, and reinstall it as detailed in section, “Installing Driver”. Removing Driver To remove the driver for the C168P boards, 1. Open the [Control Panel], click on the [Network] icon, and select the [Adapters] tab.
  • Page 32: Installing Driver

    Installing Driver Up to four C168P boards can be installed together as long as the I/O addresses and IRQ number resources are sufficient and available in a system. The following is the procedure for installing C168P for the first time under Windows 95/98: 1.
  • Page 33 In the “Property” 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 COM number mappings or FIFO settings. 3-11 C168P User’s Manual...
  • Page 34 Click [OK] to finish the configuration. 3-12 C168P User’s Manual If you need to install more than one board, click [Add] and repeat steps 5 to 7 to configure another board. Up to four C168P boards can be installed in a system.
  • Page 35 Win32 API. You can also execute any ready-made applications, PComm utility such as Programming Tools” transmit/receive data, as well as Remote Access Service to provide dial-up networking capabilities. Software Installation Terminal emulator (See “Serial chapter) HyperTerminal C168P User’s Manual 3-13...
  • Page 36: Configuring Board And Port

    Configuring Board and Port If you already have installed the driver and want to re-configure the C168P board and ports, add more boards or delete boards under Windows 95/98, the following is the procedure for you. 1. Click on the Taskbar [Start] button, then select [Programs] menu, then [MOXA Utilities] menu and then [Moxa Smartio/Industio Configuration Panel] icon.
  • Page 37: Updating Driver

    Open [Control Panel] icon, and then [System] icon, and then select [Device Manager] tab. Then select and open the “Moxa Smartio/Industio muliport board” option and then select the “C168 Series”. Click on [Properties] button and then select [Driver] tab and then click on [Update Driver] button. 3-15 C168P User’s Manual...
  • Page 38: Removing Driver

    Removing Driver Open [Control Panel] icon, and then [Add/Remove Programs] icon, and then select [Install/Uninstall] tab. Then select and open the “MOXA Smartio/Industio Driver” option and then enter [OK] to remove the driver. 3-16 C168P User’s Manual...
  • Page 39: Dos

    “Serial Programming Tools”. Installing Driver Run the installation program, DOSINST.EXE, in the DOS driver diskette. Specify the target API-232 directory (e.g. C:\MOXA) where software driver will be copied. Press F2 to start the installation. 3-17 C168P User’s Manual...
  • Page 40: Driver Setup

    It is strongly recommended to do so. Driver Setup The following are steps for setting up the C168P driver. Note that it is not intended to illustrate all the convenient functions of the setup programs when configuring the boards. Please refer to the F1 on-line help instructions as running setup program.
  • Page 41 2. Press Enter to pop up the SETUP dialog box. In the SETUP dialog box, Press F8 to specify the CAP Address and press ENTER and then type Y (YES) to load the configuration of the board to be setup. 3-19 C168P User’s Manual...
  • Page 42 3. Now the configuration of the desired C168P board will be shown along with other default settings, such as port number, buffer size, etc. Note ! Up to now you have completed the setup for C168P 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.
  • Page 43 The receiving (input) buffer allocated in the system for each port. F5: Group edit: This is a convenient function that helps you edit the configuration of several ports at one time as a group. Software Installation should take the convenience C168P User’s Manual 3-21...
  • Page 44: Loading Driver

    Universal 2/4/8 serial ports Communication Driver Setup driver … Device driver setup O.K. It means the C168P driver is installed properly. At this point, you are ready to execute application that supports API-232 functions, or start developing applications using API-232 library.
  • Page 45: Unloading Driver

    Universal 2/4/8 serial ports Communication Driver Setup driver … None serial port found!! It means the C168P driver is not installed properly. Please refer to chapter, “Troubleshooting”, for possible reasons and solutions. Unloading Driver To unload (release) the C168P driver from memory, type “SER-DRV/Q” at the DOS prompt.
  • Page 46 3-24 C168P User’s Manual...
  • Page 47: Serial Programming Tools

    To install PComm, please run \Setup.exe in the diskette. Note that PComm diagnostic and monitor utilities are for MOXA boards only. MOXA Windows NT or Windows 95/98 device driver as well as MOXA board are required. The driver are installed separately and detailed in Chapter “Software Installation”. C168P User’s Manual...
  • Page 48: Pcomm Programming Library

    For complete library function description and example programs for Visual C++, Visual Basic and Delphi, please see help file and example programs in PComm directory for more details. Utilities The followings are short descriptions of each utility. For details, please see on-line help as running utilities. C168P User’s Manual...
  • Page 49: Diagnostic (For Moxa Boards Only)

    Diagnostic (for MOXA boards only) A convenient diagnostic program 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 operation of both the software and hardware. C168P User’s Manual...
  • Page 50 In addition, you may click on one of the specific displayed port in order to see the current communication parameters and status of that port. C168P User’s Manual...
  • Page 51: Terminal Emulator

    Serial Programming Tools 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. C168P User’s Manual...
  • Page 52: Dos

    There are two utilities available for DOS: Data Scope and Diagnose, which are detailed below. 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. C168P User’s Manual...
  • Page 53 ZMODEM and KERMIT protocols. 3. The Diagnostic test utility provides port connection test with two MOXA ports connected via a properly wired cable. Please see on-line help as running BIN\SCOPE.EXE for more usage and capability information. Serial Programming Tools C168P User’s Manual...
  • Page 54: Rs-485 Programming For Opt8J

    RTS is asserted and for receiving data if RTS is not asserted. RTS scheme is suitable for any system, including Windows NT and Windows 95/98, DOS, or UNIX, that permits RTS control from application programs. C168P User’s Manual...
  • Page 55 */ /* Read 10 bytes */ 1. Turn on RTS and ready for transmitting data. 2. Send data. 3. Wait for tick time. 4. Turn off RTS and ready for receiving data. */ C168P User’s Manual last...
  • Page 56 4-10 C168P User’s Manual...
  • Page 57: Connection Option (Opt8X) And Cable Wiring

    PC COM1/2, serial printer and terminal. The term DCE is for Data Communication Equipment like modem. RS-232 Cable Wiring for Opt8A/B/C/D/S RS-232 8-port connection boxes/octopus cable designed for C168P are: Opt8A: 8-port RS-232 DB25 female connection box Opt8B: 8-port RS-232 DB25 male connection box...
  • Page 58 The followings are pin assignments for various connection options: C168P User’s Manual Opt8A/S (DCE, DB25 Female) 20 DSR Opt8B/C (DTE, DB25 Male) 20 DTR Opt8D (DTE, DB9 Male)
  • Page 59 Connection Option (Opt8x) and Cable Wiring Type 1: To connect C168P to a DTE device. Straight-through Cable Opt8A/S Opt8A/S DB25 Female Null Modem Cable Opt8B/C Opt8B/C DB25 Male PC COM2 port, Serial Printer, Terminal, or any DTE Device DTE Device...
  • Page 60 Opt8D Opt8D DB9 Male Type 2: To connect C168P to a DCE device. Opt8A/S Opt8A/S DB25 Female C168P User’s Manual PC COM2 port, Serial Printer, Terminal, or any DTE Device DTE Device DB25 Male Null Modem Cable Modem, or any DCE Device...
  • Page 61 Connection Option (Opt8x) and Cable Wiring Straight-through Cable Opt8B/C Opt8B/C DB25 Male Opt8D Opt8D DB9 Male Modem, or any DCE Device DCE Device DB25 Female Modem or any DCE Device DCE Device DB25 Female C168P User’s Manual...
  • Page 62 Type 3: To connect C168P 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 DSR with DTR, DCD on MOXA site, indicated in dash-lines of the following diagrams. If the “Hardware flow control”...
  • Page 63: Rs-422 Cable Wiring For Opt8J/F/Z

    Opt8D Opt8D DB9 Male RS-422 Cable Wiring for Opt8J/F/Z RS-422 connection boxes designed for C168P are: Opt8J: Connection box with 8 female RS-422/485 DB25 ports. Set the port switch to OFF position (RS-422) for the desired port(s). Opt8F: Connection box with 8 female RS-422 DB25 ports and Max. 500V DC isolation protection which prevents damage caused by high potential voltage.
  • Page 64 19 CTS-(A) The RS-422 transmission distance can reach as long as 4000ft. The connection box needs an external power adapter to supply 5V DC power. Either 110V or 220V AC power adapter is selectable. C168P User’s Manual RxD+(B) TxD+(B) CTS+(B)
  • Page 65 TxD+(B) 14 RxD-(A) TxD-(A) RTS+(B) CTS+(B) 13 RTS-(A) CTS-(A) CTS+(B) RTS+(B) 19 CTS-(A) RTS-(A) RS-422 Broadcasting Opt8J/F/Z RS-422 Device 1 TxD+(B) RxD+(B) RxD+(B) TxD+(B) 16 TxD-(A) RxD-(A) 14 RxD-(A) TxD-(A) RS-422 Device N RxD+(B) TxD+(B) RxD-(A) TxD-(A) C168P User’s Manual...
  • Page 66: Rs-485 Cable Wiring For Opt8J

    RS-485 Cable Wiring for Opt8J One RS-485 connection box designed for C168P is: Opt8J: Connection box with 8 female RS-422/485 DB25 ports. Set the port switch to ON position (RS-485) for the desired port(s). The Opt8J supports only 2-wire half-duplex RS-485 communication. Data+/- pins are served for both data transmitting and receiving, depending on the RTS signal.
  • Page 67: Rs-422/485 Impedance Matching

    3. The suggested termination resistor for phone cable is 600 ohm. Connection Option (Opt8x) and Cable Wiring Opt8J/F/Z TxD+(B) TxD-(A) RxD+(B) RxD-(A) RTS+(B) RTS-(A) CTS+(B) CTS-(A) RS-422/485 Device RxD+(B) RxD-(A) TxD+(B) TxD-(A) CTS+(B) CTS-(A) RTS+(B) RTS-(A) 5-11 C168P User’s Manual...
  • Page 68 5-12 C168P User’s Manual...
  • Page 69: Troubleshooting

    Common C168P 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.
  • Page 70 The CAP of the board conflicts with other add-on boards’ I/O address. Please change other add-on boards’ I/O address to avoid the conflict. c. The C168P board is not plugged in a right or good slot. Please plug the board in a good 16-bit ISA slot.
  • Page 71 Enter CAP address 0xA700 to access the board. Enter the “Configuration Access Port” in HEX: A700 Step 6. The previous hardware configuration will be shown. Modify them if necessary. Remember the CAP address this time. Step 7. Exit the IO-IRQ. Troubleshooting Install jumper C168P User’s Manual...
  • Page 72: Windows Nt

    Please make sure there is no conflict with other adapter’s IRQ. Check the 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 Series board!” appears in the Event Log. C168P User’s Manual Remove jumper...
  • Page 73: Windows 95/98

    This section is specific for troubleshooting under Windows 95/98. For general problems and solutions, please see the previous section, “General Troubleshooting”. 1. The system fails to find the C168P board! After system reboots, error message “Smartio C168 Series (CAP=0x0180, port 1=COM3): Board is not found”...
  • Page 74: Dos

    Make sure you’re using the right driver. b. Check if the board is properly plugged into ISA/EISA bus slot. c. Check if the I/O address and IRQ settings in SETUP program are same as the settings on board. C168P User’s Manual...
  • Page 75: Technical Reference

    D B25 male or female RS-232¡Ð T xD, RxD, RTS, CTS, DTR, DSR, DCD, GND RS-422¡Ð T xD+(B), TxD-(A), RxD+(B), RxD-(A), GND (Opt8J: RTS+(B), RTS-(A), CTS+(B), CTS-(A)) RS-485¡Ð D ata+(B), Data-(A), GND 0 ~ 55 ¢J 157mm¡Ñ 9 3mm C168P User’s Manual...
  • Page 76 Windows NT Windows 95/98 Linux SCO UNIX/OpenServer C SCO XENIX FreeBSD Driver supported by Moxa and shipped with product Driver supported by OS Available by request Note: Download the newest drivers from the MOXA FTP service C168P User’s Manual C168P...
  • Page 77: Pc I/O Port Address Map

    PC I/O Port Address Map The following is the list of the I/O port addresses commonly used, which is good for preventing I/O address conflict when configuring C168P. IO/ Address 000-01F 020-03F 040-05F 060-06F 070-07F 080-09F 0A0-0BF 0C0-0DF 0F0-0FF 100-1EF...
  • Page 78: Db62 Connector Pinouts

    DB62 Connector Pinouts The following lists the pin assignments of the DB62 connector on the bracket. Pin no. C168P User’s Manual Signal Pin no. Signal TxD1 RxD1 DTR1 DSR1 DCD1 RxD2 TxD2 DSR2 DTR2 DCD2 TxD3 RxD3 DTR3 DSR3 DCD3...
  • Page 79: Problem Report Form

    Problem Report Form Customer name: Company: Tel: Email: 1. Moxa Product: C168P Serial Number: ____________ 2. Moxa Driver Version: ________________ 3. Moxa hardware settings: 3.1 Please check the hardware configuration by IO-IRQ.EXE from DOS or Windows 95/98 DOS Prompt. PORT Interrupt Vector: ________ 3.2 Jumper JP1 on the board: o open o short...
  • Page 80: Return Procedure

    For product repair, exchange or refund, you must: Provide evidence of original purchase. Fill out the Problem Report Form (PRF) as detailed as possible for shorter product repair time. Obtain a Return Merchandise Authorization (RMA) number from the sales representative or dealer. Carefully pack the product in anti-static package, and send it, pre-paid, to the dealer.

Table of Contents