Contec COM-2PD(PCI)H, COM-4PD(PCI)H, COM-2DL-PCI, COM-4DL-PCI User Manual

Page 1
PC-HELPER
RS-422A/485 Serial I/O Board with Isolation for PCI
2ch
COM-2PD(PCI)H
4ch
COM-4PD(PCI)H
User’s Guide
CONTEC CO.,LTD.
Page 2

Check Your Package

Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following l ist, that yo ur package is c omplete. If y ou discover dam aged or m issing item s,
contact your retailer.
Product Configuration List
- Board [COM-2PD(PCI)H or COM-4PD(PCI)H]
- First step guide … 1
- COM Setup Disk *1 (CD-ROM) …1 *1 The CD-ROM contains the driver software and User’s Guide (this guide)
Board
COM-2PD(PCI)H, COM-4PD(PCI)H
First step guide
CD
i
Page 3

Copyright

Copyright 2013 CONTEC CO., LTD. ALL RIGHTS RESERVED No part of this document may be copied or reproduced in any form by any means without prior written
consent of CONTEC CO., LTD.
CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this document. The information in this document is subject to change without notice.
All relevant issues have been considered in the preparation of this document. Should you notice an omission or any questionable item in this document, please feel free to notify CONTEC CO., LTD.
Regardless of the foregoing statement, CONTEC assumes no responsibility for any errors that may appear in this document nor for results obtained by the user as a result of using this product.

Trademarks

MS, Microsoft, Windows and Windows NT are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder.
COM-2PD(PCI)H, COM-4PD(PCI)H
ii
Page 4

Table of Contents

Check Your Packag e............................................................................................................................i
Copyright ............................................................................................................................................ii
Trademarks ......................................................................................................................................... ii
Table of Con tents ..............................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the Boa rd.................................................................................................................................. 1
Features........................................................................................................................................ 1
Support Soft wa re ......................................................................................................................... 2
Cable & Conne c to r ( Op t ion ) ...................................................................................................... 3
Customer Supp o rt ............................................................................................................................... 4
Web Site....................................................................................................................... ................ 4
Limited Thre e- Y ea rs Wa rr a n ty .......................................................................................................... 4
How to Obtain Se rv i c e ....................................................................................................................... 4
Liability .............................................................................................................................................. 4
Safety Precau ti o n s .............................................................................................................................. 5
Safety Infor mat i o n....................................................................................................................... 5
Handling Pre ca u tio ns................................................................................................................... 6
Environment ................................................................................................................................ 7
Inspection..................................................................................................................................... 7
Storage ......................................................................................................................................... 7
Disposal ....................................................................................................................................... 7
2. SETUP 9
What is Setup? .................................................................................................................................... 9
Using the Board under Windows Using the Standard COM Driver Software COM Setup Disk9
Using the Board unde r W ind o ws Usin g th e D riv e r li b r ar y A P I- PAC ( W3 2) .............................9
Using the Board under Linux Using the Standard COM Driver Software COM Setup Disk.. 10
Operating Sys tems Other than Wind o w s o r L inu x ................................................................... 10
Step 1 Setting th e H a rd wa r e............................................................................................................. 11
Parts of the Bo a rd and F a cto r y D ef a u lts ................................................................................... 11
Setting the Bo a rd ID ..................................................................................................................13
Setting Transmission Mode....................................................................................................... 14
Setting of Te r min a to r ................................................................................................................ 15
Plugging the Board.................................................................................................................... 18
Step 2 Installi ng t h e H a rd wa re ......................................................................................................... 19
Turning on the PC...................................................................................................................... 19
Windows 8, 7 ............................................................................................................................. 20
Windows Server 2008, Windows V ista .................................................................................... 22
Windows Server 2003, Windows XP, Windows 2000 ............................................................. 23
COM-2PD(PCI)H, COM-4PD(PCI)H
iii
Page 5
The check meth od of th e co mpl e ti o n of h a rd w are in s ta ll at ion .................................................24
Step 3 Initial iz in g th e Sof t wa re ........................................................................................................25
For use under Windows 8, 7, Serv e r 2 00 8 , V is ta , XP, S erv e r 20 0 3 , 20 0 0............................... 25
For use under Windows NT, Me, 9 8 o r 95................................................................................ 27
Step 4 Checkin g Operations with th e Di ag no si s Pro g ra m ...............................................................28
What is the Diag n os is Pro g ram? ...............................................................................................28
Check Method............................................................................................................................ 28
Using the Di agnosis Program....................................................................................................29
Setup Trouble sh o o t ing...................................................................................................................... 31
Symptoms and A cti on s ..............................................................................................................31
If your proble m c an n ot b e reso lv ed........................................................................................... 31
3. EXTERNAL CONNECTION 33
In the case of C O M- 2P D (P C I) H ......................................................................................................34
Connecting di re ct ly to th e p o rt c on n e cto r .................................................................................34
In the case of C O M- 4P D (P C I) H ......................................................................................................35
Using the 9-pin D -S UB Con n ec to r Conv e r s ion C ab le s ............................................................35
Connecting it d ire c tl y f rom the on-board c o nn e ct or .................................................................36
Types of Cable and Example Connectio n s.......................................................................................37
4. FUNCTIONS 39
Communication Function ................................................................................................................. 39
Serial Data T ran s mi ss io n........................................................................................................... 39
RS-422A/485 Control Lines ......................................................................................................39
Send and Recei v e D at a Bu ff e r s .................................................................................................39
Setting the Baud Ra t e ................................................................................................................ 40
Automatic RTS C on t ro l Fu n ct io n s ............................................................................................42
Other Functi o n s ................................................................................................................................42
Channel Isolation / Bus Is o lat io n ................................................................................................42
Surge Protect io n ............................................................................................................... .......... 42
5. ABOUT SOFTWARE 43
About Sample p ro gr a ms ................................................................................................................... 43
Uninstalling the d r iver software .......................................................................................................45
Windows XP, S e rv er 20 03 , 20 0 0 .............................................................................................. 45
Windows 8, 7, Se r ve r 2 00 8 , V is t a............................................................................................. 45
Windows Me, 98 , 95.................................................................................................................. 45
Windows NT.............................................................................................................................. 46
CD-ROM Directo r y S t ru c tu re .......................................................................................................... 47
6. ABOUT HARDWARE 49
For detailed t e chn i cal in fo r ma tio n ...................................................................................................49
COM-2PD(PCI)H, COM-4PD(PCI)H
iv
Page 6
Hardware spe cification..................................................................................................................... 50
Circuitry Di ag ra ms ........................................................................................................................... 53
Differences from COM-2PD (P CI)................................................................................................... 54
COM-2PD(PCI)H, COM-4PD(PCI)H
v
Page 7
COM-2PD(PCI)H, COM-4PD(PCI)H
vi
Page 8

1. Before Using the Product

1. Before Using the Product
This chapter provides information you should know before using the product.

About the Board

This product is a PCI bus-supported board designed for extending RS-422A/485 compatible serial communication functionality on your PC. The < COM-2PD(PCI)H > has two RS-422A/485 communication ports. The < COM-4PD(PCI)H > has four RS-422A/485 communication ports. Higher noise-resistant models with isolation between a PC and bus line as well as a surge protection circuit for communication ports. With a 128byte built-in FIFO buffer for transmission and reception of each channel, the product supports a baud rate of up to 921,600bps. It also comes with a Windows/Linux driver, which allows boards to be used as OS-standard COM ports.
This product supports CONTEC-defined driver library “API-PAC(W32)” that provide local routines. The COM-2PD/4PD(PCI)H boards are backward compatible with the CONTEC COM-2PD/4PD(PCI) boards. The COM-xPD(PCI)H can therefore replace the COM-xPD(PCI) in an existing system.

Features

