Home
1. Introduction
Contents
1. Figure 1 5 PCI P16POR16 Board Layout Version 1 1 Date 1999 09 Page 10 PCI P8R amp P16R16 P16C16 PI6PORI16 User s Manual 1 4 3 Jumper Setting e For PCI P8R8 P16R16 P16C16 PIGPORIG You can change the I O card configuration simply by setting jumpers on this board Each digital input channel can be jumper configured single pole RC filter with a time constant of 1 2 ms The table listed below shows the digital input channels and the corresponding jumpers Lm m m m ms pa m3 pma m ps ma pm Jer e mis pm JPS JP16 DII5 Table 1 2 Jumper assignment The figure below shows how to select the digital input type 10 e Without Filter With AC Filter For DC Signal For AC Signal Default Settling Figure 1 6 Jumper Setting If you are using AC input signals you must short the AC FILTER pin2 3 of the corresponding jumpers If you are using DC input signals the AC FILTER is optional If the DC input signals response less than 20 us set the filter off If you want a slow response about 5 to 10 ms to reject the noise or contact bouncing short the AC FILTER Pin2 3 Page 11 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Version 1 1 Date 1999 09 Page 12 PCI PSRS PIGRI6 PIGCIG PIGPORIG User s
2. ICPDAS PCI P16R16 P16C16 P16POR16 Card 9 16 1999 Cancel Figure 10 Click on the button Next gt Version 1 1 Date 1999 09 Page 26 PCI PSRS PIGRI6 PIGCIG PIGPORIG User s Manual Add New Hardware Wizard Windows driver file search for the device ICPDAS PCI P16R16 P16C16 P16POR16 Card Windows is now ready to install the selected driver for this device Click Back to select a different driver or click Next to continue Location of driver FAPROJS PCI_P1 1 P16C16 INF Figure 11 Click Next gt Note PCI P8R8 uses the driver P8R8 inf Add New Hardware Wizard ICPDAS PCI P16R16 P16C16 P16POR16 Card Windows has finished installing the software you selected that your new hardware device requires Cancel Figure 12 Click Finish Page 27 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual EX Exploring Control Panel tl bi Ez Fe wa E Ei FE FONTETO Desktop a Adds removes or changes settings f E E My Computer Internet Changes your Internet settings 3 Floppy 4 Keyboard Changes settings for your keyboard 0 LiveUpdate Symantec LiveUpdate Manager E Modems Installs a new modem and changes n D Mouse Changes settings for your mouse Changes settings for multimedia devic Configures network hardware and so Changes passwords and sets securit Y Power Management Changes Power Management se
3. printf Digital Output gt 0000H Digital Input gt 04xH n wInData P16R16_DO P16R16_BaseAddress OxFFFE Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress Digital input printf Digital Output gt FFFFH Digital Input gt 04xH n wInData PI6R16 DO PI6RI6 BaseAddress 0x5555 Digital output delay 500 Delay a little time 500ms 5 wInData P16R16_DI P16R16_BaseAddress Digital input printf Digital Output gt 5555H Digital Input gt 04xH n wInData P16R16_DO P16R16_BaseAddress OxAAAA Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress Digital input printf Digital Output gt AAAAH Digital Input gt 04xH n wInData PCI DriverClose return 0 Version 1 1 Date 1999 09 Page 46 PCI P8R amp P16R16 P16C16 PI6PORI16 User s Manual 4 12 P8R8 DO Description Send 8 bits data to PCI P8R8 s D O port Syntax Void PSR8 DO WORD BaseAddr WORD OutData Input Parameter BaseAddr D O port base address OutData the 8 bit data sent to D O port Return Value void e Demo Program Please referring page 46 4 13 P8R8 DI e Description Read 8 bits data from PCI P8R8 s D I port e Syntax WORD P8R8 DI WORD wBaseAddr e Input Parameter wBaseAddr D O port base address e Return Value the 8 bits value reading from D I port Page 47 Version 1 1 Date
4. 02d Board Name PCI TMC12 n 1 break case 3 printf 02d Board Name PCI DA16 n i break case 4 printf 02d Board Name PCI DA8 n i break printf gt Addr0 04x Addr1 04x Addr2 0x n wAddress0 wAddress1 wAddress2 printf gt Addr3 04x Addr4 04x Addr5 0x n n wAddress3 wAddress4 w Address5 Getting the Driver version wRetVal PCI_GetDriverVersion amp wVal printf Driver Version x n wVal call a function to test if exact calling LIB nVal PCI_ShortSub2 1 2 printf P180X_ShortSub2 1 2 d n nVal Page 49 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual call another function to test if exact calling LIB fVal PCI FloatSub2 1 0 2 0 printf P180X FloatSub2 1 0 2 0 fn fVal if wP8R8No lt 1 putch 0x07 printf Please plug one PCI P8R8 in PC n exit 0 IO A PCI PSR8 DO DO demo 28 HEE RR ll lll kofeo leal ll lee printf The PCI P8R8 DO DI testing n P8R8_DO P8R8_BaseAddress 0x0000 Digital output delay 500 Delay a little time wInData P8R8_DI P8R8_BaseAddress Digital input printf Digital Output gt 0000H Digital Input gt 04xH n wInData PSR8 DO P8R8 BaseAddress OxFFFF Digital output delay 500 Delay a little time wInData P8R8_DI P8R8_BaseAddress Digital input printf Digital Output gt FFFFH Digital Input gt
5. 04xH n wInData P8R8_DO P8R8_BaseAddress 0x5555 Digital output delay 500 Delay a little time wInData P8R8_DI P8R8_BaseAddress Digital input printf Digital Output gt 5555H Digital Input gt 04xH n wInData P8R8_DO P8R8_BaseAddress OxAAAA Digital output delay 500 Delay a little time wInData P8R8_DI P8R8_BaseAddress Digital input printf Digital Output gt AAAAH Digital Input gt 04xH n wInData PCI DriverClose return 0 Version 1 1 Date 1999 09 Page 50
6. After the user plug the PCI P8R8 P16R16 P16C16 P16POR16 on main board and turn on the power of computer system The user will see these windows as followings Please follow these steps to finish this driver installation Refer to Figure 1 to 15 Add New Hardware Wizard Figure 1 Click on the button Next gt to install driver Page 21 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Add New Hardware Wizard Mindo will mor search lor ar new Plug and Play devices On your system Tour screen mey go blank during this process This is normal To continue chck Med t Hack Cancel Figure 2 Click on the button Next gt to search device Add New Hardware Wizard This wizard searches for new drivers for PCI System Peripheral A device driver is a software program that makes a hardware device work Version 1 1 Date 1999 09 Page 22 PCI PSRS PI6RI6G PI6CI6 PIGPORIG User s Manual Figure 3 Click on the button Next gt to search drivers Add New Hardware Wizard C Figure 4 Select the second item and click Next gt Page 23 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Add New Hardware Wizard Selectthe type of device from the list below then click Next Multi function adapters a Network adapters Other detected devices Other devices PerCl socket Parts COM amp LPT Printer SCSI controlle
7. P16R16 TC HUGE LIB P16R16 TC LARGE DEMO P16R16 TC LARGE LIB lt huge mode demo programs lt huge mode library P16R16H LIB lt large mode demo programs lt large mode library P16R16L LIB Demo code Lib for MSC lt huge mode demo programs lt huge mode library PI6R16H LIB lt large mode demo programs lt large mode library P16R16L LIB Demo code Lib for TC lt huge mode demo programs lt huge mode library PIGR16H LIB lt large mode demo programs lt large mode library P16R16L LIB Please see readme txt in sub directory of DEMO and LIB for further information 3 3 Software Installation for WINDOWS 95 98 NT The software installation for WINDOWS 95 98 NT as follows Refer to readme txt of CD ROM Version 1 1 Date 1999 09 Page 30 PCI PSRS PIGRI6G PIGCIG PIGPORIG User s Manual 4 1 O Control Register The First 16 double words of a PCI device s configuration space is referred to as the device s configuration region In the 16 0 15 double words the 04 05 06 07 08 and 09 double words is referred to as Base AddressO Base Address1 Base Address2 Base Address3 Base Address4 and Base Address5 For more detail information for these 16 double words please referring the book titled PLUG AND PLAY SYSTEM ARCHITECTURE written by Tom Shanley Addison Wesley Publish Company 1995 These base address is utilized to as control register and or 1 O register for many data
8. 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual e Demo Program OO A This program is developed by Turbo C 2 0 KIA E sk sk se se oes se seo sk koko kokoso koko koko ko eo KO 3K 3K KO he KO OK he 26 2 KO he ak 2k 3K he gt K gt K Demo 2 One P8R8 card demo NO A include P16R16 H int main int ij WORD nVal float fVal WORD wBoards wRetVal wVal WORD wlInData WORD wTypeID WORD wAddressO wAddress1 wAddress2 WORD wAddress3 wAddress4 wAddress5 WORD PI6GRI6 BaseAddress PSR8 BaseAddress WORD wP16R16No wP8R8No clrscr initiaing PCI P16R16 card and detect how many P16R16 P8R8 card in PC wRetVal PCI DriverInit amp wBoards printf Threr are 96d P180X Cards in this PC n wBoards if wBoards O putch 0x07 putch 0x07 putch 0x07 printf There are no P16R16 P8R8 card in this PC n exit 0 dump every P16R16 P8R8 card s configuration address space for i 0 i lt wBoards i Version 1 1 Date 1999 09 Page 48 PCI PSRS PIGRI6 PIGCIG PIGPORIG User s Manual wRetVal PCI GetConfigAddressSpace 1 wTypeID amp wAddress0O amp wAddress1 amp wAddress2 amp wAddress3 amp wAddress4 amp wAddress5 if wRetVal switch wTypelD case 0 printf 02d Board Name PCI P16R16 n i P16R16_BaseAddress wAddress2 wP16R16No break case 1 printf 02d Board Name PCI P8R8 n i P8R8_BaseAddress wAddress2 wP8R8No break case 2 printf
9. Manual 1 5 Pin Assignments PCI P8R8 PCI P16R16 Pin Assignment DODODODO dnd ALS LLTTITITI OP NUDUNRVINa OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO NDUKRVON 4 Extender Cable NO Normal Open COM Common NC Normal Close DIA Digital Input Point A DIB Digital Input Point B Page 13 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual PCI P16C16 Pin Assignment Ext Power 1 Ext Power 1 GND 1 GND 1 Ext Power 2 Ext Power 2 GND 2 GND 2 OMDNOORWNH Ext Power 3 Ext Power 3 GND 3 GND 3 Ext Power 4 Ext Power 4 GND 4 GND 4 DIB_0 DIB_8 DIB_9 DIB_10 DIB 11 DIB 12 DIB 13 DIB 14 DIB 15 Ext Power 3 Ext Power 3 GND 3 GND 3 Ext Power 4 Ext Power 4 GND 4 GND 4 00000000000000000000 O O O O O O O O O O O O O O O O O O O O DIB_8 External Cable DIB_9 DIB_10 DIB_11 Ext Power External Power Input DIB_12 DIB 13 GND External Power Ground DIB_14 OUT Open Collector Output DIB_15 e DIA Digital Input Point A DIB Digital Input Point B Version 1 1 Date 1999 09 Page 14 PCI PSRS PIGRI6 PIGCIG PIGPORIGO User s Manual PCI P16POR16 Pin Assignment OOOO NU OMNOOKRWNH NO 8 NO 9 NO 10 NO 11 NO 12 NO 13 NO 14 NO 15 OO O O O O O O O O O O O O O O O O O O O 0000000000000000000 DIA_1 DIA_2 DIA_3 DIA_4 DIA 5 DIA 6 DIA 7 1 2 3 4 5
10. acquisition board In PCI P16R16 and PCI P8R8 board the base address2 is utilized to as the base address of digital in and digital out So the Digital I O functions for PCI P16R16 and PCI P8R8 are coded as follows define WORD unsigned int define UCHAR unsigned char void PI6R16 DO WORD BaseAddr WORD wOutData outport BaseAddr wOutData WORD P16R16_DI WORD BaseAddr WORD DigitalIn DigitalIn inport BaseAddr return DigitalIn void P8R8_DO WORD BaseAddr WORD wOutData outportb BaseAddr wOutData UCHAR P8R8_DI WORD BaseAddr UCHAR DigitalIn DigitalInzinportb BaseA ddr return DigitalIn Page 31 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Please referring following program code to get these six base address for PCI P16R16 and PCI P8R8 These code is base on PCI Plug amp Play mechanism 2 NO Reading PCI card s configuration address space ERE RE SE RE 2 2 SES SE SE sese sese oe oe oe ok o o k k k k k k fe kk oe koko ko k k k k kk k kkk k k 2 k kK K k WORD GetAddress void DWORD dConfigAddress dBaseAddress WORD HiWord LoWord WORD ReturnCode UCHAR Bus Device Function WhichLong WORD VendorID DeviceID WORD wlrqNumber wTotalBoards 0 initial board number is 0 Bus 0 for Bus 0 Bus lt 10 Bus Function 0 WhichLong 1 for Device 0 Device lt 32 Device WhichLong 0 WriteAddress Bus Device Function WhichLong VendorID
11. inport Oxcfc DeviceID inport Oxcfe if VendorID 0x 1234 amp amp DeviceID 0x1616 PCI P16R16 i WhichLong 4 Base Address 0 WriteAddress Bus Device Function WhichLong dBaseAddress inpd Oxcfc wBaseAddr0 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 0 wBaseAddr0 Version 1 1 Date 1999 09 Page 32 PCI PSRS PIGRI6G PIGCIG PIGPORIG User s Manual WhichLong 5 Base Address 1 WriteAddress Bus Device Function WhichLong dBase Address _inpd Oxcfc wBaseAddr1 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 1 wBaseAddr1 WhichLong 6 Base Address 2 WriteAddress Bus Device Function WhichLong dBaseAddress inpd Oxcfc wBaseAddr2 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 2 2wBaseA ddr2 WhichLong 7 Base Address 3 WriteAddress Bus Device Function WhichLong dBaseAddress inpd Oxcfc wBaseAddr3 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 3 wBaseAddr3 WhichLong 8 Base Address 4 WriteAddress Bus Device Function WhichLong dBaseAddress inpd Oxcfc wBaseAddr4 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 4 wBaseAddr4 WhichLong 9 Base Address 5 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr5 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 5 wBaseAddr5 store the type name ID wConfig
12. provides 16 channels PhotoMos Relay output and 16 channels isolated digital input The PhotoMos relay output switch up to 350Vac 130mA max and designed LED indicated for output status The isolated digital input as same as the PCI P16R16 provides AC DC input and R C filter Page 3 Version 1 1 Date 1999 09 PCI P8R8 P16R16 P16C16 P16POR16 User s Manual 1 1 Features and Applications 1 1 1 Features PCI P8R8 PCI P16R16 PCI P16C16 PCI P16POR16 Common SV PCI Bus add on card Features Optically isolated digital input e AC DC digital signed input AC digital input with filter by jumper setting Input channel 8 16 16 16 Input type Optically isolated digital input Output channel 8 16 16 16 Output type Relay Output Relay output Transistor PhotoMos Relay Open collector Led indicated No No External Power Output Status status Table 1 1 Features of PCI P8R8 P16R16 P16C16 P16POR16 card 1 1 2 Applications e Factory automation e Laboratory automation e Communication switching e Security control e Product test e Energy management Version 1 1 Date 1999 09 Page 4 PCI PSRS PIGRI6 PIGCIG PIGPORIG User s Manual 1 2 Block Diagram PCIBUS pm EEPROM gt PCI Controller Relay ll ce 8 Trad Buffers i LS amp Drivers Photo coupTe Buffers Photo couple amp Filters Photo couple Photo couple
13. 1 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual 4 9 PCI GetCongfigAddressSpace e Description To read configuration space for P16R16 and P8R8 board then getting the content of Base AddressO Base Address1 Base Address2 Base Address3 Base Address4 and Base Address5 e Syntax WORD PCI GetConfigAddressSpace WORD wBoadNo WORD wTypelD WORD wAddress0 WORD wAddressl WORD wAdd ress2 WORD wAddress3 WORD wAddress4 WORD wA ddress5 e Input Parameter wBoardNo The Board number for P16R16 P8R8 board wTypeID Address of wType 0 this board is PCI P16R16 1 this board is PCI_P8R8 2 this board is PCI TMCI2 3 this board is PCI DA16 4 this board is PCI DAS wAddressO wAddress1 wAddress2 wAddress3 wAddress4 wAddress5 the six base address of a PCI device will de stored in these variables e Return Value NoError OK FindBoardError can t detect the exist of P16R16 P8R8 ExceedBoardError can t open the NAPPCI V XD in windows95 98 Version 1 1 Date 1999 09 Page 42 4 10 4 11 Page 43 PCI P8R amp P16R16 P16C16 PI16POR16 User s Manual P16R16 DO Description Sead 16 bit data to P16R16 s D O port Syntax Void PIGRI6 DO WORD BaseAddr WORD OutData Input Parameter BaseAddr D O port base address OutData the 16 bit data sent to D O port Return Value void Demo Program Please referring to page 42 P16R16 DI Description Read 16 bits data from P16R16 s
14. 30Vdc 600mA Page 7 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual 1 4 Hardware Configuration This chapter describes how to unpack this I O card and how to install to your system Both the unpacking information and the jumper setting are described in the following text This manual should be carefully reading when unpacking and installation before 1 4 1 Unpacking This I O card was well tested and carefully inspected both mechanically and electrically before shipping There should be free of marks and scratches and must be in perfect order before delivering However some unconditional damages may occur in unpacking Users should read this section before unpacking the card Call the carriers and retain the carton if there is error CAUTION This card contains sensitive electronic components that can be easily damaged by static electricity 1 This card should be packed with an anti static mat 2 The user should wear an anti static wristband grounded at the same point at the anti static mat 3 Inspect the carton for obvious damage Both shipping and handing may cause damages Be sure there are no shipping and handing damages on the card before Using 4 After opened the carton place the system board handle on a grounded anti static surface and let the component side up CAUTION Do not Apply Power to the Board if it has been damaged e You are now ready to install y
15. 6 7 8 9 10 11 DIA O 12 13 14 15 16 External Cable 17 18 19 DIA Digital Input Point A DIB Digital Input Point B Page 15 Version 1 1 Date 1999 09 PCI P8R8 P16R16 P16C16 P16POR16 User s Manual 2 Hardware applications Model Number OUTPUT Input PCI P8R8 PCI P16R16 Relay Output Optical isolated PCI P16C16 Transistor Output Optical isolated Open collector PCI PI6PORI6 PhotoMos Relay Output Optical isolated 2 1 Relay Output e For PCI P8R8 PCI P16R16 Only Whenever users write data to the output control register relays will switching to NC or NO specified by the control code A 1 in the control register will energizes the corresponding relay and the relay will be switching from COM to the NO normally open A 0 in the control register will turn off the corresponding relay and the relay will be switching from COM to the NC normally close The control register are power on to be in NC A hardware reset signal or programmable reset signal will also turn the relay to NC Following figures show how to use the relay Basic Circuitry Current Rating 0 3 A Relay Contact Power Supply Figure 2 1 Basic Relay Circuit Version 1 1 Date 1999 09 Page 16 PCI PSRS PIGRI6G PIGCIG PIGPORIG User s Manual Heavy Loading Application gt 0 3 A P16R16DIO Power Relay Relay C2 e Contact Power Relay a Heavy Loading Figure 2 3 Heavy load relay ci
16. A float fB EXPORTS short CALLBACK PCI ShortSub2 short nA short nB EXPORTS WORD CALLBACK PCI GetDIIVersion void EXPORTS WORD CALLBACK PCI Driverlnit WORD wTotalBoards EXPORTS void CALLBACK PCI DriverClose void EXPORTS WORD CALLBACK PCI GetDriverVersion WORD wVxdVersion Version 1 1 Date 1999 09 Page 36 PCI PSRS PI6RI6 P16C16 PIGPORIG User s Manual EXPORTS WORD CALLBACK PCI GetConfigAddressSpace WORD wBoardNo WORD TypeID WORD wAddressO WORD wAddress1 WORD wAddress2 WORD wAddress3 WORD wAddress4 WORD wAddress5 EXPORTS WORD CALLBACK PCI WhichBoardActive void EXPORTS void CALLBACK P16R16 DO WORD BaseAddr WORD OutData EXPORTS WORD CALLBACK PI6R16 DI WORD BaseAddr EXPORTS void CALLBACK P8R8 DO WORD BaseAddr WORD OutData EXPORTS BYTE CALLBACK P8R8 DI WORD BaseAddr 4 3 PCI FloatSub2 O Description To perform the subtraction as A B in float data type This function is provided for testing DLL linkage purpose O Syntax float PCI FloatSub2 float fA float fB Input Parameter fA 4 bytes floating point value fB 4 bytes floating point value O Return Value the value of fA fB Page 37 Version 1 1 Date 1999 09 PCI P8R8 P16R16 P16C16 P16POR16 User s Manual 4 4 PCI ShortSub2 4 5 O Description To perform the subtraction as A B in short data type This function is provided for testing DLL linkage purpose O Syntax float PCI ShortSub2 short nA short nB Input Paramete
17. ATE window initial SEHR E Ses s eoo koko koko koko So o Ae eo SO KOKO KO SO he 2 k k k kk k k k akk k he he ak ak akk ak ak ak ak akak ak ak A NOTICE call PCI Driverlnit to initialize the driver NOIA Initial the device driver and return the board number in the PC wInitialCode PCI_DriverInit amp wTotalBoard if wInitialCode NoError MessageBox hwnd No PCI card in this system PCI Card Error MB_OK Version 1 1 Date 1999 09 Page 40 PCI PSRS PI6RI6 P16C16 PIGPORIG User s Manual 4 7 PCI DriverClose Description To terminate the device driver napwnt sys for window NT nappci vxd for Windows 95 98 In DOS version this function is provided just for the uniformity or W32 program And it do nothing but return a NoError Syntax void PCI DriverClose void Input Parameter void Output Parameter void 4 8 PCI GetDriverVersion Description To get the version number of device driver nappci vxd for windows 95 98 napwnt sys for Windows NT syntax WORD PCI GetDriverVersion WORD wDriverVersion O Input Parameter wDriverVersion address of wDriverVersion WDriverVersion 200 hex Version 2 00 Return Value NotError OK NotFoundBoard can t detect the exist of P16R P8R8 DriverCallError can t open the NAPPCI VXD in Windows 95 98 can t open the NAPWNT SYS in Windows NT DriverHandleError return handle is wrong when open device driver Page 4
18. Address wAddress2 wP16R16No break case 1 printf gt 02d Board Name PCI P8R8 n i P8R8_BaseAddress wAddress2 wP8R8No break case 2 printf 02d Board Name PCI TMC12 n i break case 3 printf 02d Board Name PCI DA16 n i break case 4 printf gt 02d Board Name PCI DA8 n i break printf Addr0 04x Addr1 04x Addr2 960xW wAddress0 wAddressl wAddress2 printf Addr3 04x Addr4 04x Addr5 0x n n wAddress3 wAddress4 wAddress5 Getting the Driver version wRetVal PCI_GetDriverVersion amp wVal printf Driver Version x n wVal call a function to test if exact calling LIB nVal PCI_ShortSub2 1 2 printf P180X_ShortSub2 1 2 d n nVal call another function to test if exact calling LIB Val PClBloatSub200 2 0 Page 45 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual printf P180X FloatSub2 1 0 2 0 f n fVal if wPIGRI6No 1 putch 0x07 printf Please plug one PCI P16R16 in PC n exit 0 OO PCI P16R16 DO DO demo 28 2 EER CR RA ICR RR CCI printf The PCI P16R16 DO DI testing n P16R16_DO P16R16_BaseAddress 0x0000 Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress Digital input
19. D I port Syntax WORD PI6RI6 DI WORD BaseAddr Input Parameter BaseAddr D O port base address Return Value the 16 bits value reading from D I port Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual e Demo Program Ero se spes ook ae he ese he ope spese o koko So ooo KO So eee A This program is developed by Turbo C 2 0 IN A Demo 1 One PI6RI6 card demo NI A include P16R16 H int main int Lj WORD nVal float fVal WORD wBoards wRetVal wVal WORD winData WORD wTypeID WORD wAddressO wAddress1 wAddress2 WORD wAddress3 wAddress4 wAddress5 WORD P16R16_BaseAddress P8R8_BaseAddress WORD wPI6R16No wP8R8No clrscr initiaing PCI P16R16 card and detect how many P16R16 P8R8 card in PC wRetVal PCI_DriverInit amp wBoards printf Threr are d PCI P16R16 P8R8 Cards in this PC tally n wBoards if wBoards 0 putch 0x07 putch 0x07 putch 0x07 printf There are no P16R16 P8R8 card in this PC n exit 0 dump every P16R16 P8R8 card s configuration address space for i 0 i lt wBoards i Version 1 1 Date 1999 09 Page 44 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual wRetVal PCI GetConfigAddressSpace i amp wTypeID amp w AddressO amp w Address1 amp w Address2 dew Address3 amp wAddress4 amp w Address5 if wRetVal switch wTypelD case 0 printf 02d Board Name PCI P16R16 n i P16R16_Base
20. Figure 1 1 Functional Block diagram Page 5 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual 1 3 Specifications Product PCIPIGRIG PCI PSRS Channels l6 B Photo coupler PC 814 PC 814 per channel AC 50 IK HZ AC 50 IK HZ Input Impedance 1 2 K Response Time Without Filter 20US Without Filter 20uS With Filter 2 2mS With Filter 2 2mS Relay Output Channels 1682 Relay Type 8 SPDT 8 SPST 4 SPDT 4 SPST i AC 120V 0 5A AC 120V 0 5A DC 24V 1A Insulation Resistance 1 000 M Q 1 000 MQ Electrical 1 x 10 1 x 10 initial Switching Power 60VA 24W Operating Temperature 0 60 deg C Common Storage Temperature 20 70 deg C 0 90 183mm X 105 mm Version 1 1 Date 1999 09 Page 6 PCI PSRS PI6RI6 P16C16 PIGPORIG User s Manual Product PCI PIGCIE PCI PIGPOR16 16 Photo coupler per channel Input Voltage AC DC 5 24 V AC 50 1K HZ Withstanding Voltage IKV IKV NK Filter 20uS Without Filter 20US With Filter 2 2mS With Filter 2 2mS 16 Transistor PhotoMos Relay Open collector Form A max Peak AC OUTPUT Switching Power 30Vdc 350Vac Output On Resistance 23 LED indicated External Power Input Output status status Operating Temperature 0 60 deg C Common Storage Temperature 20 70 deg C 0 90 Dimension 183mm X 105 mm ON seal Em A lu E e lo RB a E A Laj len N AR gt Ss 20 mA max 24V
21. PCI PSRS P16R16 P16C16 P16POR16 User s Manual Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assume no liability for damages consequent to the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright March 1998 1999 by ICP DAS All rights are reserved Trademark The names used for identification only maybe registered trademarks of their respective companies License The user can use modify and backup this software ON a single machine The user may not reproduce transfer or distribute this software or any copy in whole or in part Page 1 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Table of Contents 1 INTRODUCTION erc 3 1 1 FEATURES AND APPLICATIONS e esesesesescssssssssssesqsqsqsqrqsqsrssssesssssqsqsqssrsssrssqsqsqsssssssst 4 12 BLOCK DIAGRAM AR E 5 3 SPECIFICATIONS 5 tii a rte SA e A ABSO Bt BE ARAB aE e E RA eB 6 1 4 HARDWARE CONFIGURATION ssssssssssssesssssqssssssssssssssssresqsqssssrsss srqrqrqsqrqsqrssqsq
22. Space wTotalBoards 6 TYPE_P16R16 Page 33 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual wTotalBoards increment board number wGetAddress 1 if VendorID 0x1234 amp amp DeviceID 0x0808 PCI P8R8 WhichLong 4 Base Address 0 5 WriteAddress Bus Device Function WhichLong dBaseAddress inpd Oxcfc wBaseAddr0 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 0 wBaseAddr0 WhichLong 5 Base Address 1 WriteAddress Bus Device Function WhichLong dBase Address _inpd Oxcfc wBaseAddr1 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 1 wBaseAddr1 WhichLong 6 Base Address 2 WriteAddress Bus Device Function WhichLong dBase Address _inpd Oxcfc wBaseAddr2 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 2 wBaseAddr2 WhichLong 7 Base Address 3 WriteAddress Bus Device Function WhichLong dBaseAddress inpd Oxcfc wBaseAddr3 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 3 2wBaseA ddr3 WhichLong 8 Base Address 4 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfo gs Version 1 1 Date 1999 09 Page 34 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual wBaseAddr4 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 4 wBaseAddr4 WhichLong 9 Base Address 5 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxc
23. fc wBaseAddr5z WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 5 wBaseAddr5 store the type name ID wConfigSpace wTotalBoards 6 TYPE_P8R8 wTotalBoards increment board number wGetAddress 1 j j if wTotalBoards gt 16 return NotFoundBoard else return NoError void WriteAddress UCHAR bBus UCHAR bDevice UCHAR bFunction UCHAR bWhichLong DWORD dOutData WORD HiWord LoWord UCHAR HiByte LoByte HiWord 0x8000IbBus HiByte bDevice lt lt 3 lbFunction LoByte bWhichLong lt lt 2 amp Oxfc LoWord WORD HiByte 8 ILoByte dOutData DWORD HiWord 16 LoWord _outpd Oxcf8 dOutData p E Page 35 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual 4 1 Function Call in P16R16 DLL A function in P16R16 DLL DLL for Windows 95 98 NT will be exact same prototype to P16R16H LIB huge mode library for DOS and P16R16L LIB large mode library for DOS It is convenient to develop application under different platform 4 2 P16R16 H define EXPORTS extern C declspec dllimport return code define NoError define DriverHandleError define DriverCallError define NotFoundBoard define FindBoardError define ExceedBoardNumber nA A U N e O define Type Name ID define TYPE_P16R16 define TYPE_P8R8 define TYPE_TMC12 define TYPE_DA16 define TYPE DAS kw D O EXPORTS float CALLBACK PCI FloatSub2 float f
24. our card Version 1 1 Date 1999 09 Page 8 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual 1 4 2 Board Layout PCI P8R8 Input Resistor 1 2K TS Figure 1 2 PCI P8RS8 Board Layout PCI P16R16 NUNU Input Resistor 1 2K Page 9 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Transistor PC RC A External Power LED indicator External Power Protection Pico Fuse PCI P16C16 Figure 1 4 PCI P16C16 Board Layout DDD O OD DO ODO O I OOO OOOOOOOO LED indicator PCI PI6PORI6
25. put can still be changed to a larger range by choosing suitable external resistors The following figure shows how to connect to a larger input Users should note that the input current should be limited between 2mA to 20mA too large input current will burn down the internal resister Ri and lower input current will not turn on the photo coupler isolator You can calculate input voltage and current then replace resister Ri Rj 12K Q 1W External Circuit On board circuits PC 814 Figure 2 4 Isolated Digital Input If 2mA 20mA A roughly calculation example if Vin 120V we ignore photo coupler turn on voltage We ll get Vin 1 Ri Vin 120 V I 10 mA Ri Vin I 120 V 0 01 A 12000 If you replace 12K as resistor Ri we should calculate the power consumption of Ri as following 2 2 P I Rex l0mA 12K 1 2W The power consumption is 1 2 watt but choice 1 5 or 2 watt is better Thus we can choose a 12K 2W resistor to replace the resistor Ri Version 1 1 Date 1999 09 Page 20 PCI PSRS PIGRI6 PIGCIG PIGPORIGO User s Manual 3 Software Installation Guide e FOR PCI P8R8 PCI PI6R16 PCI PI6CI6 PCI PI6PORI6 The software package for this card consists of CD ROM Please choosing the exact disk for setup according to what platform you using on PC 3 1 Plug and Play of Windows 95 98 Because Windows 95 98 provides the Plug and Play To setup the I O card two stage must be completed
26. r nA 2 bytes short data type value nB 2 bytes short data type value O Return Value the value of nA nB PCI GetDilVersion Description To get the version number of PI6R16 DLL Syntax WORD PCI GetDIIVersion Void Input Parameter Void Return Value 201 hex for version 2 01 Version 1 1 Date 1999 09 Page 38 PCI PSRS PI6RI6 P16CI6 PIGPORIG User s Manual 4 6 PCI Driverlnit Description To initial the device driver napwnt sys for window NT nappci vxd for Windows 95 98 It is necessary to call the function during your program initial time Syntax WORD PCI Driverlinit WORD wTolalBoard Input Parameter wTotalBoard address of wTotalBoard When wTotalBoard 1 either PI6R16 or P8R8 in PC When wTotalBoard 2 possibility of combination gt One PI6RI6 and one P8R8 in PC Two P16R16 boards in PC Two P8R8 boards in PC Return Value NoError OK NotFoundBoard can t detect the exist of P16R16 P8R8 DriverCallError can t open the NAPPCI VXD in Windows 95 98 Can t open the NAPWNT SYS in Windows NT DriverHandleError return handle is wrong when open device driver Page 39 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Demo Program VC example LRESULT CALLBACK WndProc HWND hwnd UINT iMsg WPARAM wParam LPARAM IParam static char cBuf 80 HDC hdc TEXTMETRIC tm PAINTSTRUCT ps int 1 switch iMsg case WM CRE
27. rcuit 2 2 Open Collector Output e For PCI P16C16 Only The PCI P16C16 provides 16 channels open collector output and 4 channels per common power Each common power designed fuse protection and LED indicated status Wiring diagrams Ext Power_1 OUT 0 30Vdc Max GND 1 PCI P16C16 Load current per channel 30Vdc 600mA max Page 17 Version 1 1 Date 1999 09 PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual 2 3 PhotoMos Relay Output e For PCI PIGPORI6 Only The PCI P16POR16 includes 16 normally open form A PhotoMOS relays The board can do eliminating ground loop problems and isolating the computer from damaging voltages The user can use the PCI P16POR16 to switch load up to 350VAC and up to 130mA 350VAC 130mA max Measurement Meter AC DC Signal PCI P16POR16 Version 1 1 Date 1999 09 Page 18 PCI PSRS PI6RI6 P16C16 PIGPORIG User s Manual 2 4 Isolated Input e For PCI P8R8 P16R16 PI6CI PIGPORIG A read from the isolation input register will get the digital input state of the photo couple isolation input Figure 3 3 and Figure 3 4 shows the basic circuit of the digital input Switch ER EE DH 0 OO If Using AC Internal Circuit Signal JP1 must be shorted 2 3 Figure 2 3 Basic Digital Input Circuit Page 19 Version 1 1 Date 1999 09 PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Although the normal input voltage range is 5 to 24V AC or DC yet the in
28. rs Sound video and game controllers System devices Universal serial bus controller Figure 5 Select the item Other devices and click Next gt Add New Hardware Wizard Select the manufacturer and model of your hardware device If you have a disk that contains the updated driver click Have Disk To install the updated driver click Finish Models Have Disk Figure 6 Click the button Have Disk Version 1 1 Date 1999 09 Page 24 PCI PSRS PI6RIG P16CI6 PI6PORI6 User s Manual Install From Disk la E Figure 7 Click the button Browse to select driver 91 6r16 inf e f 3 Projs 3 pcip16r16 C3 Win95 3 Inf Figure 8 Click OK after select the driver P16R16 inf This folder is corresponding on the CD ROM drive Note PCI P8R8 uses the driver P8R8 inf Page 25 Date 1999 09 Version I PCI PSRS PIGRIG PIGCIG PIGPORIG User s Manual Install From Disk x Insertthe manufacturer s installation disk into the driwe selected and then click OK E Cancel Copy manufacturer s files from FAProjsVPCIPIGRI B WVin9S Inf P16R16 y Browse Figure 9 Click OK Note PCI P8R8 uses the driver P8R8 inf Add New Hardware Wizard Select the manufacturer and model of your hardware device If you have a disk that contains the updated driver click Have Disk To install the updated driver click Finish ia Mocets
29. sqssssssss 8 L4 2 boaid LQyOUt ss ss A SS LUDIS KUNIGA IAS AJ 9 14 3 JUMPEESCONE su NAA NS NAA I bite 11 15 PINCASSIGNMENTS ia 13 HARDWARE APPLICATIONS sesssscessssccssssssccssssssscssssccssesssscssesssscssssccssesssscsssssescsessccseeses 16 XE REAY OUTPUT i sme KEE 16 2 2 OPEN COLEECTOR QUTPUT eee rtr t GRE A E rr IL ero 17 2 3 PHOTOMOS RELAY OUTPUT ooccccccccnnnnnnnnononononononononononononononononononononononononononononononononononononononenenenenes 18 2 4 SA e etc ec eco o Eee de 19 SOFTWARE INSTALLATION GUIDE sssscesssssscsssssccssssssccssssssesessccssesssscssessssesessccsseses 21 3 1 PLUG AND PLAY OF WINDOWS 95 98 eese eene nene essssssssssssss sss sss ssssssssssssssssssssssssss 21 3 2 SOFTWARE INSTALLATION FOR DOS ccccccccccceceseseseseseseseseseseseseseseseseseseseseseseseseseseseseseseseeeeens 30 3 3 SOFTWARE INSTALLATION FOR WINDOWS 95 98 NT k W 4 s sssesss 30 VO CONTROL REGISTER ooo en oorr nae rto re ler bo ae co e Cin ke etr F Fe caida cin coria cado Prae see Pao e rodear 31 4 FUNCTION CALL INP16R16 DLL eese n en n n n nnn n nnn nnn nnn nnn nn nnn n nana enun 36 42 A ences ete eene tem eum 36 AS JPCL BEOATSUB2 e iia 37 44 PCIZSHORISUB2 di 38 AS PECIOBTDELVERBSION dcir 38 4 6 PCI DRIVERLNIT ssssssssesesesnsnsesnsnsnsnsnsnsnsnsnsnsssssnssssssssssssssssssssssssssssss
30. ssssssssssssssssssssssssssss s 39 As BEIDRIVERELOSE dato 41 4 8 PCL GETDRIVER VERSION 00 a dl aiaee 41 4 9 PCI GETCONGFIGADDRESSSPACE ssssssssssssssssssssssssssssssssssssssssnssssssssssssssssssssssssssssssssssssssss s 42 A IO PI6GRI6 DO rt e knn l e e MO emen Es es 43 411 PI6GRI6 DI ro Pn 7 E o PR anek ne Ie 43 4 12 afoj seek DO PETE TTT ETETTTTTETTTEETTEEI EA 47 AMS PSRS Doc 47 Version 1 1 Date 1999 09 Page 2 PCI PSRS PIGRI6 PIGCIG PIGPORIG User s Manual 1 Introduction Model Number Isolated Digital Input Output Type PCI P8R8 8 Channel 8 Channel Relay Output PCI P16R16 16 Channel 16 Channel Relay Output PCI P16C16 16 Channel 16 Channel Open Collector Output PCI P16POR16 16 Channel 16 Channel PhotoMos Relay Output e PCI P8R8 PCI P16R16 The PCI P16R16 and PCI P8R8 are relay actuator output isolation input interface cards for PC and compatible computers the former provides 16 channels and the latter provides 8 channel input and output channels Both can be easily installed in a 5V PCI slot and can support truly Plug and Play They are also very easily to be used in many applications e PCI P16C16 The PCI P16C16 provides 16 channels transistor output and 16 channels isolated digital input The transistor output up to 30Vdc 600mA open collector The isolated digital input as same as the PCI P16R16 provides AC DC input and R C filter e PCI P16POR16 The PCI P16POR16
31. tting Printers Adds removes and changes settings egional Settings Changes how numbers currencies c ade Changes system and program sound Provides system information and chal Configure Telephony Drivers and Dia Sets up and manages multiple users i Figure 13 Double click the item System in the folder Control Panel Version 1 1 Date 1999 09 Page 28 PCI PSRS PI6RI6G PI6CI6 PIGPORIG User s Manual EE Floppy disk controlere mE E Hard disk controllers E Esptcard Monitora Mouse EHE Meteork adapters Fora COM A LET EM System devices Uniwersal sanal bus corto llar Figure 14 Select the device PCI P16R16 or PCI P8R8 and click button Properties FPABCITIBE ETEPCRTE Card Proprie TI x cc T 05000000 NEONO TE Input Output Range 1000 107F lMinpur Dutput fango 1080 1083 Figure 15 Please ensure that this device has no conflicts Page 29 Version 1 1 Date 1999 09 PCI P8R8 P16R16 P16C16 P16POR16 User s Manual 3 2 Software Installation for DOS The software installation for DOS as follows Refer to the install bat in sub directory of PI6R16 with CD ROM After install the sub directory as follows Demo code Lib for Borland C P16R16 BC HUGE DEMO P16R6 BC HUGE LIB P16R6 BC LARGE DEMO P16R6 BC LARGE LIB P16R6 MSC HUGE DEMO P16R6 MSC HUGE LIB P16R6 MSC LARGE DEMO PL6R6 MSC LARGE LIB P16R16 TC HUGE DEMO
Download Pdf Manuals
Related Search
Related Contents
Desarrollo de un visor modelador 3D colaborativo CÂMERA TERMOVISORA MTV-01 MANUAL DE INSTRUÇÕES Version 1.94.01 english - Romarnia Caffe USER MANUAL - Tanning Bed Parts Powermate CRN175P Use and Care Manual Copyright © All rights reserved.
Failed to retrieve file