Page 2
Trademarks PCI-16P16R is registered trademarks of EVOC Co., Ltd. IBM PC is a registered trademark of International Business Machines Corporation. Intel is a registered trademark of Intel Corporation. Other product...
1.2 Applications ..............2 1.3 Specifications:..............3 Chapter 2: Installation.............5 2.1 What You Have ...............5 2.2 Unpacking ...............5 2.3 PCI-16P16R’s Layout............7 2.4 Jumper and DIP Switch Description........8 2.5 Input Signal Selection............8 2.6 Connector Pin Assignments ..........9 Chapter 3: Low-level Programming......12 3.1 I/O Port Address Map ...........12 3.2 Relay Output Register –...
Page 4
4.2 Installation..............18 4.2.1 Hardware & Driver Installtion ........... 18 4.2.2 Sample Program Installation............ 19 4.3 ActiveX Control Application Manual ......20 4.3.1 Application with VC ..............20 4.3.2 Application with VB ..............20 4.4 API DESCRIPTION............21 4.4.1 API for Win98................21 4.4.2 API for DOS...................
Page 5
How to Use This Guide This manual is designed to help you use the PCI-16P16R. The manual describes how to modify various settings on the PCI- 16P16R card to meet your requirements. It is divided into four chapters: Chapter 1, “Introduction” gives an overview of the product features, applications and specifications.
Chapter 1: Introduction The PCI-16P16R 16-CH Relay Actuator and Isolated D/I card is a compact-size and PCI-Bus digital I/O card for IBM personal computer or compatibles in controlling and sensing applications. This card provides 16 relay actuators and 16 opto-isolated digital inputs.
1.1 Features The PCI-16P16R Relay Actuator and D/I Card provides the following advanced features: 32-bit PCI-Bus plug and play Plugs directly into the PCI-Bus, do not need accessory board 16 relay actuator outputs 16 opto-isolated AC or DC polarity-free digital inputs...
1.3 Specifications: Relay Outputs The 16 electro-mechanical relay outputs are addressed as two I/O bytes, eight of the relays (outputs 0~4 and 8~12) are Form C contacts (Normal Open and Normal Closed) and the remaining relays are Form A (Normal Open only). A LED indicates each relay’s ON/OFF status for monitoring.
Page 10
Input Voltage: 5~24VDC or AC 50~1,000Hz Input Impedance: 1.2K Isolation Voltage: 1,000V channel-to-channel channel-to-ground Response Time: 20 sec without AC Filter, 1ms with AC Filter Power Consumption : 400 mA typical +12V : 550mA maximum, all relays are energized Interface Characteristic I/O Connector: 37-pin Female D-type connector Compatible Bus: IBM PC-PCI Bus Physical/Environment...
Chapter 2: Installation This chapter describes how to install the PCI-16P16R. At first, the contents in the package and unpacking information that you should be careful are described. The jumpers and switches setting for the PCI-16P16R base address and digital input configuration (AC signal or DC signal) are also specified.
Page 12
IC to make sure that they are properly seated. Do this only with the module place on a firm flat surface. Note: DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN DAMAGED. You are now ready to install your PCI-16P16R Installation...
2.5 Input Signal Selection The PCI-16P16R’s input signal can be selected as either AC input or DC input signal. There are 2 jumpers (J1 and J9) associated with each digital input channel for configuring the channel as AC or DC input.
DC position J1~J9 2.6 Connector Pin Assignments The PCI-16P16R card comes equipped with two I/O connectors CON1 and CON2. CON1 is a 37-pin D-type connector accessible from the rear panel of the card and CON2 is an on-board 40-pin connector. The pin assignment of these connectors is described in Figure2.2 and Figure2.3...
Page 16
Figure 2.2 Figure 2.3 Pin Assignment of CON1 Pin Assignment of CON2 Legend: 1. DIAn -digital input A of channel n 2. DIBn -digital input B of channel n 3. NCn -normal close pin of relay n 4. Non -normal open pin of relay n 5.
Page 17
A cable connector to convert the CON2 40-pin header to 37-pin male D-type connector is enclosed with the PCI- 16P16R. The mapping between the 40-pin header and 37- pin D-type connector are shown below. 40-pin Ribbon 37-pin D-sub Figure 2.4 CON2 Connection Installation -11-...
PCI-16P16R’s register format and control procedures. 3.1 I/O Port Address Map The PCI-16P16R requires 2 consecutive addresses in the PC I/O address space. The following table (Table 3.1) shows the location of each register and driver relative to the base address and its description.
(0) status, it turns the relay OFF, and high status (1) will energize the relay. The readback capability is also supported in the PCI-16P16R, i.e. you can read back each relay’s status through Base+02 register.
DI11 DI10 3.4 Relay Output The PCI-16P16R contains two types of relay: Form C and Form A. The relay R0~R4 and R8~R12 are form C relays, and R5~R7 and R13~R15 are form A type. The differences between these two types of relay are: 1.
Page 21
Form C relay has three contacts: NC (Normal Close), NO (Normal Open), and CM (Common). The CM post, located at the middle, can make contact with either NO post or NC post. When the control bit is high (1), the CM post contacts with NO post;...
In normal power-up and reset, the relay is in low status. 3.5 Programming The PCI-16P16R’s registers can be accessed through direct I/O instructions, such as inport or outport instructions in Borland C/C++ language. You can write (outport) control word to relay output register to turn the relay ON/OFF; Also, you can read (inport) back the signal of relay status or isolated input signals.
Page 23
16 corresponding relay output channels. For example: In Basic Language: OUT (BASE, abc) In C Language: Outp(BASE, abc); The value of abc should be between 0 and 255. The status of the relay output can be monitored by reading back the BASE byte as show below: In Basic: STATUS = INP (BASE+02)
Chapter 4: Software User’s Manual 4.1 Version Description PCI-16P16R software provides device drivers for Win98 and DOS. The one for Win98 is WDM format, which can only run under either Windows98 or Windows2000 or above. The one for DOS needs to run under pure DOS environment.
A:\win98 as your folder. 5. Keep clicking Next to install your hardware’s driver. Click Finish to complete setup. After Setup has finished installing PCI-16P16R on your computer, you can check the present device status by using device manager now. 4.2.2 Sample Program Installation 1.
4.3 ActiveX Control Application Manual PCI-16P16R supplies ActiveX Control as API (application interface). The name of ActiveX control is PCI16PR, its corresponding file is PCI16PR.OCX. After installing the sample program by running Setup.exe in the floppy disk supplied as shown at Part 2, PCI16PR has already been registered.
API function library for Win98 will be supplied by the ActiveX Control named “PCI16PR”. PCI16PR can be found in the registry by running Regedit if the software was installed correctly. Please see PCI-16P16R software user’s manual or other relevant references to find the ActiveX Control programming method.
Page 28
It based on “0”. The different hardwares can be told according to this CardNumber in a multi-card system. Up to 16 PCI-16P16R cards can be supported in one system. Return: Bool value, it will return TRUE value if initialization success.
Page 29
“1”. You can consult VB Example for detailed operation. 4. void DataOut(short data) Function: Data output, Send data to PCI-16P16R digital (relay) output channels. Parameter: 16 digits short integer, corresponding to 16 channels relay on/off staus.
The detailed description of control method, property, event can be viewed by using Object View after the control object being created.) Please refer to VB Example or VC Example source code for your application. 4.4.2 API for DOS API for DOS supplies function libraries complied by Turbo C++ 3.0 as shown below: PCI16PRS.Lib Mode Small Library...
Page 31
Read data from the PCI-16P16R whose card No. has been specified. As the control object can not specify the hardware under DOS environment, the hardware card No. has to be specified in your operation to make sure multi-card system will not be confused.
Appendix A. Relay Contact Protection Circuits The contacts are the most important elements of relay constructions, contact performance conspicuously influenced by contact material and voltage and current values applied to the contacts. Another important issue is contact protection, a right contact protection circuit can suppress the coil EMF to a low level.
Page 33
Device Selection: As a guide to select R and C, R: 0.5 to 1 per 1V contact voltage C:0.5 to 1 F per 1A contact current Value varies depending on the properties of the capacity C acts to suppress the discharge at the moment the contacts open.
Page 34
circuit. Device Selection: Use a diode with a reverse breakdown voltage at least 10 times of the circuit voltage and forward current at least as large as the load current. In electronic circuits where the circuit voltages reverse breakdown voltage is above 2 to 3 times the power supply voltage.
Page 35
across the contacts. This circuit also slightly delays the release time. It’s effective when the power supply voltage is 24 or 48V and the voltage across the load is 100 to 200V. Relay Contact Protection Circuits -29-...
Need help?
Do you have a question about the PCI-16P16R and is the answer not in the manual?
Questions and answers