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

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.

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

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

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
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
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
COM-2PD(PCI)H, COM-4PD(PCI)H
vi

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
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
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
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
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
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
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
1. Before Using the Product
COM-2PD(PCI)H, COM-4PD(PCI)H
8
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
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
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
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
Loading...
+ 43 hidden pages