Moxa Technologies C114HI Manual
Moxa Technologies C114HI Manual

Moxa Technologies C114HI Manual

3 in 1 rs-232/422/485 industrial serial board
Hide thumbs Also See for C114HI:

Advertisement

Quick Links

C114HI
3 in 1 RS-232/422/485
Industrial Serial Board
Apr. 1998 (2nd Edition)
All Rights Reserved

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Moxa Technologies C114HI

  • Page 1 C114HI 3 in 1 RS-232/422/485 Industrial Serial Board Apr. 1998 (2nd Edition) All Rights Reserved...
  • Page 2 Information provided in this manual is intended to be accurate and reliable. However, Moxa Technologies assumes no responsibility for its use, nor for any infringements of rights of the fourth parties which may result from its use.
  • Page 3 Moxa Internet Services Customer’s satisfaction is always our number one concern. To ensure customers get the full benefit of our services, Moxa Internet Services (MIS) have been built for technical support, product inquiry, new driver upgrade, etc. The followings are the services we provide. E-mail for technical support address: support@moxa.com.tw Ftp site for free driver upgrade...
  • Page 4: Table Of Contents

    Check List ....................3 Installation Guide.................3 Chapter 2 Hardware Installation and IO-IRQ............5 IO-IRQ Configuration Utility ..............5 Jumper Settings for Interface ...............7 C114HI Board Installation..............9 Chapter 3 Software Installation .................11 Windows NT/95, DOS/Windows 3.x ..........11 SCO UNIX/XENIX ................11 OS/2 ....................12 Chapter 4 For Windows NT Users................15...
  • Page 5 MOXA Serial Port Naming Convention ..........29 Baud Rate Settings................30 DOS API-232 Library and Programming ..........30 Data Scope ..................31 Chapter 8 For Windows 3.x Users ...............33 Chapter 9 RS-232/422/485 Programming............37 RS-232 Programming ................37 RS-422 Programming ................37 RS-485 Programming ................37 Appendix A Pinouts and Cable Wiring..............41 RS-232 ....................41 RS-422 ....................44...
  • Page 7: Chapter 1 Introduction

    VARs that want to provide all high performance, reliability and quality multiple port data communication system. The C114HI provides a low cost, high performance solution for connecting up to 4 devices such as terminals, modems and printers to PC-based host computer. It belongs to the C104 family and features high speed and isolation protection.
  • Page 8: Introduction

    Introduction Chapter 1 1.1 Features The C114HI 4 port RS-232/422/485 board provides the following advanced features: 16 bit AT bus architecture, more IRQs supported ASIC-designed, easily configured by software ( IO-IRQ/DOS Independent I/O address and IRQ settings for each of 4 serial ports 4 high speed, up to 921.6K bps, TI550C UARTs with on-chip hardware flow...
  • Page 9: Check List

    C : Driver supported by OS Note: MOXA FTP site is available for driver download 1.3 Check List Upon unpacking the C114HI package, you should find the following items included: 1. C114HI 4 port RS-232/RS-422/RS-485 board 2. This User's Manual 3.
  • Page 10 Introduction Chapter 1...
  • Page 11: Chapter 2 Hardware Installation And Io-Irq

    (read or written) via the Configuration Access Port (CAP). While the JP1 jumper cap of C114HI is removed, the CAP address is always equal to the same address of the first port. When the JP1 jumper cap is installed, the CAP address will be forced to 0xA700.
  • Page 12 Hardware Installation and IO-IRQ Chapter 2 C114HI’s Layout...
  • Page 13: Jumper Settings For Interface

    Chapter 2 Hardware Installation and IO-IRQ 2.2 Jumper Settings for Interface Jumpers for the first and second ports are symmetric with those for the third and forth ports as shown in the above picture. Port 1 Port 2 Port 3 Port 4 Selection Function JP 2...
  • Page 14 Hardware Installation and IO-IRQ Chapter 2 RTS ON AUTO RTS OFF AUTO Tx: ON Rx: ON Jumper Settings for RS-485 Port There are many combinations of configuration for RS-485. To control the enable/disable mode of the transmitter and receiver, there are 3 options: "RTS ON", "REG"...
  • Page 15: C114Hi Board Installation

    Please also refer to Chapter 9 for RS-485 programming and Appendix A.3 for RS- 485 cable wiring. 2.3 C114HI Board Installation To install C114HI, please follow the steps below. Step 1. Choose a PC installed with DOS system or prepare a MS-DOS boot disk for your PC.
  • Page 16 Hardware Installation and IO-IRQ Chapter 2 If you are going to install multiple C114HI boards, configure one board at a time to prevent hardware conflict. Make sure no existing devices have the same I/O address as the CAP address, e.g. 0x180. If so, try to avoid the conflict by doing either one of the following (a or b).
  • Page 17: Chapter 3 Software Installation

    Because the SCO UNIX/XENIX has bundled a 4 port board driver, additional driver is not necessary. The following description is based on the SCOUNIX/XENIX driver. Under SCO UNIX/XENIX, if the C114HI is used as the first 4 port board, one possible configuration would be: RQ = 4 (i.e.
  • Page 18: Os/2

    1. COM1 2. COM2 3. COM3 4. COM4 For first C114HI 4 port board, choose number 1 (COM1); for second, number 2 (COM2). Then the screen shows like: Which card do you have? 1. Arnet base address 0xaaa 2. Arnet base address 0xbbb 3.
  • Page 19 COM.SYS Device Driver from Device Driver Source Kit for OS/2 The COM.SYS device driver can support up to 4 COM ports with user-defined I/O port addresses and interrupt levels. To enable it, a line describing C114HI's configuration (same as configured in IO-IRQ program) should be added to file C:\CONFIG.SYS and then reboot the system again.
  • Page 20 Software Installation Chapter 3...
  • Page 21: Chapter 4 For Windows Nt Users

    Finally, Windows NT-specific troubleshooting is included. 4.1 Software Installation The following is the procedure for installing the C114HI device driver under Windows NT 4.0 (or NT 3.51): 1. Login NT as Administrator.
  • Page 22: Board And Port Configuration

    0 or leave blank as the INT vector. There are two modes for the C114HI driver. One is using INT vector, the other is not using INT vector. INT vector is one byte of I/O address, in which each bit is used to indicate the occurrence of interrupt for corresponding port.
  • Page 23: Board Initialization Status Checking

    1, 4, 8 or 14 bytes. The default is 14 bytes. At most 4 boards of C114HI can be installed together as long as the IRQ and I/O address resources are sufficient and available in a system.
  • Page 24: Baud Rate Settings

    Please check the board or connection box ONE AT A TIME and find out the defective one. 1. Can not find the configured C114HI (CAP=0xXXXX)! To avoid this, please double check the board settings from the driver...
  • Page 25 0xA700, a fully decoded I/O address. In this case, either find out the other device causing conflict and change its I/O address if possible. Or use normal installation procedure for C114HI board, instead, to avoid conflict. 2. The...
  • Page 26 For Windows NT Users Chapter 4...
  • Page 27: Chapter 5 For Windows 95 Users

    Chapter 5 For Windows 95 Users In this chapter, software driver installation, configuration and removal procedure are described. If it is necessary for you to develop your own applications, we strongly recommend that try out the easy but powerful PComm serial comm tool, which includes MOXA serial communication library for easy programming and utilities for diagnostic and monitor.
  • Page 28 INT vector. There are two modes for the C114HI driver. One is using INT vector, the other is not using INT vector. INT vector is one byte of I/O address, in which each bit is used to indicate the occurrence of interrupt for corresponding port.
  • Page 29: Board Initialization Status Checking

    Chapter 5 For Windows 95 Users 5.3 Board Initialization Status Checking All the error conditions, during the initialization of Windows 95, will be popped up onto the screen. Otherwise, everything should be fine. If message like "Can not find the configured C102/C104/C168 (CAP=0xXXXX) !" or "The C102/C104/C168's software and hardware configuration mismatch (CAP=0xXXXX) !"...
  • Page 30 0xA700, a fully decoded I/O address. In this case, either find out the other device causing conflict and change its I/O address if possible. Or use normal installation procedure for C114HI board, instead, to avoid conflict. 2. The...
  • Page 31: Pcomm

    Chapter 6 PComm PComm, the professional serial comm tool for PC, is a software package under Windows NT/95, which consists of powerful serial communication library for easy programming in most popular languages, useful utilities such as diagnostic and monitor, illustrative example programs and comprehensive on-line documents.
  • Page 32 Chapter 6 PComm help in the diskette. Diagnostic 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. Monitor A useful port status monitoring program allows users to watch the selected MOXA COM ports’...
  • Page 33: For Dos Users

    Chapter 7 For DOS Users The C114HI is useful for office automation and industrial control as well as data acquisition and communication. Because many users need to implement an industrial control system or data acquisition system in the DOS environment, but DOS did not have any better communication API, thus Moxa has developed device drivers and library functions under DOS.
  • Page 34 For DOS Users Chapter 7 before running SETUP program, execute Io-irq to designate I/O address and IRQ. 2. Choose "C102/C104/C168 Series Multiport Board" in the "DRIVER SELECTION" dialog and then enter or modify each port's configuration which are the port initial value when driver is loaded. 3.
  • Page 35: Moxa Serial Port Naming Convention

    Chapter 7 For DOS Users Interrupt number: The IRQ number of each port. Several ports may share one common IRQ. TxD buffer size: The transmit (output) buffer reserved for the port. RxD buffer size: The receive (input) buffer reserved for the port. Driver Loading Having completed the setup, load the driver, BIN\SER-DRV.EXE, at the DOS prompt.
  • Page 36: Baud Rate Settings

    For example, if 4 ports are configured and the starting port number is 1, then the mapping of serial port numbers will be as depicted. C114HI 7.3 Baud Rate Settings Be aware that, for Smartio boards configured as High Speed Spectrum, the real working speed is equal to 8 times of the displayed speed.
  • Page 37: Data Scope

    Chapter 7 For DOS Users 7.5 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: 1. The Data Scope utility offers transparent monitoring of serial communication lines and allows data to be streamed to disk storage for later analysis.
  • Page 38 For DOS Users Chapter 7...
  • Page 39: For Windows 3.X Users

    In this case, the original COM1 and COM2 on PC will be still available. For example, if 4 ports are configured and starting from COM3, then the mapping of serial port numbers will be as depicted. COM3 COM4 COM5 COM6 C114HI...
  • Page 40 For Windows 3.x Users Chapter 8 Due to the limitations of Windows 3.x operating system itself, only up to 9 COM ports are supported, i.e., COM1 to COM9. Hence, C104 with 4 ports or other 4 port non-intelligent boards, maximum 6 ports is supported if the existing standard COM ports (COM1 and COM2) are included.
  • Page 41 Chapter 8 For Windows 3.x Users Windows 3.x COMM API Programming MOXA Windows-compatible COMM Driver supports Microsoft Windows COMM API such as OpenComm(), ReadComm(), WriteComm(), etc. It supports any language conforming to the Windows COMM API like Microsoft C, Borland C, Visual C, Visual Basic, Delphi, etc.
  • Page 42 For Windows 3.x Users Chapter 8...
  • Page 43: Rs-232/422/485 Programming

    "Tx ON" and "Rx ON". 9.3 RS-485 Programming The C114HI has four independent ports and each port has one receiver and one transmitter. Both of the transmitter and receiver can be either enabled or disabled in order to achieve not only point-to-point communication but also the multidrop communication.
  • Page 44 Chapter 9 RS-232/RS-422/RS-482 Programming outportb(BASE + 4, 3); Or use the following function in API-232 library: sio_RTS(port, 1); A statement as following will clear the RTS signal and turn off the transmitter : outportb(BASE + 4, 0); Or use the following function in API-232 library: sio_RTS(port, 0);...
  • Page 45 RS-232/RS-422/RS-482 Programming Chapter 9 A statement as following will turn on both the transmitter and the receiver: outportb(BASE + 7, 3); 3. AUTO In the AUTO mode, the transmitter is enabled and the receiver is disabled whenever outgoing data is available. Otherwise, the transmitter is disabled and the receiver is enabled.
  • Page 46 Chapter 9 RS-232/RS-422/RS-482 Programming...
  • Page 47: Appendix A Pinouts And Cable Wiring

    Appendix A Pinouts and Cable Wiring C114HI is suitable for RS-232, RS-422 or RS-485 communications. Each port can be set to RS-232, RS-422 or RS-485 interface independently via the jumpers. Refer to Chapter "Hardware Installation and IO-IRQ" for more details.
  • Page 48 Appendix A Pinouts and Cable Wiring RS-232 cable wiring is as follows: Type 1: To connect C114HI to a DTE. C114HI C114HI DB-9 Male DB-25 Male DB-9 Male DB-9 Male 20 DTR Type 2: To connect C114HI to a DCE.
  • Page 49 Pinouts and Cable Wiring Appendix A Type 3: To connect C114HI to a DTE with 3-pin wiring. If [Hardware flow control] feature is set to "ON", user must loop back (or short) the RTS with CTS and DSR with DTR, DCD on MOXA site.
  • Page 50 Appendix A Pinouts and Cable Wiring A.2 RS-422 The following lists pinouts of the RS-422 port. C114HI DB-9 Male Connector C114HI Pin-head Connector TxD-(A) TxD-(A) RxD+(B) RxD+(B) TxD+(B) TxD+(B) RxD-(A) RxD-(A) RTS-(A) RTS-(A) RTS+(B) RTS+(B) CTS+(B) CTS+(B) CTS-(A) CTS-(A) CTS-...
  • Page 51 A.3 RS-485 The pinouts of the RS-485 port are the same as RS-422 except that only TxD+, TxD-, RxD+, RxD- and GND are used. The following lists pinouts of the RS-422 port. C114HI DB-9 Male Connector C114HI Pin-head Connector TxD-(A) TxD-(A)
  • Page 52: Impedance Matching And Termination Resistors

    RS-485 interface. In this configuration, one of the device serves as master device while the rest of the devices as slaves. Multidrop RS-485 Half-Duplex Multidrop RS-485 Full-Duplex C114HI site Remote site C114HI site Remote site...
  • Page 53 The suggested termination resistor for AWG #26 cable is 100 ohm. The suggested termination resistor for phone cable is 100 ohm. For C114HI, RT1 to RT8 reserved on the board are to be used to install termination resistors for impedance matching. These resistors are not installed at the factory.
  • Page 54: Pinouts Of Db-37 Connector

    Appendix A Pinouts and Cable Wiring A.5 Pinouts of DB-37 Connector The following lists pinouts of the C114HI DB-37 connector on the bracket. RI2/CTS2- TXD2-/DCD2 DTR2/RXD2- GND2 DSR2/RTS2- CTS2+/CTS2 RTS2/RTS2+ RXD2+/RXD2 TXD2/TXD2+ CTS3-/RI3 DCD3/TXD3- RXD3-/DTR3 GND3 RTS3-/DSR3 CTS3/CTS1+ RTS3+/RTS3 RXD3/RXD3+...
  • Page 55: Appendix B High Speed Operations

    Appendix B High Speed Operations This section describes the use of high speed capability supported by C114HI. There are two speed spectra which are Normal Speed Spectrum High Speed Spectrum 134.5 1076 1200 2400 4800 1200 9600 1800 14400 2400...
  • Page 56 Appendix B High Speed Operations For UNIX Users For the C114HI board configured as High Speed Spectrum, the real working speed is equal to 8 times of the displayed speed (with "stty" command).
  • Page 57: Appendix C Troubleshooting

    Wrong cable wiring. Correct it. b. Wrong IRQ setting or conflict. Change it. 3. Why the DOS utility IO-IRQ can not access C114HI to configure? There are several reasons that may lead to this trouble: a. The user forgot or does not know the Configuration Access Port (CAP) of the board.
  • Page 58 Appendix C Troubleshooting ú Enter CAP address 0xA700 to access the board and configure it. ú Keep in mind the CAP. ú Exit IO-IRQ and power off PC. ú Remove the jumper cap on the position JP1. ú Power on PC.
  • Page 59: Appendix D I/O Port Address Map

    Appendix D I/O Port Address Map The following is the list of the I/O port address commonly used, which is for preventing I/O address conflict when configuring C114HI. IO/ Address Device 000-01F DMA controller 1 020-03F interrupt controller 040-05F Timer...
  • Page 60 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) as detailed as possible for shorter product repair time.

Table of Contents