- Max . 921,600b ps RS-422 A/485 Serial Communication The < COM-2PD(PCI)H > has two RS-422A/485-standard serial ports.
The < COM-4PD(PCI)H > has four RS-422A/485-standard serial ports. Baud rates from 2 to 9 21, 60 0b ps ca n be se t. Wh en using the bundled “Standard COM Driver Software” and “Driver library API-PAC(W32)”, baud rates from 15 to 921,600bps can be set.
- Po ssib ly used as Windows , Linux-stand ard COM po rts, using the bundled driv er library Comes with a driver software that allows the products to be used under Windows / Linux in the same
way as COM ports on the PC. Under Windows, the product supports the OS-standard Win32 API communication function as well as Visual Basic MSComm. Under Linux, OS-standard tty driver’s standard-function can be used. In additi on, supplies a diagnostic pr ogram to confirm hardware o peration and to perform a communication test with equipment.
- Isolation between channels and between PCs, surge protection for all signal lines The channels are electrically isolated from each other and from the PC. As isolation is provided between channels as well as isolation of the bus, this prevents electrical noise
between channels as well as betwee n the PC a nd external cir cuits. A s surge pr otection i s provide d on all signal lines, you can safely use the boards in environments where you are concerned about surges causing incorrect operation or damage to the PC.
- Max. 16 boards can be in stalled as configu red in the range C OM1 - COM2 56. Up to 16 boards can be mounted on a single PC.
COM1 - COM256 can be set using the device manager.
COM-2PD(PCI)H, COM-4PD(PCI)H
1
Page 9
1. Before Using the Product
- Each channel is equipped with separate 128-byte FIFO buffers for transmit and receive. Employed a buffer memory 128-byte dedicated to transmission and 128-byte for each channel.
These are FIFO format, useful for high speed communications and to reduce the load to the CPU when transmitting/receiving. As the device manager can be used to enable/disable the us e of FIFO and set the FIFO trigger size, you can build an optimum system according to your use.
- To suit your application, cables and connectors are available as optional. COM-2PD(PCI)H :9-pin D-SUB connectors (male or female type) for your own cables are available as
optional.
COM-4PD(PCI)H :Distribution cable for 4channels and 37-pin D-SUB connectors (male type) for your
own cables are available as optional.
- The control line for RS-422A/485 can be controlled and monitored by software. The control lines for RTS+, RTS-, CTS+ and CTS- can be controlled and monitored using software.
- Driver library API-PAC(W32) is supported. API-PAC(W32) is library software based on Win32 API routines (DLL), which provides local routines
specific to CONTEC. You can create high- speed applicati on software taki ng advantage of the CONT EC hardware using various programming languages that support Win32 API functions, such as Visual Basic and Visual C++.

Support Software

