Contec COM-1(PM), COM-1D(PM) User Manual

Page 1
PC-HELPER
RS-232C(1ch) Serial I/O Card
COM-1(PM)
RS-485(1ch) Serial I/O Card
COM-1D(PM)
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 list, that your package is complete. If you discover damage d or missing item s,
contact your retailer.
Product Configuration List
- PC Card [COM(PM)]…1
- Connection cable(One of the following)…1
[CB-1R(PM)] (In the case of COM-1(PM)) [CB-1D(PM)] (In the case of COM-1D(PM))
- PC-Card Attachment (CARD-AT1)…1set
- Connector…1
- This User’s Guide…1
- COM Setup Disk(CD-ROM)…1
PC Card
Connector Guide
COM-1(PM), COM-1D(PM)
Connection cable
Guide
PC-Card Attachment
CD
i
Page 3

Copyright

Copyright 1995 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 or 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 an d product names are trademarks of their respective holder.
ii
COM-1(PM), COM-1D(PM)
Page 4

Table of Contents

Check Your Pack ag e............................................................................................................................i
Copyright ............................................................................................................................................ii
Trademarks ......................................................................................................................................... ii
Table of Con tents...............................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the P C Card .............................................................................................................. ................ 1
Features........................................................................................................................................ 1
Support Softw ar e ......................................................................................................................... 2
Cable & Connect or ( Op ti on ) ...................................................................................................... 3
Customer Supp o rt ............................................................................................................................... 4
Web Site....................................................................................................................................... 4
Limited Thre e -Y ea r W ar ra n t y ............................................................................................................4
How to Obtain Serv ic e ....................................................................................................................... 4
Liability............................................................................................................................................... 4
Safety Precau t ion s .............................................................................................................................. 5
Safety Infor mat i on ....................................................................................................................... 5
Handling Pre ca u tio n s................................................................................................................... 6
Environment................................................................................................................................. 7
Inspection..................................................................................................................................... 7
Storage ......................................................................................................................................... 7
2. SETUP 9
What is Setup? .................................................................................................................................... 9
Using the PC card under Windows Using the Standard COM Driver Software COM Setup
Disk.............................................................................................................................................. 9
Using the PC ca rd un d e r W ind o ws Us in g the D riv er Lib r ar y P a ck ag e API-PAC(W32)........... 9
Using the PC card under Linux Using the Standard COM Driver Software COM Setup Disk 10
Operating Syst e ms Ot h e r th an W in do ws o r Lin ux ................................................................... 10
Step 1 Setting th e H ar d wa r e .............................................................................................................11
Connecting the PC Ca rd to th e Co nn ec t er C ab l e ...................................................................... 11
Fitting the PC Card Attachment ................................................................................................ 12
Insert the PC Ca rd...................................................................................................................... 13
Setting the Da ta Tr an s mis s io n Mod e an d T er min a to r on t h e C O M-1 D( P M)........................... 14
Step 2 Installi ng th e H ard w a re ......................................................................................................... 17
Turning on the PC...................................................................................................................... 17
Setting with th e Fou n d Ne w H a rd war e W iz a rd ........................................................................ 18
The check method of th e co mpl et ion of ha rdw are in st a ll ation................................................. 19
COM-1(PM), COM-1D(PM)
iii
Page 5
Step 3 Initi alizing the S o f tware........................................................................................................ 20
For use under W in d o ws XP , Win d ow s 200 0............................................................................. 20
For use under W in d o ws Me , W in do w s 9 8 or Wi nd o ws 9 5 ......................................................21
For use unde r Windows NT....................................................................................................... 21
Step 4 Checking Op e r ati o n s w ith th e D i ag no s is P rog ra m ...............................................................22
What is the Di agno s is P r og r a m?................................................................................................ 22
Check Method ............................................................................................................................ 22
Using the Di agnosis Program.................................................................................................... 24
Setup Troubl esh oo ti n g...................................................................................................................... 26
Symptoms and A cti o ns .............................................................................................................. 26
If your proble m c a nno t b e r eso lv ed........................................................................................... 26
3. EXTERNAL CONNECTION 27
Interface con n e cto r ........................................................................................................................... 27
In the case of C OM -1 ( P M) ........................................................................................................27
In the case of C OM -1 D ( PM ) ..................................................................................................... 28
Types of Cabl e a nd Ex a mp le Co nn e ct io n s....................................................................................... 29
In the case of C OM -1 ( P M) ........................................................................................................29
In the case of C OM -1 D ( PM ) ..................................................................................................... 30
4. FUNCTIONS 31
Communicatio n Function ................................................................................................................. 31
Serial Data T ran smi s s io n ...........................................................................................................31
RS-232C Control Lines (C O M-1(PM))..................................................................................... 31
RS-422A/485 Con tr o l Lin e s ( C OM -1D ( PM ) ) ........................................................................... 31
Send and Re c e i ve Data Buffers................................................................................................. 31
Setting the B aud R at e ................................................................................................................ 32
5. ABOUT SOFTWARE 33
About Sample programs ................................................................................................................... 33
Uninstalling the dr iv e r sof tw a re .......................................................................................................34
CD-ROM Directo r y S t ru c tu re .......................................................................................................... 34
6. ABOUT HARDWARE 35
Hardware spe cification .....................................................................................................................35
Equivalent c i rcu it.............................................................................................................................. 37
iv
COM-1(PM), COM-1D(PM)
Page 6

