Home
PISO-P8R8U/P16R16U User`s Manual
Contents
1. JP1 8 SWhi Card ID JP9 16 CON2 Figure 2 1 1 PISO P16R16U Board layout and components Item Description 1 I O connector CON2 connector P16R16U only JP1 8 Filter jumpers JP9 16 Filter jumpers P16R16U only SW1 Card ID switch Table 2 1 1 Components and descriptions B PEX P16R16i board layout a z R L caja R 2I as 7 2 0 9 ri ates TEREE PEX P16R16i PEX P8R8i 8 1 JP1 8 PCI Express CardID JP9 16 2 Figure 2 1 2 PEX P16R16i Board layout and components 1 connector CON2 connector P16R16i only JP1 8 Filter jumpers JP9 16 Filter jumpers P16R16i only SW1 Card ID switch Table 2 1 2 Components and descriptions 2 2 Jumper and Card ID Switch Settings 2 2 1 AC Filter Jumpers Simply setting the jumpers on the board can change the I O card configuration Each digital input channel can be jumper configured as a single pole AC filter with a time constant of 1 2 ms The table below lists each digital input channel and the corresponding jumper Jumper Channel Jumper Channel IF ONU NE sero Table 2 2 Jumper assignments The figure below shows how to select the digital input type 30 Without Filter For DC Signal With AC Filter Default Settling For AC Signal F
2. 5 16 160 PEX PS8RS8i P16R16i Version 1 8 Or 2 Oct 2011 so 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 assumes 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 2011 by ICP DAS All rights are reserved Trademark Names are used for identification only and may be registered trademarks of their respective companies Tables of Contents 1 INTRODUCTION rcc 4 1 1 FEATURES AND APPLICATIONS 13 2 dep Eee rade fore Reeve 6 1 1 1 SO REN 6 1 1 2 i e d S e epe 6 1 2 BLOCK DIAGRAM nro tec EDO DR ELO er E ERE RP RU te ci Re i ho 7 1 3 SPECIFICATIONS Ata ate e b een Breed eeiam 8 USED SWEET eite te 8 1 3 2 PISO PIORTIOU PEX PIORI OLD is it e RR de t Shas td Re EE eie 9
3. wRtn SelectBoard 0 while 1 printf AnPlease select a function n printf 1 Select a board to activate An printf 2 Display the Card ID n printf 3 DI DO test n printf Q Exit the program n c getch switch c case Select Board printf Please select a board 0 96d to active wTotalBoardsFound 1 getch if gt 0 amp amp c lt 9 SelectBoard c 0 else SelectBoard 100 C 1 1 Ecke Get Card ID EcL Eo printf Card ID is int inpb wCardAddress 7 gt gt 2 amp OxOF break case DI DO test TestDI O wCardAddress break case case Q break default printf Invalid function item c n break if c q c 0 break PIO_DriverClose return 0 int SelectBoard WORD wBoardNo WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice WORD wlrqNo if wBoardNo gt wTotalBoardsFound printf nl nvalid board number n return ExceedBoardNumber Get Card Infomation Address PIO GetConfigAddressSpace wBoardNo amp wCardAddress amp wlrqNo amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf AnCurrent selected board is Card d at address 0x96 04X n wBoardNo wCardAddre
4. 1 PCl series first generation isolated or non isolated cards 1002 1202 1800 1802 1602 multi function family non isolated PCI P16R16 P16C16 P16POR16 P8R8 D I O family isolated 12 timer counter card non isolated 2 PIO series cost effective generation non isolated cards PIO 821 multi function family PIO D168 D144 D96 D64 D56 D48 D24 D I O family PIO DA16 DA8 DA4 D A family 3 PISO series cost effective generation isolated cards PISO 813 A D card PISO P32C32 P32S32WU P64 C64 D I O family PISO P8R8 P8SSR8AC P8SSR8DC P16R16U PEX P16R16i D I O family PISO 730 D I O card PISO DA2 D A card 1 7 Product Check List The shipping package includes the following items One PCI boards as follows PISO P16R16U PEX P8P8i PEX P16P16i One software utility PCI CD One Quick Start Guide It is recommended that you read the Quick Start Guide first All the necessary and essential information is given in the Quick Start Guide including Where to get the software driver demo programs and other resources B How to install the software How to test the card Attention If any of these items is missing or damaged contact the dealer from whom you purchased the product Please save the shipping materials and carton in case you need to ship or store the product in the future mM 2 Hardware Configuration b 4 2 1 Board Layout PISO P16R16U board layout m
5. by reading the Card ID users can check whether their program is accessing the correct card Card ID OxOF amp intportb wBase 7 gt gt 2 get Card ID 4 3 3 Data Register Digital Input Read wBase 0xCO eee ee 8 05 2805 Read wBase 0xC4 pis 4 bns Digital Output wBase 0xCO CNN DO1 Write 0 4 bo12 bos Note Refer to Sec 3 1 for more information regarding wBase outportb wBase 0xcO Oxff write Oxff to DOO DO7 DI Value inportb wBase 0xc0 read states from DIO DI7 PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 mM 5 DOSSDK Please read the release notes to determine the location of the DOS SDK on the included CD or floppy disk then run the install bat batch file under the DOS SDK folder to copy the software onto your hard disk A Note The DOS SDK has read only file attribute if they are stored on CD After installing coping the software users have to remove the read only attribute before any modification compiling or linking with these sample program files Please use the following command to change it Attrib R S D The source code of TC BC and MSC sample programs are included in DOS SDK A Note The PIO Lib for DOS library file is available for all PIO and PISO series cards but t
6. 14 NO 15 10 28 COM 14 COM 15 11 29 GND DIA 8 12 30 DIB 8 Extension Cable DIA 9 13 31 DIB 9 DIA 10 14 32 10 DIA 11 15 33 11 NO Normally Open DIA 12 16 34 DIB 12 COM Common DIA 13 17 35 13 36 14 NC Normally Closed DIA 15 19 37 15 DIA Digital Input Point DIB Digital Input Point B Figure 2 9 Pin assignments mu 3 Software Installation Guide y The PISO P16P16U and PEX P8R8i P16R16i series can be used in DOS and Windows 98 NT 2K and 32 bit 64 bit Windows XP 2003 Vista 7 The recommended installation procedure for windows is given in Sec 3 1 3 2 Or refer to Quick Start Guide CD NAPDOS PCI PISO DIO Manual QuickStart http ftp icpdas com pub cd iocard pci napdos pci piso dio manual quickstart 3 1 Software Installing Procedure B UniDAQ SDK driver 32 bit 64 bit Windows XP 2003 Vista 7 Insert the companion CD into the CD ROM drive and after a few seconds the installation program should start automatically If it doesn t start automatically for some reason double click the AUTO32 EXE file in the NAPDOS folder on this CD Click the item Bus Card Click the item UniDAQ Click the item DLL for Windows 2000 and XP 2003 Vista 32 bit Double Click UniDAQ Win Setup file in the Driver folder Windows driver Windows 98 NT 2K and 32 bit Windows XP 2003 Vista 7 Insert the companion CD into the
7. 5 2 wBase 0xCO DIO DI7 000 07 wBase 0xC4 DI8 DI15 DO8 DO15 Note Refer to Sec 4 1 for more information regarding wBase 4 3 1 RESET Control Register Read Write wBase 0 ee RESEN Note Refer to Sec 4 1 for more information regarding wBase When the PC is first switched on the RESET signal is in a Low state it will disable all and D O operations The RESET signal must be set to the High state before 0 1 and D O commands are sent outportb wBase 1 RESET High gt all DI DO channels are now enabled outportb wBase 0 RESET Low gt DI DO channels are now disabled PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 4 3 2 CARD ID Register Read wBase 7 1 1 Note Refer to Sec 4 1 for more information regarding wBase Card is designed to enable easy identification between several PCI cards that have the same model number A Note The Card ID is NOT the same as the Board Number The Board Number depends on the bus number slot number and total number of boards in the computer and may be changed when another card is added in another PCI slot In this case it may be difficult to know which card is being used to control which device The Card ID can be set using the SW1 dip switch so it is easy to set the correct connections between cards and devices So
8. 8 Oct 2011 021 18 1 3 2 PISO P16R16U PEX P16R16i Model Name PISO P16R16U PEX P16R16i Digital Input Isolation Voltage 3750 Vrms Photo couple Channels 16 Compatibility 5 V TTL Logic 1 AC DC 5 24 V AC 50 1 kHz Input Voltage Logic 0 AC DC 0 1V Input Impedance 1 2 0 5 W Response Speed Without Filter 50 kHz Typical With Filter 0 455 kHz Typical Relay Output Channels 16 Relay Type 8 SPDT 8 SPST Contact Rating AC 120 V 90 5 A DC 24 Operating Time 1 ms typical Release Time 7 ms typical Insulation Resistance 1000 MQ Mechanical 5000000 ops Life Electrical 100000 ops General Bus Type 3 3V 5 M Universal PCI PCI Express x1 32 bit 33 MHz Data Bus 16 bit Card ID Yes 4 bit Connector Female DB37 x 1 40 pin box header x 1 Dimensions L x W x D 149 mm x 105 mm x 22 mm Power Consumption 800 mA 5V Operating Temperature 0 60 C Storage Temperature 20 70 C Humidity 5 85 RH non condensing PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 1 4 Unpacking the Hardware This I O card was thoroughly tested and inspected both mechanically and electrically before shipping It was free of marks and scratches and our delivery quality policy requires that all equipment be in perfect condition before delivery Howeve
9. CD ROM drive and after a few seconds the installation program should start automatically If it doesn t start automatically for some reason double click the AUTO32 EXE file in the NAPDOS folder on this CD Click the item PCI Bus Card Click the item PISO DIO Click the item DLL and OCX for Windows 98 2 2003 Choose the Win2K XP Win98 or WinNT folders for setup according to your PC platform and then double Click to install driver PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 The setup program will then start the driver installation and copy the relevant files to the specified directory and register the driver on your computer The directory where the drive is stoned is different for different windows versions as shown below Windows 64 bit Windows XP 2003 Vista 7 The UniDAQ DLL file will be copied into the C WINNT SYSTEM32 folder NAPWNT SYS and UniDAQ SYS files will be copied into the C A WINNT SYSTEM32 DRIVERS folder For more detailed UniDAQ DLL function information please refer to UniDAQ SDK user manual CD NAPDOS PCI UniDAQ Manual http ftp icpdas com pub cd iocard pci napdos pci unidag maunal m Windows 2 and 32 bit Windows XP 2003 Vista 7 The PISODIO DLL file will be copied into the C WINNT SYSTEM32 folder The NAPWNT SYS and PISO SYS files will be copied into the C AWINNT SYSTEM32 DRIVERS folder m Windows 9
10. ErrorCounts Id n iCounts iErrors return iErrors 5 5 Demo Program for DOS The related DOS software and demos are located on the CD as below CD NAPDOS PCI PISO DIO dos P16R16u http ftp icpdas com pub cd iocard pci napdos pci piso dio dos p16r16u After installing the software the following drivers will be installed onto your hard disk MSC BC TC LIB TC DEMO TC DIAG TC LIB Large TC LIB Huge TC LIB Large PIO H TC LIB Large TCPIO_L LIB TC LIB Huge PIO H TC LIB Huge TCPIO_H LIB MSC LIB Large PIO H MSC LIB Large MSCPIO_L LIB MSC LIB Huge PIO H MSC LIB Huge MSCPIO_H LIB BC LIB Large PIO H BC LIB Large BCPIO_L LIB BC LIB Huge PIO H BC LIB Huge BCPIO_H LIB gt for Turbo C 2 xx or above gt for MSC 5 xx or above gt for BC 3 xx or above gt for TC library gt for TC demo program gt for TC diagnostic program gt TC large model library gt TC huge model library gt TC declaration file gt TC large model library file gt TC declaration file gt TC huge model library file gt MSC declaration file gt MSC large model library file gt MSC declaration file gt MSC huge model library file gt BC declaration file gt BC large model library file gt BC declaration file gt BC huge model library file NOTE The library is available for all PIO PISO series cards PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 O
11. Lib Functions All Lib functions and descriptions are listed in the following sections In this chapter keywords are used to indicate the attributes of each parameter Keyword Description 0000 A Note All parameter spaces buffers must be allocated and then freed by the PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 Input The parameter must be initialized or have a value set before calling this function Output The parameter will return a value or other data after this function is called user application programs 5 3 1 This function detects all and PISO series cards that are installed the system and saves the related resource information in the library It must only be called once before calling any other Lib functions To determine the number of PISO P16R16U PEX P16R16i cards whtn PIO Driverlnit amp wTotalBoardsFound 0x1800 0x00 OxFF To identify all PIO and PISO series cards whRtn Driverlnit amp w TotalBoardsFound OxFF OxFF OxFF Syntax WORD Driverlnit WORD wBoards DWORD wSubVendorlD WORD wSubDevicelD BYTE wSubAuxID Parameters wBoards Output The Number of boards found wSubVendorlD Input Sub Vendor ID of the board wSubDevicelD Input Sub Device ID of the board wSubAuxID Input Sub Aux ID of the board Return Refer to the error codes in Section 5 2 for
12. NET2005 PISODIO cs gt Declaration files PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 m 7 Appendix b d 7 1 Reporting Problems Technical support is available at no charge The best way to report a problem is to send E mail to Service icpdas com service icodas gmail com When reporting a problem please include the following information 1 Is the problem reproducible If so how 2 The type and version of the Operating System that you running For example DOS Windows 95 98 ME Windows NT 4 0 or Windows 2K XP 2003 Vista 32 etc 3 The type of product that you using Please check the product user manual for details 4 If a dialog box with an error message was displayed please include the full text of the dialog box including the text in the title bar 5 If the problem involves other applications or hardware devices include details of the devices and software application including the version number of the application hardware that is failing 6 Any other comments or suggestions related to this problem are welcome After receiving your comments it will take approximately two business days to test the problem s described A reply will be sent to you as soon as possible If you have not received a response to your request within three days please contact ICPDAS to ensure your message has been received Web Site http www icpdas com
13. the leading 16 wPortAddr Input bits are all O Refer to the PISODIO GetConfigAddressSpace function Return Returns 16 bit data where the leading 8 bits are all O 6 5 Demo Programs for Windows Please note that none of the demo programs will work normally if the DLL driver has not been installed correctly During the DLL driver installation process the install shield will register the correct kernel driver to the operating system and copy the DLL driver and demo programs to the correct location depending on the driver software package you have selected Win98 Me NT 2000 and 32 bit Win XP 2003 Visa 7 After installing the driver the related demo programs development library and declaration header files for the different development environments will be available in the following folders The demo program is contained in CD NAPDOS PCI PISO DIO DLL_OCX Demo http ftp icpdas com pub cd iocard pci napdos pci piso dio dll_ocx demo BCB4 gt For Borland Builder 4 A list of available demo PISODIO H gt Header files programs is as follows PISODIO LIB gt Linkage library for BCB Delphi4 gt For Delphi 4 m DIO demo PISODIO PAS gt Declaration files VB6 For Visual Basic 6 PISODIO BAS gt Declaration files VC6 gt For Visual 6 PISODIO H Header files PISODIO LIB gt Linkage library for VC6 B VB NET2005 gt For VB NET2005 PISODIO vb gt Declaration files CSharp2005 gt For C
14. 1 4 UNPACKING THE HARDWARE rtr eig tte es e RE gere boc RE e reti e E EE Reg e epe ree Ee 10 1 5 ORDER INEORMATION 5 8 Ge a aR RE aii etie aterert oderit ee pope 10 1 6 PCI DATA ACQUISITION FAMILY eese 11 1 7 PRODUCT CHECKLIST been ded 12 2 HARDWARE CONFIGURATION ciet se tires eee aeree tiv et ae es bs eiut abe ue erae ev Sec Up VE eee 13 2 1 BOARD LAYOUT soci seated cete dieta adea ia ted o dtt ge 13 2 2 JUMPER AND CARD ID SWITCH SETTINGS essere 15 2 2 1 AC Filter dediti eie ee ra E e ee e deed e 15 2 2 2 Card ID DIP Switch SW1 eese ertet 16 2 3 RELAY OUTPUT ether beet iR EH UR Et ree e UR ec ee iret RRAN 17 2 4 ISOEATED INPUT onere UR EET RO te e eU irr rette UR per OS 18 2 5 DAUGHTER BOARDS iet n p e e eri eter le re odere ete ce ples ite ente dd 20 nt vet trei 20 oett tne tt eps 20 2 6 PIN ASSIGNMENTS intitle a ER a RP REPE Rabe 21 3 SOFTWARE INSTALLATION GUIDE eeeeen eese nee tota sa stant nete teen 22 3 1 SOFTWARE INSTALLING PROCEDURE 5 0 ne te petite pter hei e EEE PR pei be te Peine hp 22 3 2 BNP DRIVER INSTALLATION Lc heroes eet bete io ae 23 3 3 CONFIRM TH
15. 16R16i card 1 1 2 Applications Factory automation Laboratory automation Communication switching Security control Product testing Energy management PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 1 2 Block Diagram PCI Express Slot PCI E to Bridge PCI Controller PEX P16R16i Figure 1 2 1 Function Block Diagram PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 1 3 Specifications 1 3 1 PEX P8R8i Model Name PEX P8R8i Digital Input Isolation Voltage 3750 Vrms Photo couple Channels 8 Compatibility 5 V TTL Logic 1 AC DC 5 24 V AC 50 1 kHz Input Voltage Logic 0 AC DC 0 1 V Response Speed Without Filter 50 kHz Typical With Filter 0 455 kHz Typical Relay Output Channels 8 Relay Type 4 SPDT 4 SPST Contact Rating AC 120 V 0 5 DC 24V 1A Operating Time 1 ms typical Release Time 7 ms typical Insulation Resistance 1000 MQ Mechanical 5000000 ops Life Electrical 100000 ops General Bus Type PCI Express x1 Data Bus 16 bit Card ID Yes 4 bit Connector Female DB37 x 1 Dimensions L x W x D 149 mm x 105 mm x 22 mm Power Consumption 800 mA 5V Operating Temperature 0 60 C Storage Temperature 20 70 C Humidity 5 85 RH non condensing PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1
16. 5 98 The PISODIO DLL PISODIO Vxd files will be copied into the C Windows SYSTEM folder more detailed PI SODI O DLL function information please refer to PISO DIO Win32 SDK Manual pdf CD XNAPDOSYVPCIXPI SO DI Ou Manual http ftp icpdas com pub cd iocard pci napdos pci piso dio manual 3 2 PnP Driver Installation Power off the computer and install the PISO P16R16U and PEX P8R8i P16R16i cards Turn on the computer and Windows 98 ME 2K and 32 bit 64 bit Windows XP 2003 Vista 7 should automatically defect the new PCI device s and then ask for the location of the driver files forthe hardware If a problem is encountered during installation refer to the PnPinstall pdf file for more information PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 3 3 Confirm the Successful Installation Make sure the PISO P16R16U and PEX P8R8i P16R16i card installed are correct on the computer as follows Step 1 Select Start gt Control Panel and then double click the System icon on Windows Step 2 Click the Hardware tab and then click the Device Manager button Step 3 Check the PISO P16R16U and PEX P8R8i P16R16i card which listed correctly or not as illustrated below Device Manager File Action Help BB DAQCard ES UniDAQ PISO P16R16U P16R16E Isolated Digital I O Board UYG
17. E Display adapters DVD CD ROM drives 9 43 Floppy disk controllers Floppy disk drives S IDE ATA ATAPI controllers Keyboards 77 Mice and other pointing devices debis Successful 88 Network adapters 27 Ports COM amp LPT SB Processors 2 Sound video and game controllers System devices Universal Serial Bus controllers E EN I O Control Registers b d 4 1 Determining The I O Address The plug amp play BIOS will assign the proper I O address to each PCI device in the system during the boot up process The fixed IDs of the PISO P16R16U card are as follows PISO P16R16U Model Name PEX P16R16i PEX P8R8i Vendor ID OxE159 Device ID 0x0001 Sub Vendor ID 0x1800 Sub Device ID 0x0000 Sub Aux ID OxFF Don t care ICP DAS provides all necessary functions for identifying and accessing this card Please refer to Chapters 5 and Chapter 6 for more information regarding the SDK Software Development Kit The driver information is as follows 1 Resource allocated information wBase BASE address mapping for this PC e wirq IRQ channel number allocated for this PC 2 PIO PISO identification information e wSubVendor Sub Vendor ID of this board e wSubDevice Sub Device ID of this board e wSubAux Sub Aux ID of this board 3 PC s physical slot information for the PC wSlotBus The position of hardware slot ID1 in this PC e wSlotDe
18. E SUCCESSFUL 24 4 TO CONTROL REGISTERS 5 25 4 1 DETERMINING THE I O ADDRESS enne 25 4 2 TVO ADDRESS ASSIGNMENT 33 345 nie er eife E ae duse Re 26 4 3 ADDRESS erit ee eR See ERE ree ote eerie 28 4 3 1 RESETN Control Register eth rte hant de e eei echten enira ca rad 28 5 7 43 2 CARD ID Register a e pe e OE hh ERR CERE TRE RETRO 29 4 3 3 Tm 30 DOS 31 PIO PISOEXE PROGRAM envoi eT ve e E ER IE Nee RE ER 31 3 2 BRBRORQGODES s nent e Rn At Ad Ar Re A Tur t AERA NT A TA oue Be Sah des 32 5 3 LIB F NCTIONS te cie edo eee aede efe uv entities 32 2 39 PLO DAV Cr Nib bea a e t e 33 5 3 2 GetConfigAddressSpace 34 3 3 32 PIO Driver Close i ein d ewe n edt ei bu s 35 534 Show PIO PISOS Ras eR eU bee UR le ba 35 3 4 SAMPLE PROGRAM FOR ir ume e 36 5 5 DEMO PROGRAM FOR DOS Spei uten pt ente it avete D urhe ce n e RE uer de 40 O 41 61 BIO PISO EXE PROGRAM eoo ee ER GTI a e S ERE Eie ann RE e d rera eed 42 6 2 PROGRAM ARCH
19. ITECTURE 2 12 5 tette ptu i d AE Ges ri eR o tubtes ERE dece er te Sua 43 6 3 ERROR CODES tete d edo eer eit dee en us diete fedes 44 6 4 DLE EUNCTIONS 5 5 tee tear e t etie e bte an dtt eiit nA ots 44 6 4 1 ut ge teda eee BERE das EL edel 45 6 42 PISODIO DriverClose send detti en ere uns 45 6 4 3 PISODIO GetConfigAddressSpace esses eene 46 6 4 4 PISODIO GetDriverVersion nein 47 6 4 5 47 04 6 PISODIO Outip tByt 48 647 PISODIO InputByte ee ae et Ee epi e ee ide 48 6 5 DEMO PROGRAMS FOR WINDOWS nennen trinitate 49 APPENDIX garrir rion ne A N NN REN NENEN AE NEN NE NEE 50 7 anota t EOD abr S 50 EE 1 Introduction b d Model Number Isolated Digital Input Output Type PEX P8R8i 8 Channels 8 Channels Relay Output PISO P16R16U PEX P16R16i 16 Channels 16 Channels Relay Output PISO PxRyU id x Channels y Channels Relay Output ODM Onl Table 1 1 Model number and card type
20. aced as 1 2 K O the power consumption of Ri can be calculated as follows 2 2 P I Rex 10 1 2KQ 1 2 W The power consumption is 1 2 Watts but selecting 1 5 or 2 Watts is better Thus a 1 2K 2W resistor can be selected to replace the resistor Ri 2 5 Daughter Boards DB 37 Direct connection board 37 pin D type connector pin to pin screw terminal for any 37 pin D type I O board connector Figure 2 7 DB 37 DN 37 connector block with DIN Rail mounting Two 37 pin D type connectors one for an extension Pin to pin screw terminal for the I O connector pn 37 10 j CONNECTOR CONI BLOCK 20 ee 23 24 25 26 27 28 29 30 E Figure 2 8 DN 37 2 6 Pin Assignments NO O 1 COMO 2 NCO 3 NO 1 4 COM 1 5 NC 1 6 NO2 7 8 2 8 NO 7 10 11 11 11 DIA 0 12 11 DIA 1 13 12 DIA 2 14 OO COM_12 DIA 3 15 OO NO_13 DIA 4 16 13 DIA 5 17 NO 14 DIA 6 18 CORE T DIA 7 19 DIB 8 DIB_9 DIB_10 11 DIB 12 DIA_12 DIB_13 NO 8 1 DIA 13 DIB_14 2 20 NO 11 DIA 14 OO DIB 15 NC8 3 21 COM 11 DIA 15 9 4 22 NC 11 9 5 23 12 Nc o 6 24 12 10 7 25 13 COM 10 8 26 COM 13 NC 10 9 27 NO
21. ct 2011 PMH 021 18 6 Windows SDK b 4 Please read the release notes first to determine the location of the Windows SDK DLL and OCX on the enclosed ICP DAS CD then run the setup program found in the Windows SDK folder to install the DLL driver and OCX controls onto your computer The setup program will guide you through the installation procedures step by step A Note It is recommended to install the software first and then plug the card into the computer This reduces the Windows Plug amp Play procedures All source code for the VB VC Delphi and BCB sample programs are provided in enclosed CD or on the web site for free download 6 1 5 Program The 5 utility is located on the CD as below and is useful for all PIO PISO series cards CD NAPDOS PC Utility Win32 PIO_PISO http ftp icpdas com pub cd iocard pci napdos pci utility win32 pio_piso PIO PISO exe diagnostic program can be used to identify all PIO PISO series cards currently installed in the PC and can be useful for checking whether the cards are correctly installed in the PCI PCI Express slot The following information is also displayed 1 The model number of all cards found 2 The I O address and IRQ number of each card 3 The bus and slot number of each card A Note The corresponding Windows driver for the card must be installed first PIO PISO series card 2 40 05 2006 on
22. e of the following cards etail information Vendor ID JZE 3 Device ID z Bus JU Card Address OX EC UL XEM OF IRQ 6 2 Program Architecture PISODIO_Driverlnit Enable DI DO PISODIO_InputByte PISODIO_DriverClose Function Call to DLLs Toolkit Services Call to Kernel Mode Device Control Hardware Device 6 3 Error Codes There are several error codes that may be returned when using the function calls listed below A description of each error code is as follows Code Description 0 No error found 1 Failed to open the driver To resolve this error either A Restart the computer and try again B Try using a different PCI slot C Ensure that the 3 3 V 5 V jumper setting is correct D Download the latest driver from our web ftp site and try again 2 Driver is not yet opened The PISODIO_Driverlnit function must be called before calling any other DLL functions 9 The specified board was not found Please refer to the description for error code 1 10 The specified board number is incorrect The board number must be between 0 and Total Boards 1 6 4 DLL Functions All DLL functions and descriptions are listed in the following sections In this chapter keywords are used to indicate the attributes of each parameter Keyword Description Input The parameter must be initialized or have a value set before calling this
23. e of the records may be as follows PCI slot wSlotBus wSlotDevice Slot_1 0 0x07 Slot_2 0 0x08 Slot_3 0 0x09 Slot_4 0 0 0 PCI BRIDGE Slot_5 1 0x0A Slot 6 1 0x08 Slot 7 1 0x09 Slot 8 1 0x07 The above procedure will allow all wSlotBus and wSlotDevice information in the PC to be recorded These values will be mapped to the physical slots on the PC and the mapping will not be changed for any PIO PISO cards Therefore the information can be used to identify the specific PIO PISO cards as follows Step 1 Record all wSlotBus and wSlotDevice information Step 2 Use the PIO GetConfigAddressSpace function to retrieve the wSlotBus and wSlotDevice information of specific cards Step 3 Comparing the wSlotBus and wSlotDevice information obtained in Step 1 and 2 can identify the specific PIO PISO cards PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 4 3 Address Mapping The I O address for PIO PISO series cards is automatically assigned by the BIOS of the main board The I O address can also be re assigned by user It is strongly recommended that users don t change the I O address The Plug amp Play BIOS will assign the proper I O address to each PIO PISO series card The detailed I O register address mapping for the PISO P16R16U PEX P8R8i P16R16i card is as follows Address Read owie 0 WBass0 bo RESEN WBase 7 7 CardID Bit
24. function Output The parameter will return a value or other data after this function is call A Note All parameter spaces buffers must be allocated and then freed by the user application programs PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 6 4 1 PISODIO This function opens the PISO DIO driver and allocates the resources for the device It must only be called once and must be called before calling any other PISO DIO functions Syntax WORD PISODIO Driverlnit Parameters None Return Refer to the error codes in Section 6 3 for more information 6 4 2 PISODIO DriverClose This function closes the PISO DIO driver and releases all resources that were allocated by the driver It must only be called once and must be called before exiting the user application program Syntax void PISODIO DriverClose Parameters None Return None 6 4 3 PISODIO GetConfigAddressSpace This function retrieves the I O address and information related to the PISO DIO card from the driver Syntax WORD PISODIO GetConfigAddressSpace WORD wBoardNo DWORD wBase WORD wirqNo WORD wSubVendor WORD wSubDevice WORD wSubAux WORD wSlotBus WORD wSlotDevice Parameters wBoardNo Input s PISO DIO board number starting from The 32 bit base I O address of the card where the leading 16 bits are all The IRQ number that the PISO DIO board
25. here are different versions for TC BC and MSC Ensure that the correct version is used 5 1 PISO EXE Program The 5 diagnostic program can be used to identify all PIO PISO series cards currently installed in the PC and can be useful to check whether the cards are correctly installed in the PCI slot PIO PISO EXE Rev 2 32 Dec 23 2005 There are 2 PIO PISO Cards s in this PC RetVal 0 Card 0 wBase e800 wlrq 5 subID7 c080 1 40 SlotlI D2 0 d gt PIO D24 D56 Card 1 wBase ec00 wirq b subID 1800 0 30 SlotID 0 f gt PISO P16R16U The diagnostic program also shows the following information 1 model number of each card 2 The address and IRQ number of each card 3 The bus and slot numbers of each card PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 5 2 Error Codes There are several error codes that may be returned when using function calls listed below A description of each error code is as follows Code Description 0 No error found 3 The specified hardware ID cannot be found To resolve this error either A Ensure that the Sub Vendor Sub Device and Sub Aux ID values are all correct B Try using a different PCI slot C Ensure that the 3 3 V 5 V jumper setting is correct The specified board number is incorrect The board number must be between 0 and Total Boards 1 Refer to error code 3 5 3
26. igure 2 2 Jumper Settings If AC input signals are used the AC FILTER must be set by shorting pins 2 3 of the corresponding jumpers If DC input signals are used the AC FILTER is optional If the DC input signal response is less than 20 us set the filter to OFF If a slow response is required about 5 to 10 ms in order to reject either noise or contact bouncing short the AC FILTER Pins 2 3 PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 2 2 2 Card ID DIP Switch SW1 The PISO P16R16U PEX P16R16i P8R8i also adds a Card ID switch on board Users can set Card ID and then recognizes the board by the ID via software when using two or more PISO P16R16U and PEX P16R16i P8R8i cards in one computer SW1 IDO ID1 ID2 ID3 Default Setting Default setting 2 3 Relay Output Whenever data is written to the output control register the relays will switch to either NO Normally Open or NC Normally Closed status as specified by the control code A 1 in the control register causes the corresponding relay in an energized state and shorts the COM Common to NO contact while a 0 in the control register turns off the corresponding relay and shorts the COM to NC contact When the power is first switched on or a reset signal from hardware or software is occurred the control register is 0 and all relays short to NC contact The following figures show how to use the relay Basic Ci
27. more information 5 3 2 GetConfigAddressSpace This function returns the base I O address and information for the specified PIO PISO card which can then be used to access control each PIO PISO card Syntax WORD PIO GetConfigAddressSpace WORD wBoardNo WORD wBase WORD WORD wSubVendor WORD wSubDevice WORD wSubAux WORD wSlotBus WORD wSlotDevice Parameters wBoardNo Input Board number starting from 0 wBase Output The base address of the board Output The number allocated to board wSubVendor Output The Sub Vendor ID of the board wSubDevice Output The Sub Device ID of the board wSubAux Output The Sub Aux ID of the board wSlotBus Output The Bus Number of the slot wSlotDevice Output The Device Number of the slot Return Refer to the error codes in Section 5 2 for more information 5 3 3 DriverClose This function frees all resources that were allocated in the library It must only be called once and must be called before exiting the user application program Syntax WORD PIO_DriverClose void Parameters None Return Refer to the error codes in Section 5 2 for more information 5 3 4 Show PIO PISO This function displays a text string for a specified PIO PISO ID and is the same as that defined in the PIO H header file Syntax WORD Show PISO DWORD wSubVendorlD WORD wSubDevice WORD wSubAux Parame
28. r some unintentional damage may occur while unpacking Please read this section before unpacking the card Feel free to contact your supplier and retain your shipping carton in case there are any errors A CAUTION This card contains sensitive electronic components that can be easily damaged by static electricity 1 This card should be unpacked using an anti static mat 2 The user should wear an anti static wristband grounded at the same point as the anti static mat 3 Inspect the carton for obvious damage Either shipping or handing may cause damages Be sure there is no shipping or handing damage on the card before using 4 After opening the carton place the system board handle on a grounded anti static surface with the component side face up A CAUTION Do not apply power to the board if it has been damaged 1 5 Order Information m PEX P8R8i 8 channel isolated digital input 8 channel relay output board m PISO P16R16U amp PEX P16R16i 16 channel isolated digital input 16 channel relay output board Options DN 37 I O connector block with DIN Rail mounting and 37 pin D type connector BM DB 37 37 pin D type connector pin to pin screw terminal for any 37 pin D type I O board connector PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 1 6 PCI Data Acquisition Family ICP DAS provides a family of PCI Bus data acquisition cards These cards can be divided into three groups as follows
29. rcuitry Current Rating lt 0 3 A Power Supply Figure 2 3 Basic relay circuit Heavy Loading Application gt 0 3 A P16R16U Power Relay DO Relay 4 Contact Power Relay Heavy Loading Figure 2 4 Heavy load relay circuit 24 Isolatdinput 0000 Reading the isolation input register will identify the digital input state of the photo couple isolation input Figures 2 3 and 2 4 show the basic circuit of the digital input If the signal is Internal Circuit used pins 2 3 of JP1 _ must be shorted Figure 2 5 Basic Digital Input Circuit Although the normal input voltage range is 5 to 24 V AC or DC the input can still be increased to a larger range by choosing suitable external resistors The following figure shows how to connect to a larger input Please note that the input current should be limited to between 2 mA to 20 mA too large input current will burn out the internal resistor Ri while an input current that is too low will not activate the photo coupler isolator Calculate the input voltage and current and then replace the resistor Ri 1 2KQ 1W External Circuit Onboard circuits PC 354 Figure 2 6 Isolated Digital Input Circuit lf 2 mA 20 mA As a rough estimate If Vin 120 V and the photo coupler turn on voltage is ignored the result is Vin lt Ri Vin 120 V l Z10 mA Ri Vin 120 V 0 01 A 12000 If the resistor Ri is repl
30. s The PISO P16R16x series are relay actuator output isolation input interface cards for PCs and compatible computers It provides 16 input and 16 output channels The PISO P16R16U can be easily installed in either a 3 3 V 5 V or 3 3 V 5 V PCI slot and support true Plug and Play operations Figure 1 1 3 3 V PCI X slots and 5 V PCI slots The PEX P16R16i P8R8i are PCI Express bus interface board of 16 8 channel relay output and 16 8 channel input it can be install in PCl Express 1X 4X 8X 16X slot Hla 2 PCIE 167 Wem uem me PE CT UR LLES Li Figure 1 2 PCI E X1 slots PCI E X16 slots PISO P16R16i PEX P8R8i P16R16i User Manual Ver 1 8 Oct 2011 PMH 021 18 1 1 Features and Applications 1 1 1 Features Items PEX P8R8i PISO P16R16U PEX P16R16i 3 3V 5V or 3 3 V 5 V Universal PCI Bus add on card for PISO P8R8U P16R16U Common PCI Express Bus add on card for PEX P8R8i P16R16i Features Optically isolated digital input O AC DC digitally signed input AC digital input with filter jumper selectable Input channel 8 16 Input type Optically isolated digital input Output channel 8 16 Output type Relay output Relay output Table 1 2 Features of the PISO P16R16U and PEX P8R8i P
31. ss if wCardAddress 0 return 100 Enable all DI DO outpb wCardAddress 1 return 0 int DIOT WORD wCardAddress WORD wValue WORD Lo Hi Digital Output with wValue KEKEKE KEEK Lo wValue amp OxFF Hi wValue gt gt 8 amp OxFF outpb wCardAddress 0 0 Lo low byte is at OxCO outpb wCardAddress OxC4 Hi High byte is at OxCA delay a while until DO is ready delay 100 Lo inpb wCardAddress OxCO Low byte is at OxCO Hi inpb wCardAddress OxC4 High byte is at 0 4 wDI Hi lt lt 8 Lo delay 300 iCounts Compare the DO and DI values printf DO zO0x96 04X DI 0x 04X wValue wDI if wDI wValue printf FAI LED 04X n wDI wValue iErrors4 return 1 printf OK return 0 DWORD TestDI O WORD wCardAddress int i 0 iCounts iErrors 0 while kbhit while i 100 1 DI O1 wCardAddress 0 0000 if Kbhit break DIO1 wCardAddress OxFFFF if Kbhit break DI O1 wCardAddress 0x0000 if kbhit break DIO1 wCardAddress OxAAAA if kbhit break DI O1 wCardAddress 0 0000 if kbhit break DI O1 wCardAddress 0x5555 if kbhit break 3 printf TotalCounts ErrorCounts Id n n iCounts iErrors DI O1 wCardAddress 0 0000 printf TotalCounts ld
32. ters wSubVendor Input The Sub Vendor ID of the board wSubDevice Input The Sub Device ID of the board wSubAux Input The Sub Aux ID of the board Return Refer to the error codes in Section 5 2 for more information 5 4 Sample Program for DOS include PIO H WORD wCardAddress wTotalBoardsFound int SelectBoard WORD wBoardNo DWORD TestDI O WORD wCardAddress DWORD iCounts iErrors int main 1 WORD wRtn wlrqNo WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c WORD i clrscr EREE EKE KEEKEKE Initialize Driver for PI SO P16R16U AKEKE E KEE KEEKEEKE EE wRtn Driverl nit amp wTotalBoardsFound 0x1800 0x0 0xFF if wTotalBoardsFound 0 wRtn 0 printf Driver initialization error Error Code d n int wRtn return 1 printf nThere are 96d PISO P16R16U Card s in this PC wTotalBoardsFound stc tx oeste omm Address ini printf n n The Configuration Space 0 i lt wTotalBoardsFound i PIO GetConfigAddressSpace i amp wCardAddress amp wlrqNo amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard d wBasez 6x wl rq 96x subl D x x 96 x Slotl D2 96x 96x i wCardAddress wlrqNo wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux Select the Card 0 to activate
33. using wSubVendor Output The Sub Vendor ID wSubDevice Output The Sub Device ID wSubAux Output The Sub Aux ID wSlotBus Output The Bus number of the slot wSlotDevice Output The Device number of the slot wBase Output wlrqNo Output Return Refer to the error codes in Section 6 3 for more information 6 4 4 PISODIO GetDriverVersion This function reads the version number of the PISO DIO kernel driver Syntax WORD PISODIO GetDriverVersion WORD wbDriverVersion Parameters wDriverVersion Output Version number Return Refer to the error codes in Section 6 3 for more information 6 4 5 PISODIO GetDllVersion This function gets the version number of the PISO DIO DLL driver Syntax WORD PISODIO GetDllVersion void Parameters None Return Version number i e 200 hex for version 2 00 6 4 6 PISODIO OutputByte This is function sends 8 bit data to the assigned I O port Syntax void PISODIO OutputByte DWORD wPortAddr WORD bOutputVal Parameters The 32 bit I O address where the leading 16 wPortAddr Input bits are all O Refer to the PISODIO GetConfigAddressSpace function The 16 bit data sent to the I O port where the bOutputval Dog leading 8 bits are all Return None 6 4 7 PISODIO InputByte This function reads 8 bit data from the assigned I O port Syntax WORD PISODIO InputByte DWORD wPortAddr Parameter The 32 bit I O address where
34. vice The position of hardware slot ID2 in this PC The PIO PISO exe utility program will detect and display the details for all PIO PISO cards installed in the PC Refer to Chapter 5 and Chapter 6 for more information 4 2 Address Assignment The plug amp play BIOS will assign a proper I O address to each PCI device If there is only one PIO PISO board the board can be identified as card 0 If there are two or more PIO PISO boards in the system it is very difficult to identify which board is card 0 The software driver can support a maximum of 16 boards Therefore it is possible to install 16 PIO PISO series boards in a single PC system The following describes the method for identifying 0 and card 1 It is difficult to identify the card number The simplest way to identify which card is card 0 is to use the wSlotBus and wSlotDevice functions as follows Step 1 Remove all PIO and PISO series cards from the PC Step 2 Install a single PISO P8R8U P16R16U or PEX P8R8i P16R16i into PCI slot1 of the PC then run PIO PISO EXE and record the wSlotBus1 and wSlotDevice1 information Step 3 Remove all PIO and PISO series cards from the PC Step 4 Install a single PISO P8R8U P16R16U or PEX P8R8i P16R16i into PCI slot2 of the PC then run PIO PISO EXE amp record the wSlotBus2 and wSlotDevice2 information Step 5 Repeat steps 3 and 4 for all PCI slots and record all wSlotBus and wSlotDevice information An exampl
Download Pdf Manuals
Related Search
Related Contents
P25 - マキタ 什器・備品類購入業務 日本環境安全事業株式会社 Emirates Vehicle Gate User Manual LF-PK1 MODE D`EMPLOI X-cover-FR AUBERMENSUEL - Aubervilliers Fisher-Price J8209 Instruction Sheet Copyright © All rights reserved.
Failed to retrieve file