background image

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:

l

 

Chapter 1, “

Introduction

” gives an overview of the product

features, applications and specifications.

l

 

Chapter 2, “

Installation

” describes how to install the PCI-

16P16R. The layout of PCI-16P16R is shown, the DIP

switch setting for base Address, jumpers setting for input

signal, and connectors’ pin assignment are specified.

l

 

Chapter 3,  “

Low-level Programming

” describes the

register structure and how to program the digital inputs and

outputs on the PCI-16P16R.

l

 

Chapter 4,”

Software User’s Manual

” gives you a software

installation guide and describes the API (application

interface) supplied by PCI-16P16R.

l

 

Appendix A,  “

Relay Contact Protection Circuits

” gives

some circuits for relay contact protection.

Содержание PCI-16P16R

Страница 1: ...PCI 16P16R 16 Channels Relay Isolated D I Card ...

Страница 2: ... if advised of the possibility of such damages This document contains proprietary information protected by copyright All rights are reserved No part of this manual may be reproduced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks PCI 16P16R is registered trademarks of EVOC Co Ltd IBM PC is a registered trademark of Internation...

Страница 3: ... 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 Base 00 13 3 3 Isolated Input Registers 14 3 4 Relay Output 14 3 5 Programming 16 Chapter 4 Software User s Manual 18 4 1 Version Description 18 ...

Страница 4: ...lltion 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 24 Appendix A Relay Contact Protection Circuits 26 ...

Страница 5: ... to install the PCI 16P16R The layout of PCI 16P16R is shown the DIP switch setting for base Address jumpers setting for input signal and connectors pin assignment are specified l Chapter 3 Low level Programming describes the register structure and how to program the digital inputs and outputs on the PCI 16P16R l Chapter 4 Software User s Manual gives you a software installation guide and describe...

Страница 6: ......

Страница 7: ...ated D I channels to collect digital inputs in any noisy environments It is very essential to use isolated input to prevent the ground loop problems Each relay is matched with one red LED to reflect its ON OFF status Each input channel is jumper selectable to either AC or DC input control voltage The isolation voltage is guaranteed at 1 000V so that common mode voltages and voltage spikes that oft...

Страница 8: ... energized relays l Input jumpers selectable for AC_Filter Non AC_Filter l 1 000 V fully isolation l On board relay driving circuits l On board digital input signal conditioning circuits l 37 pin D type female connector 1 2 Applications l Industrial ON OFF control l Energy management l External high power relay driving signal switching l Laboratory automation l Industrial automation l Switch conta...

Страница 9: ...Throw DPDT l Output Channels 16 0 4 and 8 12 are Form C 5 7 and 13 15 are Form A l Contact Rating 12VAC 0 5A or 24VDC 1A l Contact Type Bifurcated l Contact Resistance 100M Max l Relay ON OFF Time 5 msec typical l Coil Voltage 12V 33mA for each relay u Isolated Inputs The 16 opto isolated D I channels are used for sensing digital inputs and providing 1 000V for isolation Each channel can be config...

Страница 10: ... without AC Filter 1ms with AC Filter u Power Consumption l 5VDC 400 mA typical l 12VDC 550mA maximum all relays are energized u Interface Characteristic l I O Connector 37 pin Female D type connector l Compatible Bus IBM PC PCI Bus u Physical Environment l Operating Temperature 0 60 l Storage Temperature 20 80 l Humidity 5 90 non condensing l Dimension 173mm L 110mm W ...

Страница 11: ...ied 2 1 What You Have In addition to this User s Manual the package includes the following items l PCI 16P16R Relay Actuator Isolated D I Card l Two DB 37 male connectors l 40 pin to DB 37 converter flat cable If any of these items is missing or damaged contact the dealer from whom you purchased the product Save the shipping materials and carton in case you want to ship or store the product in the...

Страница 12: ...re there are no shipping and handling damages on the module before processing After opening the card module carton extract the system module and place it only on a grounded anti static surface component side up Again inspect the module for damage Press down on all the socketed 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 ...

Страница 13: ...Installation 7 2 3 PCI 16P16R s Layout Figure 2 1 PCI 16P16R layout ...

Страница 14: ... referred to as shorted with the plastic cap inserted over two pins of the jumper A jumper is open with the plastic cap inserted over one or no pin s of the jumper 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 The di...

Страница 15: ...of the input signal selection is DC type which is shown as below Input Signal Selection AC Input DC Input Default Jumper J1 J9 AC position DC position 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 ...

Страница 16: ...hannel 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 COMn common pin of relay n 6 GND ground 7 NC Not Connected Note Isolated Digital Input is polarity free so you can connect the digital inputs signal on input A and input B points and do not care the polarity ...

Страница 17: ... 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 ...

Страница 18: ...e of the 8 registers Here you will get all detailed information of the 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 I O Base address Read Write Base 00 Isolated input...