1. Before Using the Product

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

About the PC Card

This PC card is a PCMCIA 2.0/JEIDA 4.1 compliant serial I/O card for performing RS-232C and RS­422A/485 serial communications with external devices. Use the card in a PCMCIA 2.0/JEIDA 4.1 or later (including PC Card Standard) PC card slot.
The < COM-1(PM) > has one RS-232C serial ports per card. The < COM-1D(PM) > has two RS-422A/485 serial ports per card. You can use the standard COM driver software (COM Setup Disk) supplied with the PC card to access
the serial ports as standard Windows or Linux COM ports.

Features

- As the card supports Plug&Play, the IO address, IRQ, and other resource settings are set automatically.
- Maximum communication speed = 115,200bps.
- The baud rate can be set independently for each channel, by software.
- Each channel is equipped with separate 16-byte FIFO buffers for transmit and receive.
- Up to two cards can be installed on one PC.
- Driver software is supplied to allow the serial por ts t o b e used a s standard Windows or Linux COM ports.
- The data transmission mode (full or half duplex) setting can be changed using a switch. (COM-1D(PM))
- The card includes the 100Ω terminating resistors required for a party line (multi-drop) connection. The resistors can be inserted in each signal line by setting a switch. (COM-1D(PM))
- All the RS-422A/485 signal lines are electrically isolated. (COM-1D(PM))
- You can use the PC card attachment to protect the PC card and cable socket.
COM-1(PM), COM-1D(PM)
1
Page 7
1. Before Using the Product

Support Software

You should use CONTEC support software according to your purpose and development environment. Standard COM Driver Software
The purpose of this software is to allow the CONTEC serial communication PC cards to be used under Windows or Linux in the same way as the standard COM ports on the PC. By installing additional PC cards, you can use COM ports in the range COM1 to COM256. The PC cards can be used for all types of serial co mmunicat ions such as for remote access service (RAS) 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). Under Linux, the serial ports are compatible with the operating system's standard tty driver. The standard rou tines including open( ), close( ), read( ), write( ) are supported.
< Operating environment >
OS
Windows XP, 2000, NT, Me, 98, Linux etc..
CAUTION
Up to two cards can be installed on one PC.
COM Setup Disk
(Bundled)
Driver Software Package
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 create high-speed application software taking adva nta g e of the CONTE C har dware usi ng va r ious programming language s that support Win32 API functions, such as Visual Basic and Visual C/C++.
It can also be used by the installed diagnosis program to check hardware operations. CONTEC provides download services (at http://www.contec.co.jp/e n/) to supply the updated drive rs and
differential files. For details, read Help on the bundled CD-ROM or visit the CONTEC’s Web site.
< Operating environment > OS Windows XP, 2000, NT, Me, 98, etc.. Adaptation language Visual C/C++, Visual Basic, Delphi, Builder, etc.. Others Each piece of library software requires 50 megabytes of free hard disk space.
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.).
- Up to two cards can b e inst alled on one PC.
2
COM-1(PM), COM-1D(PM)
Page 8
1. Before Using the Product
Base package of ActiveX components for measurement system development
ACX-PAC(W32)BP
This is a set of useful Windows development tools for measurement systems and consis ts o f a soft ware compo n ent library with ready-to-use samples which you can combine for easy programming. The package contains components for controlling CONTEC I/O boards (PC cards). Features include interface control for analog I/O, digital I/O, GPIB support.
(Option)
communications
, and counter inputs, as well as X-Y plotting and file sto rag e
Check the CONTEC’s Web site for more information on this soft.
Advanced package of ActiveX components for measurement system development
ACX-PAC(W32)AP
Complements the ACX-PAC(W32)BP functions with additional components including g raphi cs (plotting, switches, and lamps, etc.) and mathematical and analysis tools.
(Option)
Check the CONTEC’s Web site for more information on this soft.

Cable & Connector (Option)

RS-232C Straight Cable with D-SUB9P (1.8m) : RSS-9M/F RS-232C Cross Cable with D-SUB9P (1 .8 m) : RSC-9 F RS-232C Straight Cable with D-SUB25P (1.8m) : RSS-25M/F RS-232C Cross Cable with D-SUB25P (1.8 m) : RSC-25F RS-232C Connection Conversion Straight Cable (25M→9F, 1.8m) : RSS-25M/9F RS-232C Connection Conversion Straight Cable (25F→9M, 1.8m) : RSS-25F/9M RS-232C Connection Conversion Cross Cable(25F→9F, 1.8m) : RSC-25F/9F D-SUB9P Male Connector Set (5 Pieces) : CN5-D9M D-SUB9P Female Connector Set (5 Pieces) : CN5-D9F D-SUB25P Male Connector Set (5 Pieces) : CN5-D25M D-SUB25P Female Connector Set (5 Pieces) : CN5-D25F
* Check the CONTEC’s Web site for more information on these options.
COM-1(PM), COM-1D(PM)
3
Page 9
1. Before Using the Product

Customer Support

CONTEC provides the following suppor t services for you to use CONT EC products more e fficiently 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 and differential files as we ll as sample program s available in
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-Year Warranty

CONTEC Interface PC cards are warranted by CONTEC CO., LTD. to be free from defects in material and workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of charge only when this device is returned freight pre paid with a c opy of the ori ginal 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 PC cards. The warranty is not applicable if the device has been tampered with or damaged through 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 consequentia l damages due to s uch defect or consequences t hat arise from Safety Precautions
Understand the following definitions and precautions to use the product safely.
4
COM-1(PM), COM-1D(PM)
Page 10
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 using the follow ing symbols to prevent accidents resulting in injury or death and the destructio n of equipment an d resources. U nderstand t he meanings of these labels to operate the equipment safely.
DANGER
WARNING
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-1(PM), COM-1D(PM)
5
Page 11
1. Before Using the Product

Handling Precautions

DANGER
Do not use the product where it is exposed to flamm able or corrosi ve gas. Doing so ma y result in an explosion, fire, electric shock, or failure.
CAUTION
- Do not strike or bend the PC Card. Doing so could damage the PC Card. Otherwise, the PC Card may malfunction, overheat, cause a failure or breakage.
- Do not subject the socket used to conne ct the cable to the PC card to knocks or other excessi ve force. Otherwise, the PC card may malfunction, overheat, or cause a failure.
- Connect the cable to the card before inserting the card into the PC. Otherwise, the PC card may malfunction, overheat, or cause a failure.
- Do not try to remove the cable from the connecte r on the PC card without pre ssing the locking spring as this may prevent the cable from being securely connected.
- When inserting the PC card, check that you are inserting the card with the correct orientation and that the card is inserted firmly. Inserting the PC card incorrectly may damage the PC card or connector or result in a bad connection.
- Ensure that the PC power supply has sufficient capacity for all mounted cards. An inadequate power supply may cause misoperation, overheating, or faults.
- The specifications of this product are subject to change without notice for enhancement and quality improvement. Even when using the product continuously, be sure to read the manual and understand the contents.
- Do not modify the product. CONTEC will bear no responsibility for any problems, 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.
The following information only applies to the COM-1D(PM).
- Only set the switches and jumpers on the PC Card to the specified settings. Otherwise, the PC card may malfunction, overheat, or cause a failure.
6
COM-1(PM), COM-1D(PM)
Page 12
1. Before Using the Product

Environment

Use this product in the following environment. If used in an unauthorized environment, the PC card may overheat, malfunction, or cause a failure.
Operating temperature
0 to 50°C
Humidity
10 to 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.
- The the bus connector have no stain or corrosion.
- Check that the bus connector and its cable have been plugged correctly.

Storage

When storing this product, keep it in its original packing form. (1) Put the PC card in the storage bag. (2) Wra p it in th e pa ck ing mat eri al, th en pu t it in th e box . (3) Store the package at room temperature at a place free from direct sunlight, moisture, shock,
vibration, magnetism, and static electricity.
COM-1(PM), COM-1D(PM)
7
Page 13
1. Before Using the Product
8
COM-1(PM), COM-1D(PM)
Page 14

2. Setup

2. Setup
This chapter explains how to set up the PC card.

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 PC card under Windows
Using the Standard COM Driver Software COM Set up Disk
This section describes the setup procedure to be performed before you can start developing application programs for the PC card 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 \PCCAR D \C OM(P M)\R eadmee.txt file and the instal la tion instru ct ions files for each OS located in the \PCCARD\COM(PM)\InstDoc.
If Setup fails to be performed normally, see the “Setup Troubleshooting” section at the end of this chapter.
Using the PC card under Windows
Using the Driver Library Package API-PAC(W32)
Refer to the API-PAC(W32) "Hardware Installation Procedure (HWINSTU.HLP)" 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-1(PM), COM-1D(PM)
9
Page 15
2. Setup
Using the PC card 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
10
COM-1(PM), COM-1D(PM)
Page 16
2. Setup

Step 1 Setting the Hardware

This section describes how to set the PC Card and plug it on your PC. Check that your PC has a TYPE II PC card slot that complies with PCMCIA 2.0/JEIDA 4.1 or later
(including PC Card Standard).

Connecting the PC Card to the Connect er Cabl e

Connect the PC card end of the cable (CB-1R(PM) or CB-1D(PM)) to the PC card. Make sure you connect the cable as shown in Figure 2.1 with the top side of the connector (indicated by the  mark ) aligned with the top side of the card.
CAUTION
- When inserting the cable, carefully align the cable connector with the socket on the PC card and push straight in. Applying excessive force to the connector on the PC card may damage the connector or result in a bad connection.
- Never insert or unplug the connector while the PC power is turned on. However, you may insert or remove the PC card with the power on.
Connection Cable
Locking Spring
Locking Metal Fitting
PCMCIA Slot Side
Figure 2.1. Connecting the PC Card to the Connecter Cable
Marks
PC Card
COM-1(PM), COM-1D(PM)
11
Page 17
2. Setup

Fitting the PC Card Attachment

Fitting the PC card attachment helps prevent the cable from being disconnected if force is accidentally applied to the top of the co nn ecto r. Refer to the instructions supp l ied with the PC card attachment for details on how to fit it.
CAUTION
When using other PC cards in the same PC, the PC card attachment may obstruct the other cards and make them difficult to insert. In this case, please remove the PC card attachment.
PC Card
PC Card Socket Side
PC Card Attachment
Figure 2.2. Fitting the PC Card Attachment
12
COM-1(PM), COM-1D(PM)
Page 18
2. Setup

Insert the PC Card

Insert the card into the PC card slot on the PC. Firmly insert the card into the slot with the orientation indicated by the arrow symbol on the card, as
shown in Figure 2.3. The PC card has a key to prevent it from being i nser ted incorrectly. Do not try to force the card into the
slot the wrong way around as this may damage the card or the slot on the PC. Also, check the card slot on your PC as the slots on some PCs are oriented so tha t cards is i nser te d with the to p side fa cin g dow n.
Refer to the manual for your PC for instructions on how to remove the card.
Figure 2.3. Insert the PC Card
CAUTION
Take note of the following points as inappropriate handling of the PC card may damage the card or connector socket and may result in a bad connection.
- Always insert the PC card with the correct orientation and in accordance with the instructions.
- Do not hold the card by the cable or connector when inserting the card into the slot.
- Do not move the PC with the cable still plugged in.
- Do not apply any excessive force to the cable socket on the PC card such as by pulling on the cable connector.
- Do not place any objects on top of the cable connector.
COM-1(PM), COM-1D(PM)
13
Page 19
2. Setup
Setting the Data Transmission Mode and Terminator on the COM-1D(PM)
This setting is only required on the COM-1D(PM). Use a flathead screwdriver or similar to open the cover on the underside of the connector cable (CB­1D(PM)). This exposes the DIP switch (SW1). As shown in Figure 2.4, an easy way to open the cover is to insert the tip of the screwdriver into the slot on the underside of the connector cable and then rotate the screwdriver.
Turn the screwdriver to the right.
Connecting cable
Figure 2.4. How to Open the Cover
CAUTION
Pushing the screwdriver in too far may damage the inside of the connector. Take care not to apply any force to the inside when tu rn ing the sc rewd riv er.
SW1 can be used to set the COM-1D(PM) to full or half duplex mode. Full duplex can be used for a one-to-one connection. Half duplex mode allows a party line connection to be used. You can also use this switch to specify whether or not to insert the 100Ω terminating resistor into the receiving lines (RxD and CTS).
Bottom
O
1
N
2 3 4 5 6 7 8
Lid
SW1
Figure 2.5. Switch for Setting the Transmission Mode and Terminating Resistors for the COM­1D(PM)
14
COM-1(PM), COM-1D(PM)
Page 20
COM-1D(PM) data transmission mode setting Bits 1 to 5 of SW1 set the tr ans mis sio n mode. Th e se ttin gs a re shown in the tabl e be low .
Table 2.1. COM-1D(PM) Data Transmission Mode Setting
Full duplex
Data transmission mode
Setting
procedure
(SW1)
Half duplex
[Half]
O
1
N
2 3 4 5 6 7 8
This sets TxD as the only data line and uses the RTS signal on the PC card to switch between send and receive.
SW1 SW1 SW1
Loopback RTS and CTS
RTS CTS
1 2 3 4 5 6 7 8
If the device you are communicating with does not use the RTS and CTS signals, you can use this setting to make CTS active when the RTS signal on the PC card is set to active.
[Full]
Connect RTS and CTS to external device
RTS CTS
O N
Connect to the RTS and CTS signals from the external device.
O
1
N
2 3 4 5 6 7 8
2. Setup
CAUTION
Do not set both bit 1 and bit 2 of SW1 ON at the same time as this may damage the PC card.
COM-1D(PM) terminating resistor setting Bits 6 and 7 of SW1 specify whether or not to insert a terminator. The settings are shown in the table
below.
Table 2.2. COM-1D(PM) Terminating Resistor Settings
Connection on board
Insertion of Terminator
Setting procedure
CAUTION
Figure 2.7 A or D
(either end of signal line)
Inserted Not Inserted
O
1
N
2 3 4 5 6 7 8
Figure 2.7 B or C
(other than end of signal line)
O
1
N
2 3 4 5 6 7 8
Always set bit 8 of SW1 to OFF.
COM-1(PM), COM-1D(PM)
15
Page 21
2. Setup
SW1
13456782
NS16550 equivalent
SOUT
SIN
CTS
RTS DCD DTR
DSR
RI
1/2W 100
Figure 2.6. Equivalent Circuit <COM-1D(PM)>
Terminator
(A)
(B)
(C)
Terminator
(D)
TxD+ TxD-
RxD+ RxD-
CTS+ CTS-
RTS+ RTS-
Figure 2.7. Party Line Connection <COM-1D(PM)>
16
COM-1(PM), COM-1D(PM)
Page 22
2. Setup

Step 2 Installing the Hardware

For using an expansion PC card un der Windows, yo u have to let the OS detect the I /O addresses and I RQ to be used by the PC card. The process is referred to as installing the hardware. When using more than one PC card, always install car ds one at a time and complete setup of the previous card before installing the next card.

Turning on the PC

(1) Insert the card into the PC card slot on the PC. (2) Turn on the power to your PC.
CAUTION
- Refer to the API-PAC(W32) "Hardware Installation Procedure (HWINSTU.HLP)" 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 About Software".
- The PC card cannot be properly installed unless the resources (I/O addre sses a nd i nterrup t level) f or the PC card can be allocated. Before attempting to install the PC card, first determine what PC resources are free to use.
- The resources used by each PC card do not de pend on t he location of t he PC cards slot or the PC card itself. If you remove two or more PC cards that have al ready been installe d and then remount one of them on the computer, it is unknown that which one of the sets of resources previously assigned to the two PC Cards is assigned to the remounted PC card. In this case, you must check the resource settings.
COM-1(PM), COM-1D(PM)
17
Page 23
2. Setup

Setting with the Found New Hardware Wizard

(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 “Found New Hardware Wizard” is not started. Go to Step 3 “Initializing the Software”.
(2) Specify that folder on the CD-ROM which contains the setup information (INF) file to register the
PC Card.
- Source folder Windows XP, 2000 \PCCARD\COM(PM)\Win2000 Windows Me, 98, 95 \PCCARD\COM(PM)\Win95
18
COM-1(PM), COM-1D(PM)
Page 24
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 indi cating that the re levant dri ver has not pas sed Windows Logo testing, and it ca n be ign ore d without developing any problem with the operation of the PC card.
In this case, click on the [Continue Anyway] button.
You have now finished installing the hardware.

The check method of the completion of hardware installation

(1) Select "System" from "Control Panel" and open [Device Manager]. (2) Check that the COM port has been added to the [Ports] folder.
COM-1(PM), COM-1D(PM)
19
Page 25
2. Setup

Step 3 Initializing the Software

This assigns COM ports to the serial ports on the PC card. On Windows XP and 2000, you can also change the COM port numbers for existing COM ports.

For use under Windows XP, Windows 2000

On Windows XP and Windows 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].
(2) Check that the new COM ports are displayed in the [Ports] folder.
Updating the Settings (1) If you wish to ch ang e a port nu mber, 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.
You have now finished installing the initial setting of Software.
20
COM-1(PM), COM-1D(PM)
Page 26
2. Setup

For use under Windows Me, Windows 98 or Windows 95

On Windows Me, 98, or 95, the COM port will already have been allocated by the hardware installation. As the OS manager allocates the COM port automatically, you cannot change the COM port number. However, if you wish to change into a lower COM port number as below, opening the COM port properties in Device Manager and changing the resource settings may allow you to move into a lower COM port number. When changing the settings, clear the [Set Automatically] chec k box and m odify the [Base Setting] and [IRQ].
When you wish to reassign the PC card to a port number COM1
Before changing settings Change resource settings in Device Manager
(I/O address 3F8, IRQ 4)
COM1: Not used COM2: COM port of PC Card
You can also change into a lower COM port number by using the PC's BIOS to disable serial devices (RS-232C port, modem, infra-red communications (IrDA), etc.). (Whether or not this is possible depends on the BIOS.)
Fill gap by reassigning the PC card to a lower port number COM2
Before changing settings Use BIOS to set modem or infra-red comms device to "Disable"
COM1: COM port on PC COM2, 3, 4: Other devices COM5: COM port of PC Card
COM1: COM port of PC Card
COM1: COM port on PC COM2: COM port of PC Card
You have now finished installing the initial setting of Software.

For use under Windows NT

On Windows NT, the COM port is allocated automatically after you mount the PC card in the PC and boot the OS. You can use [Control Panel] - [Serial Ports] to check the COM port allocation. As the number of COM ports in [Control Panel] - [Serial Ports] increases automatically if the COM port was allocated successfully, do not use [Manual] to add the COM port.
You have now finished installing the initial setting of Software.
COM-1(PM), COM-1D(PM)
21
Page 27
2. Setup

Step 4 Checking Operations with the Diagnosis Program

Use the diagnosis program to check that the PC card and driver software work normally, thereby you ca n confirm that they have been set up correctly.

What is the Diagnosis Program?

These programs perform some simple checks on the PC card operation. Two programs are provided.
Terminal program (CTstCom.exe) Data entered from the keyboard is s ent dir ectly fr om th e port. T he func tion of the progr am is eq uivale nt
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-232C crossed cable or a loopback connector. If using a cross ed cable, connect to th e COM port on the PC. If using a loopback connector, you can perform the check using a single COM port. The figure below shows the wiring connections for a loopback connector.
Wiring connections for a loopback connector
3
TxD
2
RxD
7
RTS
8
CTS
4
DTR
6
DSR
22
COM-1(PM), COM-1D(PM)
Page 28
2. Setup
For COM-1D(PM), obtain an RS-422A/485 crossed cable. Performing the test with a crossed cable requires that the PC has another RS-422A/ 485 por t. If you do n ot have a cros sed cable, you can perf orm the test on a single COM port by using the switch settings in the connector cable (CB-1D(PM)) to set communications to loopback. The figure below shows the switch settings.
Switch settings when using the COM-1D(PM) with a crossed cable
O
1
N
2 3 4 5 6 7 8
Switch settings when using the COM-1D(PM) in loopback mode instead of using a crossed cable
O
1
N
2 3 4 5 6 7 8
COM-1(PM), COM-1D(PM)
23
Page 29
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 to a single COM port, specify the same PC card number in both [Device 1] and [Device 2].
Communication Settings: Specify the [Bits / Second], [Data bits] and other settings you wish to use.
24
COM-1(PM), COM-1D(PM)
Page 30
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.
2. Setup
COM-1(PM), COM-1D(PM)
25
Page 31
2. Setup

Setup Troubleshooting

Symptoms and Actions

PC card is not detected correctly [Windows NT 4.0] Windows NT 4.0 does not normally su ppor t hot pl uggi ng (in sertin g or rem oving a PC card whil e the PC
power is turned ON). However, some brands of PC ha ve proprietary soft ware that supports hot plu gging. The PC card may not work correctly if such software is present.
Remove any hot plugging related software before using the card.
Incorrect driver software was installed by mistake [Windows XP, 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.
26
COM-1(PM), COM-1D(PM)
Page 32

3. External Connection

3. External Connection
This chapter describes the interface connectors on the PC Card. Check the information available here when connecting an external device.

Interface connector

In the case of COM-1(PM)

Use the interface connectors on the CB-1R(PM) cable to connect to external devices.
5
Thumb screw : UNC#4-40
- Connector used DELC-J9PAF-20L9 (mfd. by JAE, Male)
- Applicable connectors 17JE-13090-02(D8C) (mfd. by DDK, Female)
CN5-D9F (mfd. by CONTEC, Female) (Five connector set)
(inch screw)
1
9
6
(CN1)
Figure 3.1. Interface connector <COM-1(PM)>
Signal Ground SG
Data Terminal Ready DTR
Transmit Data TxD
Receive Data RxD
Data Carrier Detect DCD
5 4 3 2 1
CN1
RI Ring Indicator
9
CTS Clear to Send
8
RTS Request to Send
7
DSR Data Set Ready
6
Figure 3.2. Pin Assignments of Interface Connector <COM-1(PM)>
Cable (Option) RS-232C Straight Cable with D-SUB9P (1.8m) : RSS-9M/F RS-232C Cross Cable with D-SUB9P (1 .8 m) : RSC-9 F
COM-1(PM), COM-1D(PM)
27
Page 33
3. External Connection

In the case of COM-1D(PM)

Use the interface connectors on the CB-1D(PM) cable to connect to external devices.
5
Thumb screw : UNC#4-40
- Connector used DELC-J9PAF-20L9 (mfd. by JAE, Male)
- Applicable connectors 17JE-13090-02(D8C) (mfd. by DDK, Female)
CN5-D9F (mfd. by CONTEC, Female) (Five connector set)
(inch screw)
1
9
6
(CN1)
Figure 3.3. Interface connector <COM-1D(PM)>
Transmit Data Transmit Data+ TxD+
Request to Send Request to Send + RTS+
Signal Ground SG
-
TxD
-
RTS
5
­4
-
3 2 1
CN1
RxD
9
RxD+ Receive Data+
8 7
CTS+ Clear to Send+ CTS
6
-
Receive Data
-
Clear to Send
-
-
Figure 3.4. Pin Assignments of Interface Connector <COM-1D(PM)>
CAUTION
For TxD, RxD, and RTS, the positive terminal is the even num bered pin and the negative term inal is the odd numbered pin. The opposite applies for the other signals. This is not a misprint.
28
COM-1(PM), COM-1D(PM)
Page 34
3. External Connection

Types of Cable and Example Connections

In the case of COM-1(PM)

When using an RS-232C interface, different cables are required depending on the type of device to which you are connecting (computer or m odem, etc.). Check the requirements of the external device and select either a straight-through or crosse d ( null m odem) cable as appropriate. If special treatment of the signal lines in the connector is required, ensure that this is done in accordance with the specifications.
TxD RxD
RTS CTS DTR DSR SG
(Transmit Data)
TxD RxD
(Receive Data) (Request to Send)
RTS CTS
(Clear to Send)
DTR
(Data Termi na l Ready)
DSR
(Data Set Read y) (Signal Ground)
SG
External device
Figure 3.5. Example Connection to a Modem (Straight cable)
TxD RxD RTS CTS DTR DSR SG
TxD RxD RTS CTS DTR DSR SG
External dev ic e
Figure 3.6. Example Connection to a PC (Cross cable)
TxD RxD RTS CTS DTR DSR SG
TxD RxD RTS CTS DTR DSR SG
External device
Figure 3.7. Example Connection to a Device
COM-1(PM), COM-1D(PM)
29
Page 35
3. External Connection

In the case of COM-1D(PM)

The figures below show examples of how to connect the cable for the PC card. 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 nois e.
TxD+
TxD
RxD+
RxD
RTS+
RTS CTS+
CTS
SG
-
-
-
-
TxD+
TxD RxD+
RxD RTS+
RTS CTS+
CTS
SG
-
-
-
-
External device
Figure 3.8. 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.9. Example Connection Oneself loop to RTS and CTS in Full Duplex
TxD+ TxD SG
-
TxD+ TxD SG
-
External device
Figure 3.10.Example Connection in Half Duplex
CAUTION
If connecting between external devices a nd this PC car d with fa ulty wiring, it will bec ome the cause of failure.
30
COM-1(PM), COM-1D(PM)
Page 36

4. Functions

This section describes the functions of the PC Card.

Communication Function

Serial Data Transmission

COM-1(PM) sends and receives data using the RS-232C communication standard. COM-1D(PM) sends and receives data using the RS-422A/485 communication standard.
The baud rate can be set by software to between 2 and 115,200bps.

RS-232C Control Lines (COM-1(PM))

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

RS-422A/485 Control Lines (COM-1D(PM))

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

Send and Receive Data Buffers

The card contains a 16byte send buffer and 16byte 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 operation (whether to use FIFO operation, FIFO trigger size) can be set using Device
Manager (on Windows XP, 2000, Me, 98, and 95). On Windo ws NT, only wh ethe r to use FIFO operation can be specified using [Control Panel] - [Serial Ports].
The FIFO trigger is the data buffer size that determines the timing of the hardware interrupt. However, this setting and function only applies to the receive buffer and not to the send buffer.
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 is present, a delay may occur in sending data to the other device or in notifying the application that data has been received.
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-1(PM), COM-1D(PM)
31
Page 37
4. Functions

Setting the Baud Rate

The baud rate is set by specifying the divide register value (divisor).
Baud Rate: 2 to 115,200bps
Table 4.1 lists the divisor settings for common baud rates when using the COM Setup Disk and API-PAC(W32).
Table 4.1. Exampl e Se tt ing s fo r Common Baud Rates
Baud Rate Divisor
2 57600 --- 150 768 --- 7200 16 --­4 28800 --- 300 384 --- 9600 12 --­5 23040 --- 600 192 --- 14400 8 ---
8 14400 --- 1200 96 --- 19200 6 --­15 7680 --- 1800 64 --- 28800 4 --­50 2304 --- 2000 58 0.68 38400 3 --­75 1536 --- 2400 48 --- 57600 2 ---
110 1047 0.026 3600 32 --- 115200 1 ---
134.5 857 0.058 4800 24 --- ---
Use the formula below if yo u want to s et a ba ud rate other t han tho se list ed in Tabl e 4. 1. A ba ud rate can only be set if the divisor calculated by the formula is an integer. Any digits after the decimal point indicate that the baud rate cannot be used.
115200 ÷ Desired baud rate
Ex.) 115200 ÷ 9600bps = 12 (As the result is an in t ege r, th is ba ud ra te c an b e set. )
115200 ÷ 76800bps = 1.5 (As the result contains a fractional part, this baud rate cannot be set.)
Setting
Error
Baud Rate Divisor
Setting
Error
Baud Rate Di vis or
= Divisor (Divide register setting value)
Setting
Error
32
COM-1(PM), COM-1D(PM)
Page 38

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 PC cards can be used for all types of serial co mmunicat ions such as for remote access service (RAS) 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 (MSCo mm).
- 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 \PCCARD\COM(PM)\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 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-1(PM), COM-1D(PM)
33
Page 39
5. About Software

Uninstalling the driver software

Use the following procedure to uninstall a previously installed COM Setup Disk. Refer to the \Linux\Readmee.htm file on the CD-ROM for instructions on how to uninstall from Linux.
(1) On Windows NT, while the PC card is still mounted in the PC, use [Control Panel] - [Serial Ports] to
delete the added COM ports.
This is all that is needed to uninstall from Windows NT. (2) Run [Device Manager] fro m [Control Panel] - [System]. (3) Use the Delete key to delete the [CONTEC Co., Ltd-COM(PM)] entry that appears under [Ports]. (4) Start Explor e r. (5) Select [Tools] - [Fold er Op tions]. (6) Select the [View] tab. (7) Select [Show all folders and files] (or [Show all files]), then click OK. (8) Right click on the \Winnt\Inf folder (or \Windows\Inf folder) and run [Search]. (9) Enter COM(PM) in the [Containing text] field then click [Start Search].
Do not enter anything in the [File or folder name] (or [Named]) field. (10) Delete all files found by the search.

CD-ROM Directory Structure

\ |– Linux Linux device driver (for PCI boards and PC cards only) |– PCCARD PC card related files | |– Com(cb) COM-4(CB)H related files | |– Com(pm) COM-1(PM) and COM-1D(PM) related files | | |– InstDoc Installation instructions for each OS | | |–Win2000 INF file for Windows XP/2000 | | |– Win95 INF file for Windows Me/98/95 | |– Com(pm)2 COM-2(PM) related files |– PCI PCI board related files |– Samples Various sample programs | |– VB Sample program for Visual Basic | |– VC Sample program for Visual C++ |– USB USB related files |– UTILITY Various utilities |– CommChk Self diagnostic program (Loopback communication test) |– CTstCom Self diagnostic program (Terminal utility)
34
COM-1(PM), COM-1D(PM)
Page 40

6. About Hardware

6. About Hardware
This chapter provides hardware specifications and hardware-related supplementary information.

Hardware specification

Tables 6.1 to 6.2 list the PC card specifications.
COM-1(PM)
Table 6.1. Specification
Item Specification Number of channels 1ch Interface type RS-232C Transfer method Asynchronous serial transfer Baud rate 2 to 115,200bps *1 *2 Data length
Parity check Even, Odd, Non-pari ty *1 Controller chip 16550 or equivalent
Connecting distance 15m(Typ.) Interrupt requests One of: IRQ3 to 5, 7, 9, 10, o r 15 I/O address Any 8-byte boundary Power consumption 5VDC 100mA (Max.) Operating
temperature Length of supplied
cable Card slot
specifications Card size TYPE II Weight 30g (Including cable: 70g ) *1 These items can be set by software.
*2 Data transmission at high speed may not be performed normally depending on the
environment includin g t h e ty pe o f stat u s of c on ne c ted ma t e ria l of cable and environme n t.
5, 6, 7, 8 bits 1, 1.5, 2 stop bits *1
(Each channel has 16-byte receive and 16-byte transmit FIFO buffers.)
0 to 50°C, 10 to 90%RH(No condensation)
150mm
PCMCIA 2.0/JEIDA 4.1 or later (including PC Card Standard)
COM-1(PM), COM-1D(PM)
35
Page 41
6. About Hardware
COM-1D(PM)
Table 6.2. Specification
Item Specification Number of channels 1ch Interface type RS-422A/485(isolated type) Dielectric strength 1000V Transfer method Asynchronous serial transfer (Full Duplex/ Half Duplex Baud rate 2 to 115,200bps *1 *2 Data length
Parity check Even, Odd, Non-pari ty *1 Controller chip 16550 or equivalent
Connecting distance 1200m(Typ.) Interrupt requests One of: IRQ3 to 5, 7, 9, 10, o r 15 I/O address Any 8-byte boundary Power consumption 5VDC 100mA (Max.) Operating
temperature Length of supplied
cable Card slot
specifications Card size TYPE II Weight 30g (Including cable: 70g ) *1 These items can be set by software.
*2 Data transmission at high speed may not be performed normally depending on the
environment includin g t h e ty pe o f s tat u s of co n ne cte d ma t eri a l of cable and environ me nt.
5, 6, 7, 8 bits 1, 1.5, 2 stop bits *1
(Each channel has 16-byte receive and 16-byte transmit FIFO buffers.)
0 to 50°C, 10 to 90%RH(No condensation)
150mm
PCMCIA 2.0/JEIDA 4.1 or later (including PC Card Standard)
36
COM-1(PM), COM-1D(PM)
Page 42

Equivalent circuit

LT1133
TxD, RTS, DTR
RxD, CTS, DSR, DCD, RI
Figure 6.1. Equivalent Circuit <COM-1D(PM)>
LTC491(RTS/CTS), LTC490(TxD/RxD)
47k
6.2k
100
6.2k 47k
6. About Hardware
TxD, RTS
RxD, CTS
Figure 6.2. RS-422A/485 Full Duplex Connection <COM-1D(PM)>
LTC491
TxD, RxD
47k
6.2k
100
6.2k 47k
Figure 6.3. RS-422A/485 Half Duplex Connection <COM-1D(PM)>
COM-1(PM), COM-1D(PM)
37
Page 43
COM-1(PM)
COM-1D(PM)
User’s Guide
CONTEC CO.,LTD. February 2004 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. [02202004]
[03141995] Management No. A-41-402 [02202004_rev5] Parts No. LZU6161
Loading...