You should use CONTEC support software accor d ing to your purpose and development environment. Standard COM Driver Software
The purpose of this software is to allow the CONTEC serial communication boards to be used under Windows or Linux in the same way as the standard COM ports on the PC. By installing additional boards, you can use COM ports in the range COM1 - COM256. The boards can be used for all types of se rial communications such as for remote access s ervi ce ( R AS) and uninterruptible power supply (UPS) applications. Under Windows, the serial ports can be accessed using the standard Win32 API communication routines (CreateFile( ), WriteFile( ), ReadFile( ), and SetCommState( ), etc.) The serial ports are also compatible with the Visual Basic communication control (MSComm). Supports the communication class of .NET Framework 2.0 (SerialPort class). Under Linux, the serial ports are compatible with the operating system's standard tty driver. The standard routines including open( ), close( ), read( ), write( ) are supported.
COM Setup Disk
(Bundled)
< Operating environment > OS Windows 8, 7, Vista, XP, NT, Me, 98, Linux etc. You can download the updated version from the CONTEC’s Web site (http://www.contec.com/comdrv/). For more details on the supported OS, applicable language and new information, please visit the CONTEC’s Web site.
CAUTION
The maximum number of COM ports able to be used depends on the configuration of your OS.
COM-2PD(PCI)H, COM-4PD(PCI)H
2
Page 10
1. Before Using the Product
Driver library
API-PAC(W32)
(Available for downloading (free of charge) from the CONTEC web
site.)
API-PAC(W32) is the library software that provides the commands for CONTEC hardware products in the form of Windows standard Win32 API functions (DLL). It makes it easy to creat e h igh-s peed application software taking advantage of the CONTEC hardware using various programming languages that support Win32 API functions, such as Visual Basic and Visual C/C++.
For more details and how to download API-PAC(W32), visit http://www.contec.co.jp/apipac/.
< Operating environment > OS Windows 7, Vista, XP, Server 2003 etc. Adaptation language Visual Basic, Visual C++, Visual C#, Delphi, C++ Builder
CAUTION
This library provides local routines that are specific to CONTEC (SioOpen( ), SioWrite( ), SioRead( ), SioStatus( ),
etc.). These are not compatible with the standard Win32 API communication routines (CreateFile( ) and WriteFile( ), etc.).

Cable & Connector (Option)

Connection Conversion Cable (37M→9M x 4, 250mm) : PCE37/9PS Set of five 9-pin D-SUB (male) connectors : CN5-D9M Set of five 9-pin D-SUB (female) connectors : CN5-D9F Set of five 37-pin D-SUB (male) connectors : CN5-D37M
* Check the CONTEC’s Web site for more information on these options.
COM-2PD(PCI)H, COM-4PD(PCI)H
3
Page 11
1. Before Using the Product

Customer Support

CONTEC provides the following s upport services fo r you to use CONTEC products more efficiently and comfortably.

Web Site

Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/
Latest product information CONTEC provides up-to-date information on products. CONTEC also provides product manuals and various technical documents in the PDF.
Free download You can download updated driver software a nd diff erenti al files as we ll as sample pr ograms available i n
several languages.
Note! For product information Contact your retailer if you have any technical question about a CONTEC product or need its price, delivery time, or estimate information.

Limited Three-Years Warranty

CONTEC Interface boards are warranted by CONTEC Co., LTD. to be free from defects in material a nd workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of char ge only w hen thi s device is ret urned fr eight pr epaid with a c opy of the origi nal invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office, from which it was purchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic circuitry and original boards. The warranty is not applicabl e if the device has been tamper ed with or damaged t hrough abuse, mistreatment, neglect, or unreasonable use, or if the original invoice is not included, in which case repairs will be considered beyond the warranty policy.

How to Obtain Service

For replacement or repair, return the device freight prepaid, with a copy of the original invoice. Please obtain a Return Merchandise Authorization Number (RMA) from the CONTEC group office where you purchased before returning any product.
* No product will be accepted by CONTEC group without the RMA number.

Liability

The obligation of the warrantor is solely to repair or replace the product. In no event will the warrantor be liable for any incidental or consequential damages due to s uch defec t or consequence s that arise from Safety Precautions
Understand the following definitions and precautions to use the product safely.
COM-2PD(PCI)H, COM-4PD(PCI)H
4
Page 12
1. Before Using the Product

Safety Precautions

Understand the following definitions and precautions to use the product safely.

Safety Information

This document provides safety information u sing the foll owing sym bols to prevent a ccidents res ulting in injury or death and the destruc tion of equi pment and res ources. Under stand the mean ings of these la bels to operate the equipment safely.
DANGER
WAR NI NG
CAUTION
DANGER indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.
WARNING indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
CAUTION indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury or in property damage.
COM-2PD(PCI)H, COM-4PD(PCI)H
5
Page 13
1. Before Using the Product

Handling Precautions

DANGER
Do not use the product wher e it is e xposed t o flam mable or corr osive ga s. Doi ng so m ay resu lt in a n
explosion, fire, electric shock, or failure.
CAUTION
- There are switches on the board that need to be set in advance. Be sure to check these before installing the board.
- Only set the sw it che s and jumpers on the board to the sp ecif i ed se tt ings . Otherwise, the board may malfunction, overheat, or cause a failure.
- Do not strike or bend the board. Doing so could damage the board. Otherwise, the board may malfunction, overheat, cause a failure or breakage.
- Do not touch the board's metal plated terminals (edge connector) with your hands. Otherwise, the board may malfunction, overheat, or cause a failure. If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not install or remove the board to or from the slot while the computer's power is turned on. Otherwise, the board may malfunction, overheat, or cause a failure. Doing so could cause trouble. Be sure that the personal computer or the I/O expansion unit power is turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed.
Insufficiently energized boards could malfunction, overheat, or cause a failure.
- The specifications of this product are subject to change wi thout notice for en hancement and quality
improvement. Even when using the product conti nuously, be sure to rea d the manual an d understan d the contents.
- Do not modify the product. CONTEC will bear no responsibility for any prob lems, etc., resulting from modifying this product.
- Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever (including damages for loss of business profits) arising out of the use or inability to use this CONTEC product or the information contained herein.
COM-2PD(PCI)H, COM-4PD(PCI)H
6
Page 14
1. Before Using the Product

Environment

Use this product in the following environment. If used in an unauthorized environment, the board may overheat, malfunction, or cause a failure.
Operating temperature
0 - 50ºC
Humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floating dust particles
Not to be excessive

Inspection

Inspect the product periodically as follows to use it safely.
- Check that the bus connector of the board and its cable have been plugged correctly.
- Check that the board has no dust or foreign matter adhering.
- The gold-plated leads of the bus connector have no stain or corrosion.

Storage

When storing this product, keep it in its original packing fo rm. (1) Put the board in the storage bag. (2) Wrap it in the packing material, then put it in the box. (3) Store the package at room temperature at a place free from direct sunlight, moisture, shock,
vibration, magnetism, and static electricity.

Disposal

When disposing of the product, follow the disposal procedures stipulated under the relevant laws and municipal ordinances.
COM-2PD(PCI)H, COM-4PD(PCI)H
7
Page 15
1. Before Using the Product
COM-2PD(PCI)H, COM-4PD(PCI)H
8
Page 16
2. Setup
2. Setup
This chapter explains how to set up the board.

What is Setup?

Setup means a series of steps to take before the product can be used. Different steps are required for software and hardware The setup procedure varies with the OS and applications used.
Using the Board under Windows
Using the Standard COM Driver Software COM Setup Disk
This section describes the setup procedure to be performed before you can start developing application programs for the board using the bundled CD-ROM “Standard COM Driver Software - COM Setup Disk”.
Taking the following steps sets up the software and hardware. You can use the diagnosis program later to check whether the software and hardware function normally.
Step 1 Setting the Hardware Step 2 Installing the Hardware Step 3 Initializing the Software
On the CD-ROM, refer to the \PCI\Readmee.txt file and the installation instruct io ns fi les for e ach OS located in the \PCI\InstDoc.
If Setup fails to be performed normally, see the “Setup Troubleshooting” section at the end of this chapter.
Using the Board under Windows
Using the Driver library API-PAC(W32)
Refer to the API-PAC(W32) "Hardware Installation Procedure (HWINST.CHM)" help file for the procedure to follow when using API-SIO in the " Driver library API-PAC(W32)".
If using API-SIO from API-PAC(W32), install from API-PAC(W32) instead of from the supplied CD-ROM.
See also the following parts of this manual as required.
This chapter Step 1 Setting the Hardware
COM-2PD(PCI)H, COM-4PD(PCI)H
9
Page 17
2. Setup
Using the Board under Linux
Using the Standard COM Driver Software COM Setup Disk
You can perform application program development using the "Standard COM Driver Software - COM Setup Disk" in the supplied CD-ROM. The procedure for using the software is described in the \Linux\Readmee.htm file.
See also the following parts of this manual as required.
This chapter Step 1 Setting the Hardware

Operating Systems Other than Windows or Linux

Refer to the following if using on an OS other than Windows or Linux.
This chapter Step 1 Setting the Hardware Chapter 3 Functions Chapter 6 About Hardware
COM-2PD(PCI)H, COM-4PD(PCI)H
10
Page 18
2. Setup

Step 1 Setting the Hardware

This section describes how to set the board and plug it on your PC. The board has some switches and jumper to be preset. Check the on-board switches and jumpers before plugging the board into an expansion slot. The board can be set up even with the factory defaults untouched. You can change board settings later.

Parts of the Board and Factory Defaults

Figure 2.1.to Figure 2.2 shows the names of major parts on the board. Note that the switch setting shown below is the factory default.
COM-2PD(PCI)H
COM-2PD(PCI)H
CN1
CN2
- Interface connector (CN1, CN2)
SW2
SW4
SW3SW5
SW1
BOARD ID
- Terminator setting swich (SW2, SW4)
ON
1 32 4
SW2
ON
1 32 4
SW4
Figure 2.1. Component Locations < COM-2PD(PCI)H >
Board ID setting switch
(SW1)
SW1
BOARD ID
9
8
7
A
6
B
5
C
4
D
3
E
2
F
0
1
- Data transmission mode setting swich (SW3, SW5)
3 2 4 56
1
ON
3 2 4 56
1
ON
SW3SW5
COM-2PD(PCI)H, COM-4PD(PCI)H
11
Page 19
2. Setup
COM-4PD(PCI)H
SW2
SW4
CN1
SW6
SW8
COM-4PD(PCI)H
SW3SW5SW7SW9
SW1
BOARD ID
Board ID setting switch
(SW1)
SW1
BOARD ID
8
9
7
A
6
B
5
C
4
D
3
E
2
F
0
1
- Data transmission mode setting swich (SW3, SW5, SW7, SW9)
- Interface connector (CN1)
- Terminator setting swich (SW2, SW4, SW6, SW8)
ON
1 32 4
SW2
ON
1 32 4
SW4
ON
1 32 4
SW6
ON
1 32 4
SW8
Figure 2.2. Component Locations < COM-4PD(PCI)H >
ON
ON
ON
ON
3 2 4 56
1
3 2 4 56
1
3 2 4 56
1
3 2 4 56
1
SW3SW5SW7SW9
COM-2PD(PCI)H, COM-4PD(PCI)H
12
Page 20
2. Setup

Setting the Board ID

If you install two or more boards on one personal computer, assign a different ID value to each of the boards to distinguish them.
The board IDs can be set from 0 - Fh to identify up to sixteen boards. If only one board is used, the original factory setting (Board ID = 0) should be used.
Setting Procedure To set the board ID, use the rotary switch on the boar d. Tur n the SW 1 knob to set the board ID a s show n
below.
SW1
BOARD ID
8
9
A
7
6
B
5
C
4
D
3
E
2
F
Factory setting:
0
1
Figure 2.3. Board ID Settings (SW1)
CAUTION
The PC detects the COM-2PD(PCI )H and COM-2PD(PCI) boards as the same board. If using both
boards on the same PC, set different board IDs on each board.
(Board ID = 0)
COM-2PD(PCI)H, COM-4PD(PCI)H
13
Page 21
2. Setup

Setting Transmission Mode

The data transfer mode setting switch is used to switch between full duplex and half duplex and to specify whether to use RTS/CTS in f ull duplex mode. Set the appropriate data transfer mode for the device with which you are communicating. SW3 sets the mode for channel 1, SW5 for channel 2, SW7 for channel 3, and SW9 for cha nnel 4. Bit s 1 - 5 ar e used t o set t he data tra nsfer mode. Always set bit 6 is to OFF.
Setting Procedure
Table 2.1. Setting Transmission Mode
Full
Tra nsm iss ion
mode
Half duplex
When there are no RTS and CTS
RTS CTS
duplex
When there are RTS and CTS
RTS CTS
Setting (SW1, SW5, SW7, SW9)
SW3, SW5, SW7, SW9 SW3, SW5, SW 7, SW9 SW3, SW5, SW7, SW9
TXD is only used for data transmission; the sending and receiving modes should be switched over using the modem control
COM-2PD(PCI)H is only SW3 and SW5.
register.
CAUTION
3 2 4 56
1
ON
3 2 4 56
1
ON
With above setting, RTS and CTS are connected in the board. Communication is available without wiring of RTS and CTS.
ON
To connect RTS and CTS to the other unit, communication is available.
Factory
3
setting
2 4 56 1
Do not use with bits 1 and 2 both set ON as this may result in damage to the board.
COM-2PD(PCI)H, COM-4PD(PCI)H
14
Page 22
2. Setup

Setting of Terminator

The terminator setting switch controls whether or not a terminator is inserted into each signal line. Set the terminators on or off in accordance with the devices with which you are communicating. The terminators on the board are 100Ω resistors. See Figure 2.4 for details on how to use terminators in a multi-drop (party line) connection.
SW2 sets the terminator for channel 1, SW4 for channel 2, SW6 for channel 3 and SW8 for channel 4. Each bit in the switch corresponds to a different signal line: bit 1 for RxD, bit 2 for CTS, bit 3 for TxD, and bit 4 for RTS.
Setting Procedure If you wish to use a terminator of other than 10 0Ω, set the terminator switch OFF and insert an external
terminator.
Table 2.2. Setting of Terminator
Not inserted
RTS
SW2,
TxD
SW4, SW6,
CTS
SW8
RxD
- Half-duplex
ON
Factory
3
setting
2 4 1
Ter min ato r
(Bit 3)
(A)
(B)
Figure 2.4. Party Line Connection
COM-2PD(PCI)H, COM-4PD(PCI)H
Ter mina tor
(Bit 3)
(D)(C)
[A or D]
SW2, SW4, SW6, SW8
[B or C]
SW2, SW4, SW6, SW8
Insert the
terminator
RTS TxD CTS RxD
ON
Not insert the
terminator
RTS TxD CTS RxD
ON
Not insert the
RTS TxD
3 2 4
CTS RxD
1
3 2 4
1
terminator
ON
3 2 4
1
15
Page 23
2. Setup
- Full-duplex
Terminator (Bit 3)
TxD
RxD
Terminator (Bi t 1)
Sets the RTS, CTS terminator to OFF.
Terminator (Bit 1)
Terminator (Bit 3)
Figure 2.5. Self-looping state of RTS,CTS
Terminator (Bit 3) Terminator (Bit 1)
TxD
RxD
Terminator (Bit 3)Terminator (Bit 1)
Terminator (Bit 2)Terminator (Bit 4)
RTS
CTS
RxD
TxD
RxD
TxD
CTS
RTS
SW2, SW4, SW6, SW8
SW2, SW4, SW6, SW8
Insert the
terminator
RTS TxD CTS RxD
Insert the
terminator
RTS TxD CTS RxD
ON
ON
Not insert the
terminator
RTS TxD
3
2 4
CTS RxD
1
Not insert the
RTS
3
TxD
2 4
CTS
1
RxD
ON
terminator
ON
3 2 4
1
3 2 4
1
Terminator (Bit 4)Terminator (Bit 2)
COM-2PD(PCI)H, COM-4PD(PCI)H
16
Page 24
2. Setup
The figure below shows the circuit associated with the data transfer mode setting switch and terminator setting switch.
162850
or Equivalent
SOUT
SW2, SW4, SW6, SW8
Data transmission
mode setting swich
134562
1342
Ter mi na tor
Ω
1/2W 100
Ter mina tor setting swich
SW3, SW5, SW7, SW9
TxD+ TxD-
SIN
CTS
RTS
DCD
DTR
DSR
RI
* COM-2PD(PCI)H is only SW2 to SW5.
Figure 2.7. Setting Switch Circuits
RxD+ RxD-
CTS+ CTS-
RTS+ RTS-
COM-2PD(PCI)H, COM-4PD(PCI)H
17
Page 25
2. Setup

Plugging the Board

(1) Before plugging the board, shut down the system, unplug the power code of you r PC. (2) Remove the cover from the PC so that the board can be mounted. (3) Plug the board into an expansion slot. (4) Attach the board bracket to the PC with a screw. (5) Put the cover back into place.
Applicable PCI bus slots PCI bus slots used in PCs have keys to prevent 5V and 3.3V PCI bus boards from being accidentally
plugged into wrong bus slots. This board can be plugged into both of the 5V and 3.3V PCI bus slots.
<PCI bus slot> <PCI bus board>
5-V PCI bus slot
3.3-V PCI bus slot
3.3V key
CAUTION
5V key
A :
Slit for 5-V PCI bus slot
B :
Slit for 3.3-V PCI bus slot
AB
- Do not touch the board's metal plated terminals (edge connector) with your hands. Otherwise, the board may malfunction, overheat, or cause a failure. If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not install or remove the board to or from the slot while the computer's power is turned on. Otherwise, the board may malfunction, overheat, or cause a failure. Doing so could cause trouble. Be sure that the personal computer or the I/O expansion unit power is turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed. Insufficiently energized boards could malfunction, overheat, or cause a failure.
- Power supply from the PCI bus slot at +5V is required.
COM-2PD(PCI)H, COM-4PD(PCI)H
18
Page 26
2. Setup

Step 2 Installing the Hardware

For using an expansion board under Windows, y ou have t o let the OS detect the I /O addresses and IRQ to be used by the board. The process is referred to as installing the hardware.
In the case of using two or more boards, make sure you install one by one with the Add New Hardware Wizard.

Turning on the PC

Turn on the power to your PC.
CAUTION
- Refer to the API-PAC(W32) "Hardware Installation Procedure (HWINST.CHM)" help file for the procedure to follow when using API-SIO in the " Driver library API-PAC(W32)". If using API-SIO from API-PAC(W32), install from API-PAC(W32) instead of from the supplied CD-ROM. If you install from the CD-ROM by mistake, uninstall API-SIO as described in "Uninstalling the Driver Software" in "Chapter 5 Software".
- The board cannot be properly installed unless the resources (I/O addresses and interrupt level) for the board can be allocated. Before attempting to install the board, first determ ine what PC resource s are free to use.
- The resources used by each board do n ot depend on the loca tion of the PCI bus sl ot or the board itsel f. If you remove two or m ore boar ds t hat ha ve alr eady been i nstall ed an d the n rem ount one of t hem on the computer, it is unknown that which one of the sets of resources previously assigned to the two boards is assigned to the remounted board. In this case, you must check the resource settings.
COM-2PD(PCI)H, COM-4PD(PCI)H
19
Page 27
2. Setup

Windows 8, 7

(1) Select “Devices and Printers” from the Start menu*1 and select the PC to which this board is
attached. Click on the device “PCI Serial Port” (or “PCI Simple Communication Controller”) and open its properties by clicking the [Properties] button.
*1 Please search for “Devices and Printers” case of Windows 8
* The category of the board you have just added is
displayed.
- PCI Serial Port (or “PCI Simple Communication Controller”)
COM-2PD(PCI)H, COM-4PD(PCI)H
20
Page 28
2. Setup
(2) In the “PCI Serial `Port Properites (or “PCI Simple Communications Controller Properites”) page,
click the [Change settings] button and edit the settings as an Administrator. Then click the [Update Driver...] button.
* The category of the board you have just added is
displayed.
- PCI Serial Port (or “PCI Simple Communications Controller Properites”)
2
1
(3) The Driver Installation Wizard is open. Click “Browse my computer for driver software”.
(4) Specify that folder on the CD-ROM which contains the setup information (INF) file to regis te r the
board.
- Source folder \PCI \ComDrv
You have now finished installing the hardware.
COM-2PD(PCI)H, COM-4PD(PCI)H
21
Page 29
2. Setup

Windows Server 2008, Windows Vista

(1) “Found New Hardware” wizard is open. Click “Locate and install driver software”.
* The category of the board you
have just added is displayed.
- PCI Serial port
(2) When the “Found New Hardware” window is displayed, insert the accompanying CD-ROM “COM
Setup Disk” into the CD-ROM drive. After a while, the device installation process begins.
You have now finished installing the hardware.
COM-2PD(PCI)H, COM-4PD(PCI)H
22
Page 30

Windows Server 2003, Windows XP, Windows 2000

(1) The “Found New Hardware Wizard” will be started.
Select “Install from a list or specific location”, then click on the [Next] button.
If you are using Windows NT 4.0, the “Add New Hardware Wizard” is not started. Go to Step 3 “Initializing the Software”.
2. Setup
(2) Specify that folder on the CD-ROM which contains the setup information (INF) file to regis te r the
board.
- Source folder \PCI\ComDrv
* The name of the board you have just added is displayed.
- COM-2PD(PCI)H/COM-2PD(PCI)
- COM-4PD(PCI)H
COM-2PD(PCI)H, COM-4PD(PCI)H
23
Page 31
2. Setup
CAUTION
In Windows XP, the Hardware Wizard displays the following alert dialog box when you have
located the INF file. This dialog box appears, only indicating that the releva nt dr iver has not passe d Windows Logo testing, an d it ca n be i gnored without developing any pro bl em wit h t he opera t i on o f the board.
In this case, click on the [Continue Anyway] button.
(3) Installation of the "Communication Port" starts next. If prompted for a file by the OS, specify the
location of the setup information (INF) file, as described above.
You have now finished installing the hardware.
* The name of the board you have just added is displayed.
- COM-2PD(PCI)H/COM-2PD(PCI)
- COM-4PD(PCI)H

The check method of the completion of hardware installation

(1) Select "System" from "Control Panel" and open [Device Manager]. (2) Check that the names of the boards you are using are registered correctly in the [Multifunction
adapters] fol der.
(3) Similarly, confirm that the COM ports have been added in the [Ports] folder.
COM-2PD(PCI)H, COM-4PD(PCI)H
24
Page 32
2. Setup

Step 3 Initializing the Software

This assigns COM ports to the serial ports on the board. You can also change a previously assigned COM port number to a different number.

For use under Windows 8, 7, Server 2008, Vista, XP , S erver 2003, 2000

On Windows 8, 7, Server 2008, Vista, XP, Server 2003, 2000, the COM ports are already assigned by the hardware installation step. Run Device Manager as described below if you wish to view or modify the COM port settings.
Start Device Manager (1) Select "System" from "Control Panel" and start [Device Manager].
* The name of the board you have just added is displayed.
- COM-2PD(PCI)H/COM-2PD(PCI)
- COM-4PD(PCI)H
(2) Check that the new COM ports are displayed in the [Ports] folder.
COM-2PD(PCI)H, COM-4PD(PCI)H
25
Page 33
2. Setup
Updating the Settings (1) If you wish to change a port number, open the properties page for the port and click the
[Advanced…] button under [Port Settings ]. (2) Use the [COM Port Number] combo box to modify the COM port number. (3) Clicking the [Advanced...] button opens the “Advanced Settings for COMn” window.
- Use the “COM Port Number” combo box to select the COM port number.
- By selecting the “Compulsion Half-Duplex”, the software settings are forced to switch from full-duplex communication to half-duplex.
- By selecting the “Used Serial Mice”, support for the serial mouse devices is enabled.
You have now finished installing the initial setting of Software.
COM-2PD(PCI)H, COM-4PD(PCI)H
26
Page 34
2. Setup

For use under Windows NT, Me, 98 or 95

Installing the setup information (INF) file. This procedure only applies to Windows NT. (1) Right click on the \PCI\ComDrv\COMNT_PI.INF file in the CD-ROM, then left click on the
[Install] button.
Invoking API-TOOL Configuration (1) Execute C:\CONTEC\Config.exe.
* The name of the board you have just added is displayed.
- COM-2PD(PCI)H/COM-2PD(PCI)
- COM-4PD(PCI)H
(2) Check that [COM-DRV Setting] appears on the screen.
If a different driver name appears, execute [Tools] - [COM-DRV].
(3) Windows NT, execute [Edit] - [Ad d Board] to register the board type, COM port number and related
settings. Alternatively, double click on a board type name that is already displayed on the screen and modify the COM port number and related settings. On other than Windows NT, double click on the board type na me that is already displayed on the screen and modify the COM po rt numbe r and re lated s ettin gs .
Updating the Settings (1) Select “Save settings to registry…” from the “File” menu. (2) After rebooting, the registered COM ports are now able to be used as standard COM ports.
You have now finished installing the initial setting of Software.
COM-2PD(PCI)H, COM-4PD(PCI)H
27
Page 35
2. Setup

Step 4 Checking Operations with the Diagnosis Program

Use the diagnosis program to check that the board and driver software work normally, thereby you can confirm that they have been set up correctly.

What is the Diagnosis Program?

These programs perform some simple checks on the board operation. Two programs are provided.
Terminal program (CTstCom.exe) Data entered from the keyboard is sent d irect ly from the por t. The functio n o f the pro gram is eq uiva lent
to the Hyper Terminal program provided with Windows.
Serial Communications Diagnostic Program (CommChk.exe) Performs actual communications and indicates whether the results are correct or not (error).
The following describes the procedure for testing using the serial communications diagnostic program (CommChk.exe).

Check Method

Obtain an RS-422A/485 cross ca ble. I f you d o not have a cr oss ca ble, you can use a switc h on the boar d to perform testing of a single COM port using loopback communications. See the figure below for the switch settings.
Switch setting for using a cross cable
COM-2PD(PCI)H: SW3, 5 COM-4PD(PCI)H: SW3, 5, 7, 9
3
2 4 56 1
ON
Switch settings for using loopback communications (without a cross cable)
COM-2PD(PCI)H: SW3, 5 COM-4PD(PCI)H: SW3, 5, 7, 9
3
2 4 56 1
ON
COM-2PD(PCI)H, COM-4PD(PCI)H
28
Page 36
2. Setup

Using the Diagnosis Program

Starting the Diagnosis Program Run\Utility\CommChk\CommChk.exe from the supplied CD-ROM.
Communication Settings COM Setup: Specify the number of the COM port you wish to test.
If connecting two COM ports via a cross cable, specify the respective COM ports in [Device1] and [Dev ic e2] . When performing loopback communications on a single COM port, set the same port number in both [Device 1] and [Device 2].
Communication Settings: Specify the [Bits / Second], [Data bits] and other settings you wish to use.
COM-2PD(PCI)H, COM-4PD(PCI)H
29
Page 37
2. Setup
Start test Click the [Start] button to start the test using the specified conditions.
View test result The test result is displayed in the [Message] window.
A successful completion message appears if the test completed OK.
COM-2PD(PCI)H, COM-4PD(PCI)H
30
Page 38
2. Setup

Setup Troubleshooting

Symptoms and Actions

The board cannot be initialized. [Windows NT 4.0] The driver may not yet be activated. When using the board under an OS not compliant with Plug and Play, such as Windows NT 4.0, make
sure that the [PnP OS] BIOS option has been set to [NO], [disable], or [Do not use]. For details on BIOS settings, refer to the user’s guide for your PC.
Incorrect driver software was installed by mistake [Windows 8, 7, Server 2008, Vista, XP, Server 2003, 2000]
The API-SIO software from the " Driver library API-PAC(W32)" cannot be installed in the PC at the same time as the "Standard COM Driver Software COM Setup Disk" from the supplied CD-ROM. The COM Setup Disk and the API-SIO software from API-PAC(W32) are intended for different purposes. Please only use the software that is applicable for your intended use. If the incorrect software is installed by mistake, please uninstall the incorrect software then install the correct software.

If your problem cannot be resolved

Contact your retailer.
COM-2PD(PCI)H, COM-4PD(PCI)H
31
Page 39
2. Setup
COM-2PD(PCI)H, COM-4PD(PCI)H
32
Page 40
3. External Connection
3. External Connection
This chapter describes the interface connectors on the board. Check the information available here when connecting an external device. In addition to connecting directly to the connector on the board, you can also connect external devices
via a distribution cable or distribution unit.
- Connecting directly to the port connector.
- Using a distributio n cable (COM-4 PD(PCI)H)
COM-2PD(PCI)H, COM-4PD(PCI)H
33
Page 41
3. External Connection

In the case of COM-2PD(PCI)H

Connecting directly to the port connector

If connecting an external device directly from the co nnector on the board, use a CN5- D9F or equivalent connector.
Pin Assignment
Screw nut: UNC#4-40(inch screw)
6
CN1
9
1
5
6
CN2
9
1
5
- Connector used DELC-J9PAF-20L9 (mfd. by JAE, Male)equivalent
- Applicable connector 17JE-13090-02(D8C) (mfd. by DDK, Female)
CN5-D9F (mfd. by CONTEC, Female) (Five connector set)
Figure 3.1. Interface Connector < COM-2PD(PCI)H >
1
-
Clear to Send
Clear to Send+ CTS1+
Receive Data+ RxD1+
Receive Data-RxD1
Clear to Send
Clear to Send+ CTS2+
Receive Data+ RxD2+
Receive Data-RxD2
CTS1
-
CTS2
-
-
-
-
SG1 Signal Ground
6
RTS1+ Request to Send+
2
7
RTS1
3
8
4
TxD1+ Transmit Data+
9
TxD1
5
CN1
1
SG2 Signal Ground
6
RTS2+ Request to Send+
2
7
RTS2
3
8
4
TxD2+ Transmit Data+
9
TxD2
5
CN2
-
Request to Send
-
Tra ns mi t D at a
-
Request to Send
-
Tra ns mi t D at a
-
-
-
-
Figure 3.2. Pin Assignments of Interface Connector < COM-2PD(PCI)H >
CAUTION
For TxD, RxD, and RTS, even numbered pins are + and odd numbered pins are -.
For CTS, even numbered pins are - and odd numbered pins are +. This is the opposite of the other signals, but is not a misprint.
COM-2PD(PCI)H, COM-4PD(PCI)H
34
Page 42
3. External Connection

In the case of COM-4PD(PCI)H

When using a COM-4PD(PCI)H, an alternative to connecting an external device directly to the connector on the board is to use a connection conversion cable.

Using the 9-pin D- S UB Co nnect or Conversion Cables

Use a PCE37/9PS connection conversion cable (purchased separately) to connect to external devices after dividing into four 9-pin D-SUB male connector channels.
SG1
SG4
CH1
-
5
9
RxD1 RxD1+ CTS1+ CTS1
RxD4 RxD4+ CTS4+ CTS4
-
-
-
-
4
8
-
3
7
2
6
1
. . .
CH4
5
-
9
4
8
3
-
7
2
6
1
- Cable 9-conductor shielded cable Cable length : 250mm
- Connector used 37-pin D-SUB, male connector Thumb screw : UNC #4-40 (inch screw)
Conductor size : AWG#28
- Connector used 9-pin D-SUB, male connector Thumb screw : UNC#4-40(inch screw)
- Applicable connectors 17JE-13090-02(D8C) (mfd. by DDK, Female)
Figure 3.3. Specification of “PCE37/9PS”
CH1
CH2
CH3
CH4
TxD1
TxD1+ RTS1 RTS1+
TxD4 TxD4+ RTS4 RTS4+
Connection conversion (Option) Connection Conversion Cable (37M→9M x 4, 250mm) PCE37/9PS
CAUTION
The SG lines for CH1 to CH4 of the option cable are not connected to the cable shielding. However,
the frame of each connector is connected to the shielding. This means that the cable shielding is connected to the body of the PC via the frame of the interface connector. Note that the option cable is not a twisted-pair cable.
COM-2PD(PCI)H, COM-4PD(PCI)H
35
Page 43
3. External Connection

Connecting it directly from the on-board connector

If connecting an external device directly from the connector on the board, use an optional connector CN5-D37M for creating your own cables.
Pin Assignment
Screw nut: UNC#4-40(inch screw)
37
20
19
- Connector used
1
37-pin D-SUB, female connector DCLC-J37SAF-20L9 (mfd. by JAE)equivalent
- Applicable connector
17JE-23370-02(D8C) (mfd. by DDK, Male) FDCD-37P (mfd. by HIROSE, Male) DC-37P-N (mfd. by JAE, Male)
CN5-D37M (mfd. by CONTEC, Male) (Five connector set)
Figure 3.4. Interface Connector < COM-4PD(PCI)H >
CH1 Request to Send + RTS1+ CH1 Receive Data + RxD1+ CH1 Transmit Data CH1 Signal Ground SG 1 CH2 Request to Send CH2 Clear to Send + CTS2+ CH2 Clear to Send CH2 Transmit Data + TxD2+ CH2 Receive Data CH4 Request to Send + RTS4+ CH4 Receive Data + RxD4+ CH4 Transmit Data CH4 Signal Ground SG 4 CH3 Request to Send CH3 Clear to Send + CTS3+ CH3 Clear to Send CH3 Transmit Data + TxD3+ CH3 Receive Data
-
TxD1
-
RTS2
-
CTS2
-
RxD2
-
TxD4
-
RTS3
-
CTS3
-
RxD3
37 36
-
35 34
-
33 32
-
31 30
-
29 28 27
-
26 25
-
24 23
-
22 21
-
20
CN1
CTS1+ CH1 Cl ear to Send +
18 17 16 15 14 13 12 11 10
9 8 7 6 5 4 3 2 1
-
CH1 Clear to Send
CTS1 TxD1+ CH1 Transmit Data +
-
CH1 Request to Send
RxD1 RTS2+ CH2 Request to Send + RxD2+ CH2 Receive Data +
-
CH2 Transmit Da ta
TxD2 SG 2 CH2 Signal Ground
-
CH4 Request to Send
RTS4 CTS4+ CH4 Cl ear to Send +
-
CH4 Clear to Send
CTS4 TxD4+ CH4 Transmit Data +
-
CH4 Receive Data
RxD4 RTS3+ CH3 Request to Send + RxD3+ CH3 Receive Data +
-
CH3 Transmit Da ta
TxD3 SG 3 CH3 Signal Ground N.C.
CH1 Request to Send
RTS1
19
-
-
-
-
-
-
-
-
-
Figure 3.5. Pin Assignments of Interface Connector < COM-4PD(PCI)H >
COM-2PD(PCI)H, COM-4PD(PCI)H
36
Page 44
3. External Connection

Types of Cable and Example Connections

The figures below show examples of how to connect the cable for the board. The RS-422A/485 interface works based on a differential signal whereby the signal is carried by the potential difference between two lines (+ and -). Using twisted pair cable is recommended to improve resistance to noise.
TxD+
TxD
RxD+
RxD
RTS+
RTS
CTS+
CTS
SG
-
-
-
-
TxD+
TxD
RxD+
RxD
RTS+
RTS
CTS+
CTS
SG
-
-
-
-
External device
Figure 3.6. Example Connection RTS and CTS to a External Device in Full Duplex
TxD+
TxD
RxD+
RxD
SG
-
-
TxD+
TxD
RxD+
RxD
SG
-
-
External device
Figure 3.7. Example Connection Oneself loop to RTS and CTS in Full Duplex
TxD+
TxD
SG
-
TxD+
TxD
SG
-
External device
Figure 3.8. Example Connection in Half Duplex
CAUTION
If connecting between externa l devices a nd this board with faulty wiri ng, it will becom e the cause of
failure.
COM-2PD(PCI)H, COM-4PD(PCI)H
37
Page 45
3. External Connection
COM-2PD(PCI)H, COM-4PD(PCI)H
38
Page 46
4. Functions
4. Functions
This section describes the functions of the board.

Communication Function

Serial Data Transmission

Sends and receives data in accordance with the RS-422A/485 standard. The baud rate for each channel can be set independently in the range 2 to 921 ,600bps by software.

RS-422A/485 Control Lines

All ports include the RTS+, RTS-, CTS+, and CTS- control lines. The lines can be controlled or monitored by software from the application

Send and Receive Data Buffers

Each channel has a separate 128-byte send and 128-byte receive buffer. The buffers operate as FIFO buffers and help reduce the load on the CPU for high-speed
communications or system operation. The data buffer settings (Use FIFO ON/OFF and FIFO trigger size) are set by the Device Manager
(on Windows 8, 7, Server 20 08, Vista, XP, Server 2003, 2000) and by the API-TOOL configuration (on Windows NT, Me, 98, and 95).
The FIFO trigger size specifies the data buffer size and determines the timing for generating hardware interrupts.
Setting a large FIFO trigger size lightens the load on the CPU by reducing the number of hardware interrupts generated by sending or receiving data.
However, as data is not actually sent or received until a certain amount of data has accumulated, the timing at which the data reaches the opposing device is slightly delayed. Similarly, there is also a delay in the timing between data being received and the data being passed the application.
Alternatively, setting a small FIFO trigger size or disabling FIFO operation increases the speed of data sending and receiving but increases the load on the CPU and risks received data being missed.
As the FIFO buffer size is variable, you can adjust this setting to achieve optimum performance for your system.
COM-2PD(PCI)H, COM-4PD(PCI)H
39
Page 47
4. Functions

Setting the Baud Rate

The output baud rate can be s et by sett ing the appr opriate va lue to the Baud Rate Genera tor re gister. The available setting range depends on which clock mode is used.
Clock 3 mode: 15 - 921,600bps Clock 2 mode: 8 - 460,800bps Clock 1 mode: 4 - 230,400bps Clock 0 mode: 2 - 115,200bps
However, some baud rate values do not have a corresponding Baud Rate Generator register setting. If the result of substitutin g the baud r ate into the equation be low is an integer, then that baud rate can be set. If the result contains a fractional part, the baud rate cannot be set.
Clock 3 mode 921600 ÷ Desired baud rate = Division register setting value Ex.) 921600 ÷ 9600bps = 96 (As the result is an integer, this baud rate can be set.) 921600 ÷ 128000bps = 7.2 (As the result contains a fractional part, this baud rate cannot be set.)
Clock 2 mode 460800 ÷ Desired baud rate = Division register setting value Ex.) 460800 ÷ 9600bps = 48 (As the result is an integer, this baud rate can be set.) 460800 ÷ 128000bps = 3.6 (As the result contains a fractional part, this baud rate cannot be set.)
Clock 1 mode 230400 ÷ Desired baud rate = Division register setting value Ex.) 230400 ÷ 9600bps = 24 (As the result is an integer, this baud rate can be set.) 230400 ÷ 128000bps = 1.8 (As the result contains a fractional part, this baud rate cannot be set.)
Clock 0 mode 115200 ÷ Desired baud rate = Division register setting value Ex.) 115200 ÷ 9600bps = 12 (As the result is an integer, this baud rate can be set.) 115200 ÷ 76800bps = 1.5 (As the result contains a fractional part, this baud rate cannot be set.)
CAUTION
The "API Function Library API- PAC(W32)" and the "Standard COM Dri ver S o ft ware COM Se tup
Disk" from the supplied CD-ROM use "Clock mode 3". (Fixed)
CAUTION
As Visual Basic's communication control (MSComm) accepts any available baud rate settings,
using the MSComm functionalities limits the rate to 115,200bps maximum. For setting the baud rate higher than 115,200bps using Visual Basic, refer to the VB sample program included in the accompanying CD-ROM “Standard COM Driver Software COM Setup Disk”.
COM-2PD(PCI)H, COM-4PD(PCI)H
40
Page 48
4. Functions
Refer to the following baud rate setting examples. Baud rates other than those listed below can also be set if they produce a valid setting value in the equation described above.
Table 4.1. Baud Rate Generator Programming Table
Clock 0 mode
Output
baud rate
2 57600 ---
4 28800 --- 57600 ---
5 23040 --- 46080 ---
8 14400 --- 28800 --- 57600 ---
15 7680 --- 15360 --- 30720 --- 61440 ---
50 2304 --- 4608 --- 9216 --- 18432 ---
75 1536 --- 3072 --- 6144 --- 12288 ---
110 1047 0.026 2094 0.026 4189 0.0022 8378 0.0022
134.5 857 0.058 1713 0.0006 3426 0.0006 6852 0.0006
150 768 --- 1536 --- 3072 --- 6144 ---
300 384 --- 768 --- 1536 --- 3072 ---
600 192 --- 384 --- 768 --- 1536 ---
1200 96 --- 192 --- 384 --- 768 ---
1800 64 --- 128 --- 256 --- 512 ---
2000 58 0.68 115 0.17 230 0.17 461 0.04
2400 48 --- 96 --- 192 --- 384 ---
3600 32 --- 64 --- 128 --- 256 ---
4800 24 --- 48 --- 96 --- 192 ---
7200 16 --- 32 --- 64 --- 128 ---
9600 12 --- 24 --- 48 --- 96 ---
14400 8 --- 16 --- 32 --- 64 ---
19200 6 --- 12 --- 24 --- 48 ---
28800 4 --- 8 --- 16 --- 32 ---
38400 3 --- 6 --- 12 --- 24 ---
57600 2 --- 4 --- 8 --- 16 ---
76800 3 --- 6 --- 12 ---
115200 1 --- 2 --- 4 --- 8 ---
153600 3 --- 6 ---
230400 1 --- 2 --- 4 ---
460800 1 --- 2 ---
921600 1 ---
(1.8432MHz)
Baud Rate
Generator
register
Setup error
(%)
Clock 1 mode
(3.6864MHz)
Baud Rate
Generator
register
Clock 2 mode (7.3728MHz)
Baud Rate
Setup
Generator
error
(%)
register
Setup
error
(%)
Clock 3 mode
(14.7456MHz)
Baud Rate
Generator
register
Setup
error
(%)
COM-2PD(PCI)H, COM-4PD(PCI)H
41
Page 49
4. Functions

Automatic RTS Control Functions

This function applies to half duplex mode communications. As half duplex means that the same line i s used for sending and receiving, the RTS and CTS signals are
used to switch between sending and receiving. Normally, RTS is set by writing to the corresponding register bit, but on this board it is controlled by hardware. This reduces the load on the CPU.
If you wish to use this fun ct ion with th e "St and a rd CO M D riv er Sof t wa re CO M Se tup Dis k" fro m th e CD-ROM, it can be specified by the user application.
Visual C++ Use the SetCommState() Win32 communications API routine to set [RTS_CONTROL_TOGGLE
(0x03)] in the fRtsControl member of the DCB structure.
CAUTION
In Visual Basic, half duplex communication cannot be used via the communication control
(MSComm) as MSComm does not support setting this function.

Other Functions

Channel Isolation/Bus Isolation

The communication lines for each channel are electrically isolated from each other and from the PC. As isolation is provided between channels as well as isolation of the bus, this prevents electrical
interference between channels as well as between the PC and external circuits. This means you can safely use the boards in environments where noise is likely to be generated on the
communication lines and where you are concerned about this causing incorrect operation or damage to the PC.

Surge Protection

As surge protection is provided on all RS-422A/485 control lines, you can safely use the boards in environments where you are concerned about surges causing incorrect operation or damage to the PC.
COM-2PD(PCI)H, COM-4PD(PCI)H
42
Page 50
5. About Software
5. About Software
The "Standard COM Driver Software COM Setup Disk" from the supplied CD-ROM provides the following functions.
- Operation under Windows and Linux.
- The serial ports can be used in the same way as the standard COM ports on the PC.
-
The boards can be used for all types of se rial communications such as for remote access s ervi ce ( R AS) and uninterruptible power supply (UPS) applications.
-
Under Windows, the serial ports can be access ed using the standard Win32 API communication routines (CreateFile( ), WriteFile( ), ReadFile( ), and SetCommState( ), etc.)
-
The serial ports are also compatible with the Visual Basic communication control (MSCo mm).
- Supports the communication class of .NET Framework (SerialPort class).
- Under Linux, the software functions as a standard Linux tty driver. The standard open( ), close( ), read( ), and write( ), etc. routines are supported.
Refer to the \PCI\ Readmee.txt and \Linux\ Readmee.htm files on the CD-ROM for details.

About Sample programs

Sample programs are provided in the \Samples folder on the CD-ROM. Use the sample programs for reference and testing when developing software.
Visual Basic sample programs (1) Transmit/Receive sample
- Sends data entered from the keyboard and displays received data on the screen.
- Source folder: \Samples\Vb folder
Visual Basic 2005 sample programs (1) Transmit/Receive sample
- Sends data entered from the keyboard and displays received data on the screen.
- Source folder: \Samples\VB.NET folder
Visual C# 2005 sample programs (1) Transmit/Receive sample
- Sends data entered from the keyboard and displays received data on the screen.
- Source folder: \Samples \VCS folder
COM-2PD(PCI)H, COM-4PD(PCI)H
43
Page 51
5. About Software
Visual C++ sample programs (1) Transmit sample
- Sends data entered from the keyboard. Execute from the command prompt.
- Source folder: \Samples\Vc\Comsend.c file (2) Receive sample
- Displays received data on the screen.
- Source folder: \Samples \Vc\Comread.c file
COM-2PD(PCI)H, COM-4PD(PCI)H
44
Page 52
5. About Software

Uninstalling the driver software

To uninstall the driver software installed from the COM Setup Disk, follow the procedure given below. For uninstall the driver from a Linux machine, refer to the \Linux\Readmej.htm file on the bundled CD-ROM.
About the uninstall function The install function deletes the COM-DRV driver and registry information, available from
[Add/Remove Programs]. This function can be used only in Windows XP/Server 2003/2000. In other OSs, you have to uninstall
the driver manually.

Windows XP, Server 2003, 2000

(1) Open the Control Panel and launch Device Manager from the [System] applet. (2) Expand [Multifunction adapters] and delete [CONTEC Co., Ltd-XXXXXXXXXX] (installed
hardware name).
(3) Start [Add/Remove Programs] from the Control Panel. (4) Select [CONTEC COM-DRV(WDM) driver] from the list of applications, then click the
[Add/Remove] button to automatically start the uninstall procedure.

Windows 8, 7, Server 2008, Vista

(1) Open the Control Panel and launch Device Manager from the [System] applet. (2) Expand [Multifunction adapters] and delete [CONTEC Co., Ltd-XXXXXXXXXX] (installed
hardware name). To also delete all the driver files, check [Remove this device software].

Windows Me, 98, 95

CAUTION
[CONTEC COM-DRV(WDM) driver] is not listed by [Add/Remove Programs].
Take the following steps to manu all y un inst all th e dr ive r sof twa re. (1) Start Config.exe and , then select [COM-DRV] from the [Tools] menu.
If any piece of hardware (board) has been registered, delete it. If not, leave the tool as it is. (2) Open the Control Panel and launch Device Manager from the [System] applet. (3) Delete [CONTEC Co., Ltd-XXXXXXXXXX] (installed hardware name) displayed on the
[Multifunction adapters].
(4) Start Windows Explorer. (5) Select [Folder Options] from the [Tools] menu. (6) Click the [View] tab. (7) Check [Show hidden files and folders] (or [Show all files]), then click [OK]. (8) Right-click on the \Windows\Inf folder and choose [Search].
COM-2PD(PCI)H, COM-4PD(PCI)H
45
Page 53
5. About Software
(9) Enter the model name of the hardware used (for example, COM-2PD(PCI)H) in the [Containing
text:] field, then click the [Search Now] button. Be careful not to enter text in the [Search for files or folders named:] (or [Name]) field. (10) Delete all the files detected by the search. (11) Delete files from the C:\Contec folder. (12) Delete ComDrv95.vxd from the \Windows\system folder.

Windows NT

Take the following steps to manu all y un inst all th e dr ive r sof twa re. (1) Delete files from the C:\Contec folder. (2) Delete ComDrv.sys from the \Winnt\system32\drivers folder.
Installing the API-PAC(W32) API-SIO Driver in the Windows Vista/XP/Server 2003/2000 Environment
(1) Run SETUP.EXE from the API-PAC(W32) CD-ROM or from the file (* hereafter
API-PAC(W32)) downloaded fro m th e Con t ec' s down lo ad site to inst all the AP I-SIO d river . (2) Reboot your OS, and the Hardware Wizard will be started. (3) During the installation, you will be prom pted for an INF file. S pecify the API-PAC(W32) INF
folder designated for the OS and device type in use. (4) Run Config.exe to register the board.
[Notes]
If you install API-SIO from the API-PAC(W32) CD-ROM in Windows XP, uncheck [Search removable media (floppy, CD-ROM...)] at the [Please choose your search and installation options.] prompt. Leaving the option checked prevents the API-SIO driver from being installed normally. If you have installed it with that option checked, take the steps for "Uninstalling the Driver Software" again as described above.
COM-2PD(PCI)H, COM-4PD(PCI)H
46
Page 54

CD-ROM Directory Structure

\ |– Linux Linux device driver (for PCI boards and PC cards only) |– PCCARD PC card related files |– PCI PCI board related files | |– ComDrv Windows device driver and INF files, etc. | |– InstDoc Installation instructions for each OS. |– Samples Various sample programs | |– VB Sample program for Visual Basic | |– VC Sample program for Visual C++ | |– VB.NET Sample program for VisualBasic.NET (for SerialPortClass) | |– VCS Sample program for VisualC.NET (for SerialPortClass) |– USB USB related files |– UsersGuide Manual of hardware (PDF) |– UTILITY Various utilities |– CommChk Self diagnostic program (Loopback communication test) |– CTstCom Self diagnostic program (Terminal utility)
5. About Software
COM-2PD(PCI)H, COM-4PD(PCI)H
47
Page 55
5. About Software
COM-2PD(PCI)H, COM-4PD(PCI)H
48
Page 56
6. About Hardware
6. About Hardware
This chapter provides hardware specifications and hardware-related supplementary information.

For detailed technical information

For further detailed technical information (“Technical Reference” including the information such as an I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to call for it.
COM-2PD(PCI)H, COM-4PD(PCI)H
49
Page 57
6. About Hardware

Hardware specification

Tables 6.1 - 6.2 list the board specifications. COM-2PD(PCI)H
Table 6.1. Specification
Item Specification
Number of channels 2 channels
Interface type RS-422A/RS-485
Isolation Channel Isolation/Bus Isolation
Isolation voltage Channel Isolation: 1000VDC, Bus Isolation: 1000VDC
Transfer method Asynchronous serial transfer (Full/Half duplex)
Baud rate 2 - 921,600bps *1 *2
Data length 5, 6, 7, 8 bits 1, 1.5, 2 stop bits *1
Parity check Even, Odd, Non-parity *1
Controller chip 162850 or equivalent
(Each channel has 128-byte receive and 128-byte transmit FIFO buffers.)
Connecting distance 1200m(Typ.) *3
Interrupt requests 1 level use *4
I/O address Any 32-byte boundary
Power consumption 5VDC 550mA (Max.)
Operating temperature 0 - 50°C, 10 - 90%RH (No condensation)
Bus specification PCI (32-bit, 33MHz, Universal key shapes supported *5*6)
Dimension (mm) 121.69(L) x 105.68(H) *7
Connector used 9-pin D-SUB connector, DELC-J9PAF-20L9 [mfd. by JAE, M(male) type]
equivalent
Weight 95g
*1 These items can be set by software. For the "API Function Library API-PAC(W32)" and the
"Standard COM Driver Software COM Setup Disk" on the supplied CD-ROM, the range is 15 ­921,600 bps.
*2 Data transmission at high speed may not be performed normally depending on the environment
including the type of status of connected material of cable and environment.
*3 The table below lists an example of the relationship between baud rate and communication distance.
Communication
distance
300m 115,200bps
600m 57,600bps
900m 19,200bps
1200m 9,600bps
Communication cable: 28AWG, double shielded cable, twisted pairs used for each +/- signal line.
*4 A single interrupt signal "INTA" is output as a collection of interrupt input signals from two
channels.
*5 This board requires power supply at +5 V from an expansion slot (it does not work on a machine
with a +3.3V power supply alone). *6 If the board No. is 7195, PCI bus specification is 32bit, 33MHz, 5V.
*7 If the board No. is 7195, Dimension is 121.69(L) x 106.68(H).
Baud rate
COM-2PD(PCI)H, COM-4PD(PCI)H
50
Page 58
6. About Hardware
COM-4PD(PCI)H
Table 6.2. Specification
Item Specification
Number of channels 4 channels
Interface type RS-422A/RS-485
Isolation Channel Isolation/Bus Isolation
Isolation voltage Channel Isolation: 500VDC, Bus Isolation: 1000VDC
Transfer method Asynchronous serial transfer (Full/Half duplex)
Baud rate 2 - 921,600bps *1 *2
Data length 5, 6, 7, 8 bits
1, 1.5, 2 stop bits *1
Parity check Even, Odd, Non-parity *1
Controller chip 162850 or equivalent
(Each channel has 128-byte receive and 128-byte transmit FIFO buffers.)
Connecting distance 1200m(Typ.) *3
Interrupt requests 1 level use *4
I/O address Any 32-byte boundary
Power consumption 5VDC 950mA (Max.)
Operating temperature
Bus specification PCI (32-bit, 33MHz, Universal key shapes supported *5*6)
Dimension (mm) 121.69(L) x 106.68(H)
Connector used 37-pin D-SUB, female connector, DCLC-J37SAF-20L9 (mfd. by JAE) equivalent
Weight 95g
*1 These items can be set by software.
For the "API Function Library API-PAC(W32)" and the "Standard COM Driver Software COM Setup Disk" on the supplied CD-ROM, the range is 15 - 921,600 bps.
*2 Data transmission at high speed may not be performed normally depending on the environment
including the type of status of connected material of cable and environment.
*3 The table below lists an example of the relationship between baud rate and communication distance.
Communication
distance
300m 115,200bps
600m 57,600bps
900m 19,200bps
1200m 9,600bps
Communication cable: 28AWG, double shielded cable, twisted pairs used for each +/- signal line.
*4 A single interrupt signal "INTA" is output as a collection of interrupt input signals from two
channels.
*5 This board requires power supply at +5 V from an expansion slot (it does not work on a machine
with a +3.3V power supply alone).
*6 If the board No. is 7194, PCI bus specification is 32bit, 33MHz, 5V.
0 - 50°C, 10 - 90%RH (No condensation)
Baud rate
COM-2PD(PCI)H, COM-4PD(PCI)H
51
Page 59
6. About Hardware
Board Dimensions [COM-2PD(PCI)H, COM-4PD(PCI)H]
121.69(L)
106.68(H)
[mm]
The standard outside dimension (L) is the distance from the end of the board to the outer surface of the slot cover.
[ COM-2PD(PCI)H<No.7195A, No.7195B> ] [ COM-4PD(PCI)H <No.7194A, No.7194B > ]
121.69(L)
121.69(L)
105.68(H)
The standard outside dimension (L) is the distance from the end of the board to the outer surface of the slot cover.
[mm]
106.68(H)
The standard outside dimension (L) is the distance from the end of the board to the outer surface of the slot cover.
[mm]
COM-2PD(PCI)H, COM-4PD(PCI)H
52
Page 60

Circuitry Diagrams

SP491
6. About Hardware
TxD, RTS
RxD, CTS
47kΩ
6.2kΩ
6.2kΩ
47kΩ
100Ω
100
Ω
Figure 6.1. Circuitry Diagrams RS-422A/485 in Full Duplex
SP491
TxD, RxD
Ω
47k
6.2kΩ
100Ω
6.2kΩ
47kΩ
Figure 6.2. Circuitry Diagrams RS-422A/485 in Half Duplex
COM-2PD(PCI)H, COM-4PD(PCI)H
53
Page 61
6. About Hardware

Differences from COM-2PD(PCI)

The COM-2PD(PCI)H is the upgrade d versio ns of the c onvent ional COM-2 PD(PCI) board, res pectively . The COM-2PD(PCI)H is backward compatible with the COM-2PD(PCI) and can be used in the same way in principle.
In specifications, the COM-2PD(PCI)H board is different from the COM-2PD(PCI) board as listed below.
For details on the on-board controller chip, refer to the data sheet from EXAR Corporation.
Table 6.3. Differences in Specifications
COM-2PD(PCI) COM-2PD(PCI)H
FIFO buffer for transmission and reception
Controller chip 16552 or equivalent 162850 or equivalent
Power consumption 670mA 550mA
Weight 110g 95g
Table 6.4. Differences in Hardware
16-byte 128-byte
COM-2PD(PCI)
78
COM-2PD(PCI)H
Data transmission mode setting swich
Term ina tor
setting swich
3 2 4 56
SW2
1
ON
(Data transfer mode settings for CH1)
78
3
SW3
2 4 56
(Data transfer mode
1
ON
settings for CH2)
The meaning of each switch bit is the same for each model. See the data transfer mode settings in Chapter 2 for details.
78
3 2 4 56
SW2
1
ON
(Terminator settings for CH1)
78
3
SW3
2 4 56
(Terminator settings for CH2)
1
ON
3 2 4 56
SW3
1
ON
(Data transfer mode settings for CH1)
3
SW5
2 4 56
(Data transfer mode
1
ON
settings for CH2)
3 2 4
SW2
1
ON
(Terminator settings for CH1)
3
SW4
2 4
(Terminator settings for CH2)
1
ON
6, 7 bit 1, 2 bi t
The meaning of each of the above switch bits is the same. On the COM-2PD(PCI)H, the terminators for transmission (TxD and RTS) are set by bits 3 and 4. See the terminator settings in Chapter 2 for details.
COM-2PD(PCI)H, COM-4PD(PCI)H
54
Page 62
COM-2PD(PCI)H COM-4PD(PCI)H
User’s Guide
CONTEC CO.,LTD. July 2013 Edition
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/
No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. [07112013]
[07312002] Management No. A-46-518 [07112013_rev6] Parts No. LZC7775
Loading...