Страница 19: ... 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 The relationships between the bits of relay output register and their corresponding relay are shown as below Relay Output Register Base 00 Attribute Write Data Format Bit 7 6 5 4 3 2 1 0 RO7 RO6 RO5 RO4 RO3 RO2 RO1 RO0 Bit 15 14 13 12 11 1...

Страница 20: ...ut Register Base 00 Attribute Read Data Format Bit 7 6 5 4 3 2 1 0 DI7 DI6 DI 5 DI4 DI3 DI2 DI1 DI0 Bit 15 14 13 12 11 10 9 8 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 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 Form C Relay R0 R4 a...

Страница 21: ...NO post If the control bit is low 0 the CM post will make contact with NC post In normal power up and reset the relay is at low status 2 Form A Relay R5 R7 and R13 R15 Form A relay only has two contacts NC Normal Close and CM Common The CM post can make contact with NO post or not depend on the control bit When the control bit is high 1 the CM post contacts with NO post If the control bit is low 0...

Страница 22: ...ntrol 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 1 Read operation A read operation on BASE 00 will read in the value status of 16 corresponding digital input channels For example To get the status of these channels using the BASIC language Value INP BASE 00 In C Language Value inp BASE 00 2 Write operati...

Страница 23: ...or 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 In C Language Status inp BASE 02 ...

Страница 24: ...4 2 Installation 4 2 1 Hardware Driver Installtion 1 Turn off your PC power open PC chassis slide PCI 16P16R card into a PCI slot and secure the card with a screw 2 Restart your computer Under Windows the main program screen will display PCI bridge or Find new device then Add New Hardware Wizard will be executed Click Next when the screen appears This wizard searches for new drivers for PCI bridge...

Страница 25: ...nt device status by using device manager now 4 2 2 Sample Program Installation 1 Insert in the floppy disk supplied run Setup exe under folder a win98 to install win98 sample program 2 Keep click Next or Yestill Finish Recommend restarting your PC after this installation 3 Under DOS environment Create a directory at C drive copy PCI16PR EXE file on A DOS to that directory Execute PCI16PR EXE This ...

Страница 26: ...rt 2 PCI16PR has already been registered 4 3 1 A pplication with VC In VC project edit environment Use menu Project and then Add to Project to find Components and Controls Select Registered AciveX Controls in dialog Components and Controls Click Insert to add class CPCI16PR into source code At the mean time PCI16PR will be added into Controls Bar of resource editor automatically For example CPCI16...

Страница 27: ...te a control object automatically and PCI16PR method can be called from now on For example PCI16PR1 Init 0 4 4 API DESCRIPTION 4 4 1 API for Win98 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 reference...

Страница 28: ...n 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 2 void Exit Function Release hardware and system parameter Recommend call it before application ends otherwise the system resources will not be released No parameter No return value 3 short DataIn Function Data input Read PCI 16P16R value from input t...

Страница 29: ...hannels Parameter 16 digits short integer corresponding to 16 channels relay on off staus No return value 5 short ReadBack Function Readback output data According to PCI16P16R hardware handbook it can read back the real on off status of the relays after the output of the previous data No parameter Return 16 digits short integer see Part 1 3 Note The method descriptions above are with VC Data type ...

Страница 30: ... 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 PCI16PRM Lib Mode Medium Library PCI16PRC Lib Mode Compact Library PCI16PRL Lib Mode Large Library PCI16PRH Lib Mode Huge Library They also supply the following functions 1 BOOL _16P16R_Init int CardNum Initialization function see part 1 1 2 unsigned int_16P...

Страница 31: ... 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 3 void _16P16R _OutData int Cardnum int data Data output function 4 unsigned int_16P16R_ReadBack int Cardnum Output readback function Please refer Example source code for your application ...

Страница 32: ...uit can suppress the coil EMF to a low level However note that incorrect use will result in an adverse effect Typical contact protection circuits are given below 1 RC Circuit This circuit is suitable for DC application If the load is a timer leakage current which flows through the RC circuit can cause faulting operation The circuit below is suitable for both AC and DC applications If the load is a...

Страница 33: ...imit the current when the power is turned on next time Test to confirm Use a capacitor with a breakdown voltage of 200 to 300V Use AC type capacitors non polarized for AC circuits 2 Diode Circuit This circuit is suitable for DC application The diode connected in parallel causes the energy stored in the coil to flow to the coil in the form of current and dissipates it as joule heat at the resistanc...

Страница 34: ...bove 2 to 3 times the power supply voltage 3 Diode Zener diode Circuit This circuit is also suitable for DC application It s effective when the release time in the diode circuit is too long Device Selection Use a zener diode with a zener voltage about the same as the power supply voltage 4 Varistor Circuit This circuit is also suitable for both AC DC applications Using the stable voltage character...

Страница 35: ... Contact Protection Circuits 29 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 ...

Отзывы: