Moxa Technologies CB-108, CB-114, CB-108-T, CB, CB-134I-T User Manual

...
CB Series PC/104-Plus Multiport Serial Module
User’s Manual
www.moxa.com/product
Fourth Edition, January 2008
© 2008 Moxa Inc., all rights reserved.
Reproduction without permi ssion is pr ohibited.
CB Series PC/104-Plus Multiport Serial Module
User’s Manual
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 © 2008 Moxa Inc.
All rights reserved.
Reproduction without permi ssion is pr ohibited.
Trademarks
MOXA is a registered trademark of Moxa Inc.
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, its particular purpose. Moxa reserves the right to make improvements and/or changes to this manual, or to the products and/or the programs described in this manual, at any time.
Information provided in this manual is intended to be accurate and reliable. However, Moxa assumes no responsibility for its use, or for any infringements on the rights of third parties that may result from its use.
This product might include unintentional technical or typographical errors. Changes are periodically made to the information herein to correct such errors, and these changes are incorporated into new editions of the publication.
Technical Support Contact Information
www.moxa.com/support
Moxa Americas: Toll-free: 1-888-669-2872 Tel: +1-714-528-6777 Fax: +1-714-528-6778
Moxa China (Shanghai office)
: Toll-free: 800-820-5036 Tel: +86-21-5258-9955 Fax: +86-10-6872-3958
Moxa Europe
: Tel: +49-89-3 70 03 99-0 Fax: +49-89-3 70 03 99-99
Moxa Asia-Pacific
: Tel: +886-2-8919-1230 Fax: +886-2-8919-1231
Table of Contents
Chapter 1 Introduction ...............................................................................................1-1
Overview.............................................................................................................................. 1-2
Package Checklist................................................................................................................. 1-2
Product Features................................................................................................................... 1-2
Product Specifications.......................................................................................................... 1-3
Chapter 2 Hardware Installation................................................................................2-1
Hardware Installation ........................................................................................................... 2-2
Block Diagrams.................................................................................................................... 2-2
Rotary Switch............................................................................................................... 2-3
Termination Resistor.................................................................................................... 2-3
Serial Interface Selection...................................................................................................... 2-4
Chapter 3 Software Installation .................................................................................3-1
Windows NT......................................................................................................................... 3-2
Installing the Driver...................................................................................................... 3-2
Configuring the Ports.................................................................................................... 3-5
Removing the Board..................................................................................................... 3-7
Updating the Driver...................................................................................................... 3-7
Removing the Driver.................................................................................................... 3-8
Windows 95/98/ME.............................................................................................................. 3-9
Installing the Driver...................................................................................................... 3-9
Configuring the Ports.................................................................................................. 3-13
Updating the Driver.................................................................................................... 3-15
Removing the Driver.................................................................................................. 3-17
Windows Vista (32-bit and 64-bit) ..................................................................................... 3-18
Installing the Driver.................................................................................................... 3-18
Using Device Manager to Verify Installation............................................................. 3-25
Port Configuration...................................................................................................... 3-26
Windows XP, 2003 (32-bit and 64-bit)............................................................................... 3-28
Installing the Driver.................................................................................................... 3-28
Using Device Manager to Verify Installation............................................................. 3-34
Port Configuration...................................................................................................... 3-35
Using PComm.............................................................................................................3-37
Using Event Log......................................................................................................... 3-37
Disabling the Module ................................................................................................. 3-37
Uninstalling the Module............................................................................................. 3-38
Windows 2000.................................................................................................................... 3-39
Installing the Driver.................................................................................................... 3-39
Using Device Manager to Verify Installation............................................................. 3-45
Port Configuration...................................................................................................... 3-46
Using PComm.............................................................................................................3-47
Using Event Log......................................................................................................... 3-48
Disabling the Module ................................................................................................. 3-48
Uninstalling the Module............................................................................................. 3-49
Linux (32-bit and 64-bit) .................................................................................................... 3-51
DOS.................................................................................................................................... 3-51
Installing the Driver.................................................................................................... 3-51
Driver Setup................................................................................................................ 3-52
Loading the Driver...................................................................................................... 3-54
Unloading the Driver .................................................................................................. 3-54
Windows CE 5.0................................................................................................................. 3-54
Installing the driver..................................................................................................... 3-54
Chapter 4 Serial Programming Tools........................................................................4-1
Serial Programming Library................................................................................................. 4-2
PComm Utilities................................................................................................................... 4-2
Installation.................................................................................................................... 4-2
PComm Diagnostic ....................................................................................................... 4-2
PComm Monitor........................................................................................................... 4-3
PComm Terminal Emulator.......................................................................................... 4-3
Chapter 5 Pin Assignments .......................................................................................5-1
Box Header Pin Assignments............................................................................................... 5-1
RS-232.......................................................................................................................... 5-1
RS-422, 4-wire RS-485 ................................................................................................5-1
2-wire RS-485...............................................................................................................5-2
Serial Cable Pin Assignments............................................................................................... 5-2
DB9(M) Connectors ..................................................................................................... 5-2
DB25(M) Connectors ................................................................................................... 5-3
1
1
Chapter 1Introduction
Welcome to the CB Series of PC/104-Plus communication modules, a multiport serial module for industrial applications. It is designed for PC/104-Plus CPU boards that accept the PC/104-Plus expansion interface. Optional DB9 and DB25 cables are available to connect different devices. The device drivers make full use of the 128-byte Tx/Rx FIFO and on-chip flow control, which allows up to 921.6 Kbps data transmission.
The CB Series includes the following models: CB-108:
8 ports, RS-232
CB-108-T:
8 ports, RS-232, wide temperature
CB-114:
4 ports, RS-232/422/485
CB-114-T:
4 ports, RS-232/422/485, wide temperature
CB-134I:
4 ports, RS-422/485, optical isolation protection
CB-134I-T:
4 ports, RS-422/485, optical isolation protection, wide temperature
2 KV optical isolation is provided on optical isolation models. Wide temperature models are rated for operation between -40 to 85°C.
The following topics are covered in this chapter:
Overview Package Checklist Product Features Product Specifications
CB Series PC104 Plus User’s Manual Introduction
Overview
The CB Series PC/104-Plus module is designed to be used with PC/104-Plus CPU modules or CPU cards with the PC/104-Plus expansion interface. Models are available for RS-232, RS-422, and RS-485, with 4 or 8 ports. The serial ports are accessed through a 40-pin box header connector on the module. DIP switches allow you to select the serial interface. The industry-standard MOXA UART (16C550 compatible) is fully programmable. Built-in 15 KV ESD protection protects devices connected to the serial network.
Package Checklist
MOXA performs a careful mechanical and electrical inspection of each module prior to shipping. Your module should arrive in perfect electrical order, free of any marks or scratches. Please handle the module by the edges only, since your body’s static charge can damage the integrated circuits. When the module is not in use, please keep it in the anti-static package provided. You may also use this package to return the module if it requires repair.
The CB Series module is shipped with the following items:
y CB Series PC/104-Plus multiport serial module y Documentation and Software CD y Quick Installation Guide y 5-year product warranty statement
Note: Please notify your sales representative if any of the above items are missing or damaged.
Product Features
The CB Series module features the following:
y 4 or 8 serial ports (depending on model) y RS-232, RS-422, or RS-485 operation (depending on mod el) y 128-byte FIFOs and on-chip flow control y Up to 921.6Kbps data transmission speed y Built-in 15 KV ESD protection y Onboard Tx, Rx LED indicators for each port y Optional wide temperature support (-40 to 85°C)
1-2
CB Series PC104 Plus User’s Manual Introduction
1-3
Product Specifications
CB Series PC/104-Plus Multiport Serial Module Hardware
I/O controller MU860 (16C550C compatible) Connector Type 40-pin box header Interface Bus PC/104-Plus (PCI) bus No. of Ports 4 ports (CB-114, CB-134I)
8 ports (CB-108)
Max. No. of Modules 4 Signals RS-232 TxD, RxD, RTS, CTS, DTR, DSR, DCD, GND RS-422 TxD+(B), TxD-(A), RxD+(B), RxD -(A), GND 4-wire RS-485 TxD+(B), TxD-(A), RxD+(B), RxD-(A), GND 2-wire RS-485 Data+(B), Data-(A), GND Performance Baudrate 50 bps to 921.6 Kbps Configuration Parity None, Even, Odd, Space, Mark Data Bits 5, 6, 7, 8 Stop Bit(s) 1, 1.5, 2 IRQ BIOS assigned FIFO 128 bytes Additional Settings Serial interface selection by DIP switch Driver Support DOS
Windows 2000, Windows XP/2003/Vista (x86 and x64) Linux 2.4, Linux 2.6 (x86 and x64)
Power and Environment Operating Temperature Standard models: 0 to 55°C (32 to 131°F)
“-T” models:, -40 to 85°C (-40 to 185°F) Operating Humidity 5 to 95% RH Storage Temperature -40 to 70°C (-40 to 158°F) ESD Protection Embedded 15 KV ESD protection Other Dimensions (W x D) 96 x 90 mm Regulatory Approvals EN55022 Class A, EN55024, EN6100-3-2, EN61000-3-3, FCC
Part 15 Class A
Warranty
5 years
2
2
Chapter 2Hardware Installation
This chapter explains how to install the CB Series PC/104-Plus multiport serial module. The following topics are covered:
Hardware Installation Block Diagrams
¾ Rotary Switch ¾ Termination Resistor
Serial Interface Selection
CB Series PC104 Plus User’s Manual Hardware Installation
Hardware Installation
Installing the CB Series module is easy. Before inserting the module into the PC/104-Plus slot, you must first configure the I/O base address, interrupt vector, IRQ, and serial interface (for select models).
ATTENTION
Safety First! To prevent damage to your system or board, make sure your embedded PC’s power is turned off before installing your CB Series module.
Step 1: Shut off power to your embedded PC and to any peripheral devices. After shutting off
power, remove the cover of your embedded PC.
Step 2: Use the DIP switches on the module to select the serial interface. Details for each model
are provided later in this chapter.
Step 3: Insert the module firmly into the embedded PC’s PC/104-Plus slot.
Step 4: Screw the control board in place.
Step 5: Connect the cables.
Step 6: Power on the embedded PC. The BIOS will automatically set the IRQ and I/O address
Step 7: Proceed with the software installation. Please refer to Chapter 3.
Block Diagrams
CB-108
PC/104-Plus Slot Box Header Connectors
PC/104 Slot
Rotary Switch
2-2
CB Series PC104 Plus User’s Manual Hardware Installation
CB-114
PC/104-Plus Slot SW1 SW2 Serial Interface SW3 Box Header Connector PC/104 Slot
Rotary switch
JP 1
JP 2
JP 3
JP 4
CB-134I
PC/104-Plus Slot RS422/485 2-wire/4-wire
Box Header Connector PC/104 Slot
Rotary Switch
JP 1
JP 2
JP 3
JP 4
Rotary Switch
A rotary switch on the board makes it easy to set the appropriate signals, particularly when installing multiple PC/104-Plus modules in the same unit. The rotary switch, which looks like a clock, provides a bi-directional path with no signal pr o pagat i on del a y . The first module on the stack should be set to CLK0, the second to CLK1, etc., to eliminate clock skew between modules.
Termination Resistor
Onboard termination resistors can be activated individually for each serial port using jumpers JP1 through JP4. JP1 corresponds to serial port 1. Short the jumper pins to activate the termination resistor; leave the jumper pins open to bypass the termination resistor.
2-3
CB Series PC104 Plus User’s Manual Hardware Installation
2-4
Serial Interface Selection
For the CB-114 and CB-134I, the serial interface is selecting using the onboard DIP switches.
CB-114
Mode S1 S2 S3
RS-232 --- --- ON RS-422 --- ON off 4-wire RS-485 ON off off 2-wire RS-485 off off off
CB-134I
Mode S1 S2
RS-422 --- off 4-wire RS-485 off ON 2-wire RS-485 ON ON
3
3
Chapter 3Software Installation
After installing the CB Series module in your embedded computer, the next step is installing the software. Drivers for various operatin g systems are provided, including DOS, Windo ws, and Linux. This chapter explains how to install and remove the CB Series driver.
The following topics are covered in this chapter:
Windows NT Windows 95/98/ME Windows Vista (32-bit and 64-bit) Windows XP, 2003 (32-bit and 64-bit) Windows 2000 Linux (32-bit and 64-bit) DOS Windows CE 5.0
CB Series PC104 Plus User’s Manual Software Installation
Windows NT
Installing the Driver
You will need to plug the board in an available PCI or PCI-X slot first, before installing the driver. Note that these instructions use the CB-114 as an example. The procedure for installing all models
is the same.
1. Log into Windows NT as Administr ator.
2. Locate the appropriate folder for your board’s dr ivers on the Document & Software CD. The
NT drivers will be located under the product folder in the \Software\WinNT directory (e.g., under \CB-114 Series\Software). Copy this folder to the PC’s hard disk and remember its location.
3. In the Control Panel, open Network applet. On the Adapters tab, click Add. When
prompted to select a product, click Have Disk….
You will be prompted to enter the path to the driver. Enter the location of the drivers that you copied from the Document & Software CD (C:\Windows.nt in this example) and then click OK.
3-2
CB Series PC104 Plus User’s Manual Software Installation
4. When prompted, select your board model (Smartio/Industio Family multiport board in this
example) and click OK.
5. After the files have been installed, a configuration panel will open. This is where boards are
installed, configured, and removed. If another board has already been installed on the system, it will already be listed. Windows NT does not automatically detect Moxa UPCI boards, so you will need to click Add for a newly installed board.
6. Under Board Type, select the UPCI board that is being installed. The window will show the
COM settings for the serial ports on the board. You can modify the COM settings for any port at this time by selecting a port and clicking Port Setting. If you are satisfied with the COM settings, click OK to return to the configuration panel.
3-3
CB Series PC104 Plus User’s Manual Software Installation
7. The board will now appear in the configuration panel (CB-114 Series in this example). Click
OK to return to the Network applet. After that, click OK again to exit the Network applet
8. Restart the PC. After you have logged back into Windows NT, you may check the event log
issued by the Moxa driver to see if the board’s ports have been initialized successfully. In the Administrative group, open Event Viewer and select Log and System. For each newly installed or configured Moxa UPCI board, check for a message stating that the board has been enabled (e.g., “MoxaCB-114 board, wit h first serial port COM3, has been enabled”).
3-4
CB Series PC104 Plus User’s Manual Software Installation
Configuring the Ports
1. In Windows Control Panel, open the Network applet. In the Adapters tab, UPCI boards will
appear as a type of Moxa adap ter (MOXA Smartio/Industio Family Adapter in this example). Select the Moxa adapter and click Properties….
2. The configuration panel will open with a list of installed boards. Select your board and click
Property. Up to 4 Moxa UPCI boards can be installed at a time.
3-5
CB Series PC104 Plus User’s Manual Software Installation
3. Select a port to configure and click Port Setting.
Under Port Number, select a COM number to assign to the serial port. Select Auto Enumerating COM Number to map subsequent ports in numerical order. For example, if COM 3 is assigned to Port 1, then COM 4 will be automatically assigned to Port 2.
4. Select an Rx FIFO Trigger and Tx FIFO Size. The default Rx FIFO Trigger is 120 bytes
(high level). The default Tx FIFO Size is 128 bytes (high level). Select Set the change to all ports to use this setting for all serial ports on the board.
TxFIFO RxFIFO High 128 120 Middle 64 60 Low 1 1
3-6
CB Series PC104 Plus User’s Manual Software Installation
5. Click OK to approve the settings for the selected port. Continu e in the same way to configure
the other ports. When you have finished setting up the ports, click OK to close the Properties window and apply the new port settings. Click OK again to exit the Network applet.
Removing the Board
To remove a board, shut of your PC and physically remove the board from the PCI slot. The next time you start up the PC, Windows NT will automatically remove the configuration. You do not need to go through the Windows control panel.
Updating the Driver
1. In Windows Control Panel, open the Network applet. In the Adapters tab, UPCI boards will
appear as a type of Moxa adap ter (MOXA Smartio/Industio Family Adapter in this example). Select the Moxa adapter and click Remove.
3-7
CB Series PC104 Plus User’s Manual Software Installation
2. Restart the system.
3. Go through the process of installing the drivers using the new drivers.
Removing the Driver
1. In Windows Control Panel, open the Network applet. In the Adapters tab, UPCI boards will
appear as a type of Moxa adap ter (MOXA Smartio/Industio Family Adapter in this example). Select the Moxa adapter and click Remove.
2. Click OK to exit the Network applet and restart the system.
3-8
CB Series PC104 Plus User’s Manual Software Installation
Windows 95/98/ME
Installing the Driver
Windows 95
1. After the board is physically installed and the PC boots up, Windows will automatically detect
the new board and the Found New Hardware Wizard window will open. Click Next to continue.
2. Select Other Locations…
3-9
CB Series PC104 Plus User’s Manual Software Installation
3. Click Browse and select the appropriate directory on the Document & Software CD for the
driver. Drivers for all operating systems are located under the product folder in the \Software directory. Select the \Win9x folder and click OK to continue.
4. After Windows finds the drivers, click Finish.
You may begin configuring and using the new COM ports right away without restarting Windows.
3-10
CB Series PC104 Plus User’s Manual Software Installation
Windows 98 and ME
1. After the board is physically installed and the PC boots up, Windows will automatically detect
the new board and the Found New Hardware Wizard window will open. Click Next to continue.
2. Select Display a list... and click Next.
3-11
CB Series PC104 Plus User’s Manual Software Installation
3. Select Other Devices and click Next.
4. Select Have Disk…
5. Click Browse and select the appropriate directory on the Document & Software CD for the
driver. Drivers for all operating systems are located under the product folder in the \Software directory. Select the \Win9x folder and click OK to continue.
3-12
CB Series PC104 Plus User’s Manual Software Installation
6. After Windows installs the drivers, click Finish.
Configuring the Ports
You may configure the COM ports after the board and drivers have been installed.
1. In the Windows Control Panel, open the System applet.
3-13
Loading...
+ 54 hidden pages