Moxa Technologies Industio C114HI User Manual

Industio C114HI User’s Manual
Industrial 3 in 1 RS-232/422/485 Serial Board
Apr. 1999 (3rd Edition)
The content of this manual is also available in CD-ROM and at Moxa Web Site.
Moxa Technologies Co., Ltd.
Tel: +866-2-8665-6373 Fax: +886-2-8665-6372
www.moxa.com support@moxa.com.tw
Industio C114HI 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 1999 Moxa Technologies Co., Ltd.
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.
Moxa provides this document “as is”, without warranty of any kind, either expressed or implied, including, but not limited to, the particular purpose. Moxa may make improvements and/or changes in this manual or in the product(s) and/or the program(s) described in this manual at any time.
Information provided in this manual is intended to be accurate and reliable. However, Moxa Technologies assumes no responsibility for its use, or for any infringements of rights of the fourth parties which may result from its use.
This product could include technical or typographical errors. Changes are periodically made to the information herein; these changes may be incorporated in new editions of the publication.
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.
E-mail for technical support
addres
s: support@moxa.com.tw
FTP site for free driver update
address:
ftp.moxa.com
or
ftp.moxa.com.tw
user ID: ftp password: your_email_address
World Wide Web (WWW) Site for product info
address:
www.moxa.com
or
www.moxa.com.tw
About This Manual
This manual is composed of nine chapters and four appendixes. 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 9.
If you are a software programmer, you may refer to chapter, “
PComm” and “RS-232/422/485
programming”
If you need cable wiring information, please see Appendix A, “Pinouts and Cable Wiring”.
If you encounter any problem during installation, please refer to Appendix C, “Troubleshooting”.
Chapter 1 Introduction
Overview and features for the Industio C114HI are described. Also check list and overall installation guide.
Chapter 2 Hardware Installation and IO-IRQ
Hardware installation for the Industio C114HI is detailed.
Chapter 3 Software Installation
Software installation for the compatible operating systems: SCO UNIX/XENIX and OS2.
Chapter 4 For Windows NT Users
Software installation, configuration, driver loading/unloading, driver update and removal for Windows NT system.
Chapter 5 For Windows 95/98 Users
Software installation, configuration, driver loading/unloading, driver update and removal for Windows 95/98 Windows.
Chapter 6 PComm
Roughly describing the programming tools "PComm" for Windows NT/95/98.
Chapter 7 For DOS Users
Software installation, configuration, driver loading/unloading, driver update and removal for DOS .
Chapter 8 For Windows 3.X Users
Software installation, configuration, driver loading/unloading, driver update and removal configuration, driver loading/unloading, driver update and removal for Windows 3.x.
Chapter 9 RS-232/422/485 Programming
Roughly describing the RS-232/422/485 Programming.
Appendix
Pinouts and cable wiring , High Speed Operations, Troubleshooting and I/O port Address Map.
Table Of Contents
Introduction ...............................................................................................1-1
Features.............................................................................................................1-2
Specifications.....................................................................................................1-2
Check List..........................................................................................................1-3
Installation Guide...............................................................................................1-3
Hardware Installation and IO-IRQ ...................................................2-1
IO-IRQ Configuration Utility................................................................................2-1
Jumper Settings for Interface.............................................................................2-3
C114HI Board Installation..................................................................................2-5
Software Installation.............................................................................3-1
Windows NT/95/98, DOS/Windows 3.x .............................................................3-1
SCO UNIX/XENIX..............................................................................................3-1
OS/2...................................................................................................................3-3
For Windows NT Users .........................................................................4-1
Driver Installation...............................................................................................4-1
Board and Port Configuration ............................................................................4-2
Board Initialization Status Checking...................................................................4-3
Updating/Removing Driver.................................................................................4-4
Baud Rate Settings............................................................................................4-4
MOXA Serial Comm Tool:
PComm .......................................................................4-4
Troubleshooting.................................................................................................4-4
For Windows 95/98 Users ....................................................................5-1
Driver Installation - Setup95.exe........................................................................5-1
Board and Port Configuration ............................................................................5-3
Board Initialization Status Checking...................................................................5-3
Updating/Removing Driver.................................................................................5-4
Updating Driver................................................................ .....................................5-4
Removing Driver................................ ...................................................................5-4
Baud Rate Settings............................................................................................5-4
MOXA Serial Comm Tool:
PComm .......................................................................5-4
Troubleshooting.................................................................................................5-5
PComm ..............................................................................................................6-1
Installation..........................................................................................................6-1
Programming Library..........................................................................................6-1
Utilities...............................................................................................................6-2
For DOS Users ..........................................................................................7-1
Driver Installation, Setup, Loading and Unloading.............................................7-1
MOXA Serial Port Naming Convention ..............................................................7-4
Baud Rate Settings............................................................................................7-4
DOS API-232 Library and Programming............................................................7-4
Data Scope........................................................................................................7-5
For Windows 3.x Users.........................................................................8-1
Installation..........................................................................................................8-1
Configuration .....................................................................................................8-1
Driver Removal..................................................................................................8-2
Baud Rate Settings............................................................................................8-2
Utility..................................................................................................................8-3
Windows 3.x COMM API Programming .............................................................8-3
Existing Applications..........................................................................................8-3
RS-232/422/485 Programming............................................................9-1
RS-232 Programming ........................................................................................9-1
RS-422 Programming ........................................................................................9-1
RS-485 Programming ........................................................................................9-1
Appendix A Pinouts and Cable Wiring .......................................... A-1
RS-232.............................................................................................................. A-1
RS-422.............................................................................................................. A-4
RS-485.............................................................................................................. A-5
Impedance Matching and Termination Resistors.............................................. A-6
Pinouts of DB-37 Connector ............................................................................. A-8
Appendix B High Speed Operations............................................... B-1
Appendix C Troubleshooting............................................................. C-1
Appendix D I/O Port Address Map................................................... D-1
1 Industio C114HI User's Manual 1-1
1
1
1 Introduction
The Smart 3 in 1 Multiport Async Solutions
The C114HI is a RS-232/RS-422/RS-485 4-port serial communication interface board. Each port can be configured to RS-232, RS-422 or RS-485 individually. It is designed for the system manufacturers, integrators or 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.
The C114HI is so flexible in configuration that they are compatible with virtually all kinds of other manufacturer's 4 port non-intelligent boards using 16C550C UART.
Operating System Support
The family is operational under most popular operating systems such as Windows NT, Windows 95/98, SCO UNIX/XENIX/OpenServer, DOS, Windows 3.x, OS/2, Linux, QNX, FreeBSD, MUMPS, PICK OS, IMS Multiuser DOS, etc. However, MOXA device drivers for Windows NT, Windows 95/98, DOS, Windows 3.x and Linux are provided for better installation, configuration and performance. In this manual, chapters for MOXA
Windows NT, Windows 95/98, DOS and Windows
3.x
device drivers are included. For other compatible systems not mentioned, please refer to the respective operating system’s manual for how to install and configure the standard driver.
MOXA Serial Comm Tool
For easy application development, MOXA provides an easy-use serial communication library under Windows NT/95/98 (
PComm) and Windows 3.x/DOS
1-2 Industio C114HI User's Manual
(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.
Utilities, such as diagnostic and monitor, are
included for diagnosing the board/port or monitoring the communication status.
Features
The C114HI 4 port RS-232/422/485 board provides the following advanced features:
u 16 bit AT bus architecture, more IRQs supported u ASIC-designed, easily configured by software ( IO-IRQ/DOS ) u Independent I/O address and IRQ settings for each of 4 serial ports
u 4 high speed, up to 921.6K bps, 16C550C UARTs with on-chip hardware flow
control, no data loss ( 16C550C compatible )
u Compatible with PC standard ports: COM1 ~ COM4 u Supports isolation protection for RS-422/RS-485 u Supports 2-wire or 4-wire RS-485 operation modes u Supports RS-485 auto data direction switching feature u Supports Windows NT/95/98, DOS and Windows 3.x device drivers u Compatible with most popular Operating Systems
Specifications
u Bus interface: ISA(EISA compatible) u Number of ports: 4 u I/O address: 0x0000 ~ 0xFFFF u IRQ: 2, 3, 4, 5, 7, 10, 11, 12, 15 u Data bits: 5, 6, 7, 8 u Stop bits: 1, 1.5, 2 u Parity: none, even, odd, space, mark u UART: 4¡Ñ16C550C or Compatible u Speed: 50 ~ 921.6K bps u Connectors: 4¡ÑDB-9 male (DTE) u Data signals: RS-232: TxD, RxD, RTS, CTS, DTR, DSR, DCD, GND
RS-422: TxD+/-, RxD+/-, RTS+/-, CTS+/-, DCD, GND RS-485: TxD+/-, RxD+/-, GND
Introduction
Industio C114HI User's Manual 1-3
u Isolation protection: max. 2000V for RS-422 or RS-485 u Operating temp.: 0 ~ 55°C u Dimensions: 22 cm¡Ñ11.5 cm u C114HI is compatible with various operating systems. However, Moxa supports
proprietary drivers for better performance. See the driver list below.
C114HI
Windows NT
3/C
Windows 95/98
3/C
Windows 3.x
3/C
DOS
3/C
Linux R/C OS/2 C SCO UNIX/OpenServer C SCO XENIX C QNX C FreeBSD C PICK OS C MUMPS C Multiuser DOS C
3: Driver supported by Moxa and shipped with product R : Driver supported by Moxa but shipped by request C : Driver supported by OS Note: MOXA FTP site is available for driver download
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. Windows NT/95/98 driver diskette¡Ñ1, DOS/Windows 3.x driver diskette¡Ñ1,
PComm diskette¡Ñ1
4. 30 cm cable ( DB-37 to 4¡ÑDB-9 male connectors )
Installation Guide
To install C114HI in a system, follow the instructions of Chapter "Hardware Installation and IO-IRQ" and then O.S. specific instruction of Chapter "Software Installation".
1-4 Industio C114HI User's Manual
1 Industio C114HI User's Manual 2-1
2
2
2 Hardware Installation and IO-IRQ
IO-IRQ Configuration Utility
Before installing any driver for C114HI in the system, it is necessary to run DOS configuration utility,
IO-IRQ.EXE, to configure the ports, such as I/O address, IRQ,
Interrupt vector, etc. The utility is in the DOS/Windows 3.x driver diskette.
The C114HI uses on-board
EEPROM to save the board's configuration which can
be accessed (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.
To save time, please determine in which operating system, e.g. Windows or OS/2 or SCO UNIX, the C114HI board will be used. In order to ease the configuration, the commonly used I/O address and IRQ combinations supported by most popular OSs have been collected in the IO-IRQ utility. Press "
F3 - Select OS Compatibility" on
3rd level menu to bring the suggested list and choose a proper one. You can, however, enter the I/O and IRQ manually if none of the items is suitable.
For example, if the C114HI board is to be installed under SCO UNIX system as the primary (first) four port board, using SCO UNIX system serial driver, here is one of the possible settings,
a. Press "
F3 - Select OS Compatibility " on 3rd level menu.
b.
Then choose the entry of "SCO UNIX 1 (Arnet Compatible...)" which will designate the C114HI's I/O base address to 0x280, IRQ to 4 and interrupt vector to 0x2C2.
Be careful not to conflict the I/O address and IRQ of the C114HI board with the existing board's.
2-2 Industio C114HI User's Manual
JP1
PORT 2
PORT 3
PORT 4
PORT 1
RT7RT2 RT6RT4
RT8RT1 RT5RT3
JP4
PORT 3
JP5
PORT 4
PORT 2
JP3
PORT 1
JP2
RTS ON
REG
AUTO
ON
RTS OFF
REG
AUTO
ON
232
422
485
JP7
485
422
232
RTS ON
REG
AUTO
ON
RTS OFF
REG
AUTO
ON
JP11
RTS ON
REG
AUTO
ON
RTS OFF
REG
AUTO
ON
232
422
485
JP9
485
422
232
RTS ON
REG
AUTO
ON
RTS OFF
REG
AUTO
ON
JP13
JP8 JP12
JP6 JP10
C114HI’s Layout
Hardware Installation and IO-IRQ
Industio C114HI User's Manual 2-3
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 JP 3 JP 4 JP 5 Interface & RS-485 Operation Mode JP 6 JP 8 JP 10 JP 12 RS-422/RS-485 Transmitter Mode JP 7 JP 9 JP 11 JP 13 RS-422/RS-485 Receiver Mode
For illustration, jumper settings of the first port is shown below.
Put the jumpers in the positions as depicted. Do not care Tx (JP6) and Rx (JP7).
Jumper Settings for RS-232 Port
Put the jumpers in the positions exactly as depicted.
JP7 (Rx)
JP2
JP6 (Tx)
232
422
485
RTS ON REG AUTO ON RTS OFF REG AUTO ON
2-4 Industio C114HI User's Manual
Tx: ON Rx: ON
Jumper Settings for RS-422 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" and "AUTO" for the transmitter (jumpers for Tx) and 3 options: "RTS OFF", "REG" and "AUTO" for the receiver (jumpers for Rx) Please decide which you need and put the jumpers in positions as depicted.
Full Duplex Operation Mode
Tx: RTS ON Tx: REG Rx: RTS OFF Rx: REG
RTS ON REG AUTO ON RTS OFF REG AUTO ON
RTS ON REG AUTO ON RTS OFF REG AUTO ON
RTS ON REG AUTO ON RTS OFF REG AUTO ON
Hardware Installation and IO-IRQ
Industio C114HI User's Manual 2-5
Half Duplex Operation Mode
Tx: RTS ON Tx: REG Tx: AUTO Rx: RTS OFF Rx: REG Rx: AUTO
Please also refer to Chapter 9 for RS-485 programming and Appendix A for RS-485 cable wiring.
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.
Step 2. Power off PC.
Step 3. Set the interface type to RS-232, RS-422 or RS-485 for each port with the
jumpers on board.
Step 4. Install the C114HI board into a 16-bit slot.
The C114HI has the following default (factory) settings,
I/O address:
0x180 (1st port), 0x188 (2nd port) 0x190 (3rd port), 0x198 (4th port)
IRQ:
10 (shared by four ports)
Interrupt vector :
0x1C0
Configuration Access Port (CAP): 0x180
RTS ON REG AUTO ON RTS OFF REG AUTO ON
RTS ON REG AUTO ON RTS OFF REG AUTO ON
RTS ON REG AUTO ON RTS OFF REG AUTO ON
2-6 Industio C114HI User's Manual
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).
a. Short the jumper at position JP1 on the upper-left corner of C114HI. This will
force the CAP address to 0xA700.
b. Change or disable the existing board's I/O address.
ATTENTION ! For safety and to prevent C114HI from damage, please do
not attempt to install or remove the jumper cap of JP1 until the power of PC is off.
Step 5. Power on the PC and enter DOS system.
Step 6. Execute IO-IRQ.EXE included in the DOS/Windows 3.x software driver
diskette and follow the on-line help to configure the C114HI.
Step 7. Proceed software installation described in Chapter 3. After completing
both the hardware and software configurations, the board is ready for use. Remember to connect the DB-37 to 4
¡ÑDB-9 cable.
1 Industio C114HI User's Manual 3-1
3
3
3 Software Installation
The C114HI boards are compatible with various operating systems such as SCO UNIX/XENIX, OS/2, QNX, PICK OS, MUMPS, Linux, and IMS Multiuser DOS. Please refer to the relative operating system's manual for how to configure the board.
The C114HI boards support Windows NT, Windows 95/98, DOS and Windows 3.x device drivers. The compatible SCO UNIX/XENIX and OS/2 drivers are also described in this Chapter.
Windows NT/95/98, DOS/Windows 3.x
Please refer to Chapter "For Windows NT Users" or "For Windows 95/98 Users", "For DOS Users" or "For Windows 3.x Users" for more details.
SCO UNIX/XENIX
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:
I
RQ = 4 (i.e. COM1) I/O base address = 0x280 (Arnet compatible) Vector = 0x2C2 (0x280 + offset 0x42)
For second 4 port board, the C114HI can be configured as:
IRQ = 3 (i.e. COM2) I/O base address = 0x300 (Arnet compatible)
3-2 Industio C114HI User's Manual
Vector = 0x342
Use the following SCO UNIX/XENIX command to start the software installation of a new serial board:
# mkdev serial
The screen will show:
You would like to install a:
1. 1 port card
2. 2 port card
3. 4 port card
4. ......
Enter number 3 to choose "4 port card". The screen then shows:
The card is configured as:
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. Hostess base address 0xccc
4. ......
For first C114HI 4 port board, select "Arnet base address 0x280"; for second, "Arnet base address 0x300". Follow the on-line instruction to complete the rest of the installation procedure.
Once the installation is successfully completed, the following serial devices along with their modem devices (upper-case) will be added to the system.
tty1a tty1b tty1c tty1d (first C114HI) tty2a tty2b tty2c tty2d (second C114HI)
Be sure to activate the device by using SCO command:
# enable ttyxx
Loading...
+ 45 hidden pages