Home

User`s Manual - ICP DAS USA`s I

image

Contents

1. ccccsccoscceccscceccescescccccsccsccsccsccuscscceccecesscsscsscescescesceses 34 4 2 PNP DRIVERINSTALLATION 3 sortase tate susu Qa 35 4 3 CONFIRM THE SUCCESSFUL INSTALLATION ccccccccscceccecceccsccccceccsccsscasccsccecessesscsscescescesceses 36 5 DEMO PROGRAMS FOR WINDONW 37 APPENDIX u uuu uyu u OQ Ra SG Sau Su M 38 APPENDIX A RELATED DOS SOFTWARE 1 ccccecceccssccscccccsccsccsccesccsccsccsccsscsscsscesccsceesesscssctscsscosceeceess 38 Al Whereas the related uu Sait 38 2 DOS LIB E SI p 39 1 Introduction The PIO D144U D168U card is a new generation product provided by ICP DAS to meet RoHS compliance requirements The new PIO D144U D168U card is designed as a drop in replacement for the PIO D144 D168 and users can directly replace the PIO D144 D168 with the PIO D144U D168U without the need for software driver modification The PIO D144U D168U universal PCI card supports the 3 3 V 5 V PCI bus while the PIO D144 D168 supports the 5 V PCI bus These cards provide 144 168 TTL digital lines and these lines are grouped into eighteen 8 bit bi directional ports Every three ports on a connector are grouped and named as Port A PA Port B PB and Port C PC respectively All ports are configured as inputs upon power up or reset The PIO D144U D168U also i
2. PIO D144 21440 TII 10 0168 01680 A sasi P sg Version 3 0 November 2010 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 2010 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 INTRODUC 4 1 1 SI HI C CIO M ae eee oer M MS 5 BRIE ATOADIAAS PE 1 OAD TAA iu u 5 Lq2 JPIOSDIOS PIQSDTOSU 6 1 2 FEAT ORES HT 7 1 3 PRODUCE CEC KDI M saus 7 2 HARDWARE CONFIGURATION 8 2 1 BOARD ANOUT IT DE 8 22 PORT LOCATION isse ovp med MuR a 9 259 o Dent qayaqa tuz sa 10 2 4 ENA BEB OPERATION fatua 13 2 9 DU GOUARCHIBCTURE
3. PIO D168 PIO D168U Programmable Digital I O SENE Compatibilit o V TTL Input Voltage Logic 0 0 8 V max Logic 1 2 0 V min Response Speed 1 2 MHz Typical Digital Output Compatibilit 5 V TTL Output Voltage Logic 0 0 4 V max Logic 1 2 4 V min Output Capability Sink 64 mA 9 0 8 V Source 32 mA 9 2 0 V Hesponse Speed 1 2 MHz Typical 3 3 V 5 V Universal PCI Bus Type 5 V PCI 32 bit 33 MHz 32 bit 33 MHz Data Bus Card ID Yes 4 bit Connectors Female DB37 x 1 50 pin box header x 6 Dimensions L x W x D Power Consumption Operating Temperature Storage Temperature Humidity 5 85 RH non condensing 1 2 Features Supports the 5 V PCI bus for PIO D144 D168 Supports the 3 3 V 5 V PCI bus for PIO D144U D168U PIO D144 U Five 50 pin flat cable connectors and one 37 pin connector PIO D168 U Six 50 pin flat cable connectors and one 37 pin connector Card ID function for PIO D144U D168U Output status readback function Each port consists of three 8 bit ports PA PB and PC in every connector Each port can be independently configured as either DI or DO at the same time PIO D144 D144U board 6 connectors 6x3 ports 6x3x8 bits 144 bits PIO D168 D168U board 7 connectors 7x3 ports 7x3x8 bits 168 bits 4 interrupt sources P2C0 P2C1 P2C2 and P2C3 Connect directly to DB 24 DB 24R DB 24PR DB 24SSR DB 24POR and other OPTO 22 compatible daughter boards 1 3 Product Ch
4. Table A 1 Error Code Error ID Error String 0 NoError OK No error 1 Driver HandleError Error opening the device driver 2 DriverCallError An error occurred while calling the driver functions 3 FindBoardError Can t find the board on the system 4 TimeOut Timeout Invalid board number Valid range 0 to TotalBoards 1 6 NotFoundBoard Can t detect the board on the system A2 2 Driverlnit Description This function is used to detect all PIO PISO series card in the system and is implemented based on the PCI Plug amp Play mechanism The function will locate identify all PIO PISO series cards installed in this system and save resource information in the library Syntax WORD Driverlnit WORD wBoards WORD wSubVendorlD WORD wSubDevicelD WORD wSubAuxID Parameters WBoards Output number of boards found in this PC wSubVendorlD Input SubVendor ID of the board wSubDevicelD Input SubDevice ID of the board wSubAuxID Input SubAux ID of the board Returns Hefer to Table A 1 2 3 PIO GetConfigAddressSpace Description This function can be used to save the resource information all PIO PISO cards installed in the system The application program can then control all the functions of the PIO PISO series card directly Syntax WORD PIO_GetConfigAddressSpace wBoardNo wBase wirq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice Parameters wBoardNo Input The board
5. LE 14 2 6 INTERRUPT A anaes 15 2 1 DAUGHTER BOARDS I 17 PN MEN PST 17 VP RETE 17 Dog 18 18 2 9 JDHJIAJP DB 24PD Isolated Input BOG aaa tt t e Hb odis 19 2 405 DB 24R 2 RD Relay BOU uice d d ur ERU ELE Ur Ete eu M MUS 20 Zo JAHSZZPRS DBI OR DB ense estt n m a e a UM MEI MU 21 2 7 8 Daughter Board Comparison POble 22 3 CONIROLEREGISTER ee ee 23 Sul HOWTOJTIND EHE LG ADDRESS 5255289092 9 9 2 9 00 800 ARIA 23 3S4 EHE ASSIGNMENT OF T O ADDRESSES ipae pus ut ct ttes abus ddl ote esM ute iubes 26 ADDRESS u a a aa n sspe 28 ode JeESEINCORIFOLROOISIQE 29 33 2 ROEIMO apes LIED D IM LI IM s 29 DOO SAUX DOG JO DISIOE Guia 29 oo INT Mask Control Re IT u Q uuu uu k a n u D RR EE k uD u eee aca 30 Dau LAU STATUS INC uuu u u uu u nu Um 30 3 3 6 Interrupt Polarity Control Register aarraaaasssssssssssssssssssssssssssassss 31 oO Kea Write Ss Pu DOIG RESTET aceti A ED EM sitit NH d aite 31 3 3 8 Port Control Registers uu u E EER 32 o0 JOSE on O uestes Du EE EE last E 32 3 3 10 Read Card TD K r UD S cita N T IAM 33 4 SOFTWARE INSTALLATION Gas ieee errr ie ee as 34 4 1 SOFTWARE INSTALLING PROCEDURE
6. Windows SYSTEM folder For more detailed PI ODI O DLL function information please refer to PI O DI O DLL Software Manual pdf CD NAPDOS PCI PI O DIO Manual http ftp icpdas com pub cd iocard pci napdos pci pio dio manual 4 2 PnP Driver Installation Power off the computer and install the PIO D144 and PIO D168 series 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 a problem is encountered during installation refer to the PnPinstall pdf file for more information PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 4 3 Confirm the Successful Installation Make sure the PIO D144 and PIO D168 series 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 buiton Step 3 Check the PIO D144 or PIO D168 series card which listed correctly or not as illustrated below Device Manager Sele File Action View Help gt E amp e E Disk drives 8 Display adapters 4 DVDJCD ROM drives a Floppy disk controllers 8 Floppy disk drives IDE ATA ATAPI controllers Ei Keyboards Mice and other pointing devices Monitors Network adapt
7. GND GND GND GND GND GND GND GND GND CN2 CN7 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 Q fi 6 5 4 3 2 1 VCC _0 _1 _2 PA 3 PA 4 PA 5 PA 6 PA 7 0 1 2 3 4 5 6 7 0 PC 1 PC 2 PC 3 PC 4 PC 5 PC 6 PC 7 50 PIN of flat cable connector Table 2 2 37 PIN D type female connector for Port0 Port2 Description Description Number Number 20 ve 2 a j Po l 23 Pae Peo 0 25 PC 236 PC Pee 27 PCO 28 P200 Pio EE NN 82 a 4 EE l P1B7 Table 2 3 CN2 3 4 5 6 7 50 PIN of flat cable connector for Port3 Port20 i Pin Description Description Number P5C7 P8C7 11 7 14 7 P17C7 P20C7 GND E e od P5C6 P8C6 P11C6 P14C6 P17C6 P20C6 GND 3 GND P5C5 P8C5 11 5 14 5 17 5 2005 6 GND P5C4 P8C4 P11C4 P14C4 1704 2004 8 GND 9 PSC3 P8C3 P11C3 P14C3 P17C3 P20C3 2 GND 11 P5C2 P8C2 P11C2 P14C2 P17C2 P20C2 GND P5C1 P8C1 P11C1 P14C1 P17C1 P20C1 18 1 14007 1700 20 0 16 GN 17 P4B7 P7B7 P10B7 P13B7 P16B7 P1987 18 GN 19 2486 7 6 1 P13B6 P
8. Register Write wBase 2 Aux 0 gt this Aux is used as a D I Aux 12 this Aux is used as a D O When the PC is first powered on all Aux signals are in the Low state All Aux are designed as D I operations for all PIO PISO series cards 3 3 3 AUX Data Register DE wBase 3 When the Aux is used as D O operations the output state is controlled by this register This register is designed for use with future extensions Therefore do not use this register PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 3 3 4 INT Mask Control Register Write wBase 5 gt b b b k ENO 0 0 gt Disable P2CO of the CN1 as an interrupt signal Default ENO0 1 Enable 2 0 of the CN1 as an interrupt signal outp wBase 4 5 0 Disable interrupt outp wBase 5 1 Enable interrupt P2CO outp wBase 5 0x0f Enable interrupt P2C0 P2C1 P2C2 and P2C3 3 3 5 Aux Status Register Read wBase 7 Aux0 P2C0 Aux1 P2C1 Aux2 P2C2 Aux3 P2C3 Aux4 7 Aux ID Refer to the DEMOS C file for more information Aux0 3 are used as interrupt sources The interrupt service routine must read this register to identify the interrupt source Refer to Sec 2 6 for more information 3 3 6 Interrupt Polarity Control Register Write wBase 0x2a o b p ota inva This register provides a function that is used to control whether the interrupt signal source is inverted or n
9. The DN 50 is designed for a 50 pin flat cable header using DIN Rail mounting They are also designed for easy wiring m a teirra i a PCP UE m M DE LE Li ar 2 7 3 08 8125 The DB 8125 is general purpose screw terminal board and is designed for easy wiring The DB 8125 uses a single DB 37 header and two 20 pin flat cable headers 08 32 for DB 37 or 37 pin cable ii E idi dd AO s rnm Ali 20 punilat cable header mu Figure 2 7 2 7 4 ADP 37 PCI amp ADP 50 PCI The ADP 37 PCI and ADP 50 PCI is an extender for a 50 pin header One side of the ADP 37 PCI and ADP 50 PCI can be connected to a 50 pin header and the other side can be mounted on the PC chassis as shown in the following figure Note that the ADP 37 PCI is a 50 pin header to DB 37 extender and the ADP 50 PCI is a 50 pin header to a 50 pin header extender Figure 2 8 2 7 5 DB 24P DB 24PD Isolated Input Board The DB 24P is a 24 channel isolated digital input daughter board The optically isolated inputs of the DB 24P consist of a bi directional optocoupler with a resistor for current sensing The DB 24P can be used to sense DC signals from TTL levels up to 24 V or use the DB 24P to sense a wide range of AC signals This board can also be used to isolate the computer from large common mode voltage ground loops and transient voltage spikes that often occur
10. as follows DO D O for CN1 DIO D I O for CN5 and CN6 DIO2 D I O for all Ports INT Interrupt for P2CO PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 mM Appendix Appendix A Related DOS Software A1 Where is the related software The related DOS software and demos are located on the CD as below CD NAPDOS PCI PIO DIO dos htto fto icodas com pub cd iocard pci napdos pci pio dio dos B gt for Turbo C 2 xx or above TC LIB gt for TC library TC DEMO gt for TC demo programs TC DIAG gt for TC diagnostic programs TC LIB PIO H gt TC declaration file TC LIB TCPIO_L LIB TC large model library file TC LIB TCPIO_H LIB gt TC huge model library file B MSC gt for MSC 5 or above MSC LIB PIO H gt MSC declaration file MSC LIB MSCPIO_L LIB gt MSC large model library file MSC LIB MSCPIO_H LIB gt MSC huge model library file m BC gt for BC 3 xx or above BC LIB PIO H gt BC declaration file BC LIB BCPIO_L LIB gt BC large model library file BC LIB BCPIO_H LIB gt BC huge model library file The list of demo programs DEMO1 D O for CN1 DEMO2 D O for CN1 CN6 DEMOS Interrupt of P2CO Initial low and active high DEMO4 Interrupt of P2CO Initial high and active low DEMOS 4 interrupt sources PIO D144 D144U D168 D168U User s Manual Ver 3 0 Nov 2010 PMH 009 30 2 DOS Functions A2 1 ErrorCode and ErrorString Code Table
11. in industrial environments as shown in Figure 2 7 Table 2 4 is comparison of the DB 24P and DB 24PD PIO D144 U PIO D168 U Opto Isolated PIO D144 U PIO D168 U _ Ji EE V NENNEN DB 24P _ 58 AC or DC Signal 0 V to 24 V Figure 2 7 Table 2 4 DB 24PD 50 pin flat cable header Yes Yes D sub 37 pin header No Yes Other specifications Same 2 7 6 DB 24R DB 24RD Relay Board The DB 24R is a 24 channel relay output board consisting of 24 Form C relays for efficient programmable control of the load switching The relays are powered by applying a 12 V 24 V voltage signal to the appropriate relay channel on the 50 flat cable connector There are 24 enunciator LEDs for each relay channel and the LED is light when their associated relay is activated The control scheme is illustrated in Figure 2 8 below Table 2 5 gives a comparison and Table 2 6 gives a description of the daughter boards used in this application Form C Rela Normally Open a Normally Closed Com SOPin cable P PIO D144 U PIO D168 U Notes Channels 24 Form C Relay Relays Switching of up to 0 5 A at 110 Vac or 1 A at 24 Vpc Figure 2 8 Table 2 5 DB 24R DB 24RD 50 pin flat cable header Yes Yes D sub 37 pin header NO Yes Other specifications Same Table 2 6 DB 24R DB 24RD 24 x Relay 120 V 0 5 A 24 x Power Relay 250 V 5 A 24 x Photo MOS Relay 350 V 01 A 24 x SSR
12. number wBase Output base address of the board wirq Output IRQ number that the board using wSubVendor Output Sub Vendor ID wSubDevice Output Sub Device ID wSubAux Output Sub Aux ID wSlotBus Output Slot Bus number wSlotDevice Dutput Slot Device ID Returns Hefer to Table A 1 A2 4 PIO GetDriverVersion Description This function is used to obtain the version number of PIODIO driver Syntax WORD PIO_GetDriverVersion WORD wDriverVersion Parameters wDriverVersion Output wDriverVersion address Returns Refer to Table 1 A2 5 ShowPIOPISO Description This function can be used to display a text string indicating the special oub ID This text string is the same as that defined in PIO H Syntax WORD ShowPIOPISO wSubVendor wSubDevice wSubAux Parameters wSubVendor Input SubVendor ID of the board wSubDevice Input SubDevice ID of the board wSubAux Input SubAux ID of the board Returns Refer to Table A 1
13. 0 PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 2 7 8 Daughter Board Comparison Table Table 2 9 lists a comparison for the daughter board applications using PIO PISO series cards Table 2 9 20 pin flat cable 50 pin flatcable D sub 37 pin_ DB 37 No No Yes DN 37 No No Yes ADP 37 PCI No Yes Yes ADP 50 PCI No Yes No DB 24P No Yes No DB 24PD No Yes Yes DB 16P8R No Yes Yes DB 24R No Yes No DB 24RD No Yes Yes 24 Yes Yes Yes DB 24PRD No Yes Yes DB 24POR Yes Yes Yes DB 24SSR No Yes Yes 3 1 How to Find the Address 3 Control Register b 4 The Plug amp Play BIOS will assign an appropriate address to each PIO PISO series card during the power on stage The fixed IDs of the PIO D144 and PIO D168 series cards are as following For PIO D144 D144U Rev 1 0 Rev 3 0 Vendor ID Device ID Sub vendor ID Sub device ID Sub aux ID OxE159 0x0002 0x80 0x01 0x00 Rev 4 0 or above Vendor ID Device ID Sub vendor ID Sub device ID Sub aux ID 0xE159 0x0001 0x5C80 0x1C80 0x01 0x00 For PIO D168 D168A D168U PIO D168A Vendor ID Device ID Sub vendor ID Sub device ID Sub aux ID OxE159 0x0002 0x80 0x01 0x50 PIO D168 U Vendor ID Device ID Sub vendor ID Sub device ID oub aux ID OxE159 0x0001 0x9880 0x01 0x50 The PIO_PISO EXE utility program will detect and present all information for PIO PISO cards install
14. 16B6 P1986 20 2i P4B5 P7B5 P10B5 P13B5 P16B5 P1985 22 GN 29 P4B4 P7B4 P10B4 P13B4 P16B4 P19B4 24 GND 25 P4B3 P7B3 P10B3 P13B3 P16B3 P19B3 26 27 P4B2 P7B2 P10B2 P13B2 P16B2 P19B2 28 2 2 2 N 2 N 3 2 3 33 P3A7 P6A7 P9A7 P12A7 34 GND 35 P3A6 P6A6 P9A6 P12A6 P15AS P18A6 36 _ 87 P3A5 P6A5 P9A5 P12A5 P15A5 P18A5 38 _ 39 Pana Pond P12A4 PI5A4JPI8A4 40 4i Pansy P6A3 POA3 1 P15A3 P18A3 42 _ 3 4 P3A2 P6A2 P9A2 P12A2 1 2 2 44 45 P9A1 P12A1 P15A1 P18A1 46 _ 16 18 9 20 I 22 24 5 26 7 28 N N 34 5 36 7 38 9 40 I 42 44 46 4 47 P3A0 P6A0 P9A0 P12A0 P15A0 P18A0 2 4 Enable 1 0 Operation When the PC is first powered on the operations of all digital channels for each port are disabled Note that the digital I O channel for each port is enabled or disabled using the RESET signal Refer to Sec 3 3 1 for more information The power on states for all DI O ports are as follows B operations for each port are disabled B ports are all configured as Digital input ports B D O latch registers are all undefined Refer to Sec 2 5 for details The user must perform an initialization procedure before using these digital ports The recommended steps are as follows Step 1 Determine the addr
15. 250 Vac 4 DB 24C 24 x O C 30 V 100 mA DB 16P8R 16 x Relay 120 V 0 5 A 8 x isolated input 2 7 DB 24PR DB 24POR DB 24C Table 2 7 DB 24PR 24 x Power relay 5 A 250 V 24 x Photo MOS relay 0 1 A 350 Vac 24 24 x Open Collector 100 mA channel 30 V max The DB 24PR is a 24 channel power relay output board consisting of 8 Form C and 16 Form A electromechanical relays for efficient programmable control of the load switching The contact of each relay can allow 5 current load at 250 Vac 30 Vpc The relay is powered by applying a 5 voltage signal to the associated relay channel on the 20 pin flat cable connector only uses 16 relays or 50 pin flat cable connector OPTO 22 compatible for DIO 24 series 24 enunciator LEDs for indicating the status of for each relay and the corresponding LED is light when their associated relay is activated To avoid overloading your PC s power supply this board needs a 12 or 24 external power supply as shown in Figure 2 9 Normally Open Form A Relay 50 Pin cable PIO D144 T1885 Notes l A 50 Pin connector OPTO 22 compatible is used for DI O 24 48 144 PI O D144 PI O D96 PI O D56 PI O D48 PI O D24 PI O D168 2 A 20 Pin connector for 16 channel digital output is used for A 82X A 62X DI O 64 1SO DA16 DAS 3 Channels 16 Form A Relay 8 Form C Relay 4 Relays Switching of up to 5 A at 110 Vac 5 A at 3
16. 44 D168 series cards from the PC Install a single PIO D144 D1668 series cards into the PCI slot2 in the PC then run PIO PISO EXE and record the wSlotBus2 and wSlotDevice2 information Repeat Steps and 4 for all slots and record all wSlotBus and wSlotDevice information PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 records may be similar to the following table Table 3 2 PCI slot wSlotBus _ wsotpevice Slot_1 0 0x07 Slot_2 0 0x08 Slot_3 0 0x09 Slot_4 0 PCI BRIDGE Slot_5 1 0x0A Slot_6 1 0x08 Slot 7 1 0x09 Slot_8 1 0x07 The above procedure is used to record all the wSlotBus and wSlotDevice Information for the PC These values will be mapped to this physical slots and this mapping will not be changed for any PIO PISO cards Therefore this information can be used to identify the specific PIO PISO card using the following steps Step 1 Using the wSlotBus and wSlotDevice information from Table 3 2 enter the board number into the PIO_GetConfigAddressSpace function to get the information for a specific card information especially wSlotBus and wSlotDevice details Identify the specific PIO PISO card by comparing the data of the wslotBus and wSlotDevice from step 1 i gt Note that normally the card that 15 installed in slot 0 is cardO and the card installed 51061 is card1 for PI O PI SO series cards 3 3 The Addres
17. eck List The shipping package includes the following items m One PIO D144 D168 series card m One software utility PCI CD m 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 m How to install the software B 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 PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 2 Hardware Configuration 2 1 Board Layout The board layout of the PIO D144 D168 series cards are shown below 50 PIN PIO D144 D168 50 PIN PIO D144U D168U Port 9 Port 10 Port 11 50 PIN Port 12 Port 13 Port 14 50 PIN 50 PIN CN6 Port 15 Port 16 Port 17 Only PIO D168 CN7 Port 18 Port 19 Port 20 Figure 2 1 Only PIO D168U CN7 Figure 2 2 2 2 Port Location There are 18 21 8 bit I O ports in the PIO D144 D168 series Every port can be Independently configured as a D l or D O port When the PC is first powered on all ports are set as Digital input ports Therefore the user needs to configure these ports as either digital input or output ports before using th
18. ed in the PC as shown in the following figure Details of how to identify the PIO series cards of ICPDAS data acquisition boards based on the Sub vendor Sub device and Sub Aux ID are given in Table 3 1 The PISO exe utility is located on the CD as below and is useful for all PIO PISO series cards CDANAPDOSWPChUtilityWin32WPIO PISO http ftp icodas com pub cd iocard pci napdos pci utility win32 pio piso ICP DAS PCI Base I O Card Utility Ver 2 48 8 1202 Sele ect one of the device to show the detail information ley ID CubVen Cube BoardName fl Yersoin Manual Port Address HEX Address Value Width v Write EN 2 E Bust n 1 Devicedt Show Unknow Device BAR 2 Address BAR 3 IE IRD Save Log EXIT Figure 3 1 Table 3 1 PIO PISO series Description Sub sendor Sub device Sub aux card ID ID ID dum 5 _ PIO D144 REV4 0 144 D I O POD o w 24 D I O PIO D56 16 D I 16 D O 80 01 40 PIO D48 48 D l JO9O 80 30 PIO D24 24 480 40 PIO 821 Multifunction 80 03 10 PIO DA16 16 DA 80 04 00 PIO D8 8 DA 80 04 00 PIO DA4 4 DA 80 04 00 64 isolated D O Current sourcing PISO P64 64 isolated D I E 32 isolated D O PISO P32C32 Current sinking 20 32 isolated 32 isolated DO PISO P32A32 C
19. en in an application Each port is named as the following table and its location can be found in Figure 2 1 and 2 2 Table 2 1 Connector of PA7 PBO PB7 PCO PC7 PIO D144 U D168 U 1 Porto Port1 Port2 CN2 Port3 Port4 Port5 CN3 Port6 Port7 Port8 CN4 Port9 Port10 Port 1 CN5 Port12 Port13 Port14 CN6 Port15 Port16 Port17 CN7 PIO D168 168U Only Port18 Port19 Port20 Refer to Sec 2 1 for details of board layout and I O port location Note e P2CO 2 1 P2C2 P2C3 interrupts and of the CN1 connector can be used as an interrupt signal source Refer to Sec 2 3 and 2 6 Pin Assignments for more information 23 Pin Assignments The Pin assignments for all PIO D144 D168 series connectors are listed in Tables 2 2 and 2 3 All signal sources for each digital input or output pin channel are TTL compatible Note CN7 Port18 Port20 is only for the PIO D168 D168U PA_0 37 _1 36 _2 35 PA 3 34 PA 4 33 PA 5 32 _6 31 PA 7 30 PC 0 PC_1 28 _2 2 PC 3 26 PC 4 25 PC 5 24 PC 6 22 PC 7 22 GND 21 VCC 20 CN1 1 Ho JY OO N o2 GND Vcc GND N C GND N C GND N C GND PB 0 PB 1 PB 2 PB 3 PB 4 PB 5 PB 6 PB 7 N C N C 37 PIN D type female connector PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND
20. eries contains 18 21 8 bit I O ports but only one port can be activated at a time The following example is a demonstration of how to activate the port of the PIO series card outp wBase 0xc4 0 PortO is now active outp wBase 0xc4 1 Portl is now active outp wBase 0xc4 17 O Port17 is now active outp wBase Oxc4 20 1 O Port20 is now active 3 3 9 Selection Control Register Write wBase 0xc8 O jPot5 Pors Po Pono Write 0 ha bs he pak Pag Write wBase 0xd0 R b bur hu ken resi Fn ka Write wBase 0xd4 o b b b O jPot20 Porio Pots _ Port 1 This port is used as port Port 0 This port is used as a D O port PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 These registers provide the function for configuring the digital input output ports of the PIO PISO series cards Each I O port can be programmed as either or a D O port Note that all ports are set as ports when the PC is first powered on The location of the I O ports and a configuration example is presented below Table 3 4 connector 1 Porto Port1 Port2 2 Port3 Port4 Port5 CN3 Port6 Port7 Port8 CN4 Port9 Port10 Port1 1 CN5 Port12 Port13 Port14 CN6 Port15 Port16 Port17 CN7 PIO D168 U Only Port18 Port19 Port20 outportb wBase 0xc8 0 PortO to Port5 are all D O ports outportb wBase O
21. ers Successful lt 357 Ports COM LPT EE Processors m Sound videa and game controllers System devices 12 Universal Serial Bus controllers BA 5 Demo Programs for Windows None of the demo programs will function correctly if the DLL driver is not properly installed During the DLL driver installation process the Install Shield software will register the correct kernel driver to the operating system and copy the DLL driver and demo programs to the correct position based on the driver software package you have selected Win98 ME NT 2K and 32 bit Windows XP 2003 Vista 7 After the drivers are installed the relevant demo programs development libraries and declaration header files for the different development environments will be available in the following locations The demo program is contained in CD NAPDOS PCI PIO DIO DLL_ OCX Demo http fto icodas com pub cd iocard pci napdos pci pio dio dll_ ocx demo B BCB4 gt for Borland Builder 4 PIODIO H gt Header files PIODIO LIB gt Linkage library for BCB only B Delphi4 gt for Delphi 4 PIODIO PAS gt Declaration files B VB6 gt for Visual Basic 6 PIODIO BAS gt Declaration files B VC6 gt for Visual 6 PIODIO H gt Header files PIODIO LIB gt Linkage library for VC only B VB NET2005 2 for VB NET2005 PIODIO vb Visual Basic Source files B CSharp2005 gt for C NET2005 PIODIO cs Visual C Source files A list of available demo programs is
22. ess mapping of the PIO PISO cards Refer to Sec 3 1 for details Step 2 Enable all Digital l O operations Refer to Sec 3 3 1 for details Step 3 Select the controlled port Refer to Sec 3 3 8 for details Step 4 Send initial value to the D O latch register for the controlled port Refer to Sec 2 5 and Sec 3 3 7 for details Step 5 Repeat Steps 3 and 4 to initialize the other D O ports Step 6 Configure all Digital ports to their expected or D O function Refer to Sec 3 3 9 for details For more information regarding the initialization procedure for digital ports please refer to the DEMO1 C demo program PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 2 5 D I O Architecture The digital control architecture for the PIO D144 D168 series is illustrated in Figure 2 2 The operation method of control signal is described below B When the RESET signal is in the Low state if means that all D I O operations are disabled B When the signal is in the High state if means that all D I O operations are enabled Ifthe D I O is configured as a port the port can accept digital input from external signal sources B D I O is configured as a D O port the digital output value can be read from the port B Ifthe D I O is configured as a port sending data to the Digital input port will only change the D O latch register The latched data will be output w
23. hen the port is configured as a digital output port and is activated right away I O select Sec 3 3 9 RESET Sec 3 3 1 disabled Input Latch Clock input D I latch CKT disabled Buffer Input Sec 3 3 7 D Clock input buffer CKT Figure 2 2 2 6 Interrupt Operation The P2C0 P2C1 P2C2 and P2C3 interrupts pins of the CN1 connector can be used as an interrupt signal source Refer to Sec 2 1 for the location of the P2C0 P2C1 P2C2 P2C3 pins The interrupt of the PIO D144 D168 series is level triggered and is Active High The interrupt signal can be programmed as either inverted or non inverted The procedure for how to configure the Interrupt signal source is as follows Determine whether the initial level is either High or Low from the signal source If the initial state is High select the inverted setting for the interrupt signal source Section 3 3 6 If the initial state is Low select the non inverted setting for the interrupt signal source Section 3 3 6 Enable the interrupt function Section 3 3 4 If the interrupt signal is active the interrupt service routine will be automatically started Note that DEMO3 C and DEMO4 C are demo programs for a single interrupt source and DEMO5 C is a demo program for four interrupt sources in a DOS operating system If only one interrupt signal source is used the interrupt service routine does not need to identify the interrupt source Refe
24. ncludes an onboard Card ID switch Once the Card ID is set the board can be identified by the software when using more than one PIO D144U D168U cards in a single computer based on the ID The PIO D144 D168 series cards supports various OS versions such as Linux DOS Windows 98 NT 2000 and 32 bit 64 bit Windows XP 2003 Vista 7 DLL and Active X control together with various language sample programs based on Turbo C Borland C Microsoft Visual Borland Delphi Borland C Builder Visual Basic C NET Visual Basic NET and LabVIEW are provided in order to help users quickly and easily develop their own applications PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 1 1 Specifications 1 1 1 PIO D144 PIO D144U Model PIO D144 PIO D144U Programmable Digital I O SE Compatibilit 5 V TTL Logic 0 0 8 V max Input Voltage Logic 1 2 0 V min Response Speed 1 2 MHz Typical Digital Output Compatibilit 5 V TTL Logic 0 0 4 V max Output Voltage Logic 1 2 4 V min Sink 64 mA 0 8 V Output Capability Source 32 mA 2 0 V Response Speed 1 2 MHz Typical 3 3 V 5 V Universal PCI Bus 5 V PCI 32 bit 33 MHz 32 bit 33 MHz Data Bus Card ID Yes 4 bit Female DB37 x 1 Connectors 50 pin box header x 5 Dimensions L x W x D Power Consumption Operating Temperature Storage Temperature Humidity 5 85 RH non condensing 1 1 2 PIO D168 PIO D168U Model
25. nto the CD ROM drive and after a few seconds the installation program should start automatically If it doesnt start automatically for some reason double click the 2 file in the NAPDOS folder on this CD Click the item PCI Bus DAQ Card Click the item PIO DIO Click the item DLL and OCX for Windows 98 NT 2K XP 2003 Double Click DIO Win vxxx exe file in the Driver folder PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 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 m Windows 64 bit Windows XP 2003 Vista 7 The UniDAQ DLL file will be copied into the C WINNT SYSTEM32 folder The NAPWNT SYS and UniDAQ SYS files will be copied into the CA WINNT SYSTEMS32 DRIVERS folder Qo 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 Windows NT 2K 32 bit Windows XP 2003 Vista 7 The PIODIO DLL file will be copied into the C WINNT SYSTEM82 folder The NAPWNT SYS and PIO SYS files will be copied into the CA WINNT SYSTEMS32 DRIVERS folder B Windows 95 98 ME The PIODIO DLL and PIODIO Vxd files will be copied into the C
26. on inverted A detailed application example is shown below B INVO 1 select the non inverted signal from P2CO B INVO0 0 select the inverted signal from P2CO outp wBase 0x2a 0 Select the inverted input from 2 0 1 2 3 outp wBase 0x2a 0x0f Select the non inverted input from 2 0 1 2 3 outp wBase 0x2a 1 Select the non inverted input from P2C0 Select the inverted input from P2C1 2 3 i outp wBase 0x2a 3 Select the non inverted input from 2 0 1 Select the inverted input from P2C2 3 TI Refer to Sec 2 6 and the 5 file for more information 3 3 7 Read Write 8 bit Data Register LEEREN 0 b ps bs ps e e be The PIO D144 D168 series contains 18 21 8 bit I O ports and each port can be configured as either a or a D O port The user can send receive digital data to from this register for digital input or output Note that all ports are set as D I ports when the PC is first powered on outp wBase O0xcO Val Write to a D O port Val inp wBase 0xc0 Read from a D I port or read a D O Readback o Note Ensure that the I O port configuration is set to either D l or D O before attempting to read write from the to data register Refer to sec 3 3 9 PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 3 3 8 Active Port Control Register Read Write wBase 0xc4 D e ps pa ps bp p o The PIO D144 D168 s
27. r to DEMO3 C and DEMOA C However if there is more than one interrupts source the interrupt service routine needs to identify the active signals as follows Refer to DEMO5 C PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 Read the new status of the interrupt signal source Compare the new status with the old status to identify the active signals lf P2C0 is active service P2C0 and non inverter inverted as the P2C0 signal lf P2C1 is active service P2C1 and non inverted inverted as the P2C1 signal If P2C2 is active service P2C2 and non inverted inverted as the P2C2 signal lf P2C3 1 active service P2C3 and non inverted inverted the P2C3 signal Save the new status to old status Limitation if the interrupt signal is too short the new status may be the same as the old status In this case the interrupt signal must be held at active until the interrupt service routine is executed This hold time is different for different OS versions and can be as short as micro second or as a long as second In general 20 ms is enough for all types of OS 27 Daughter Boards 2 7 1 DB 37 The DB 37 is a general purpose daughter board for D sub 37 pin devices and is designed for easy wiring wu i 37 PIH cable yan a 2 7 2 DN 37 DN 50 The DN 37 is general purpose daughter board for the DB 37 using DIN Rail Mounting
28. s The address of the PIO PISO series is automatically assigned by the main board ROM BIOS The I O address can also be re assigned by the user but It is strongly recommended that the I O address is not changed by user The Plug amp Play BIOS will assign an appropriate I O address to each PIO PISO series card The addresses of the PIO D144 D168 series cards are as follows and are based on the base address of each card Table 3 3 Address Read Write wBase 0x2a INT polarity control register Read D O Readback Write 8 bit data to the D O port wBase 0xc0 Read 8 bit data from the lt l port Select the active I O port Port 0 5 direction contro Port 6 11 direction contro 0 0 Reserved I O Port 12 17 direction control om Port 18 20 direction control wBase 0x only for PIO D168 series Note Wbase 0xd4 is only for PIO D168 series PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 3 3 1 RESET Control Register rite wBase 0 eser eer seva eere esee ResovedResoved RESET When the is first powered on the RESET signal is in the Low state This Will disable all D I O operations The user has to set the RESET signal to the High state before performing any D I O commands outp wBase 1 RESET High gt all D I O operations are now enabled outp wBase 0 RESET Low gt all D I O operations are now disabled 3 3 2 AUX Control
29. urrent sourcing 70 2 isolated D I isolated Isolated D l isolated D l 16 DI 16 D O 16 isolated D I PISO 730 16 isolated D O Current sinking 16 DI 16 D O sassa 16 isolated 16 isolated D O Current sourcing PISO 813 32 isolateed AD 80 0A 00 PISO DA2 2 80 0B 00 o Note If the board is a different version it may have different Sub IDs but no matter which version of the board you select the same function calls are provided PIO D144 D168 Series User s Manual Ver 3 0 Nov 2010 PMH 009 30 3 2 The Assignment of I O Addresses The Plug amp Play BIOS will assign an appropriate I O address to the PIO PISO series card If there is only one PIO PISO board the board will be identified as card 0 If there are two PIO PISO boards in the system it is very difficult to identify which board is 0 The software driver can support a maximum of 16 boards Therefore the user can install 16 PIO PSIO series cards in one PC system Details of how to locate and identify card O and card 1 are provided below The simplest way to identify which card is card 0 is to use wSlotBus and wSlotDevice functions as follows Remove all PIO D144 D168 series cards from the PC Install a single PIO D144 D168 series card into the PCI slot1 in the PC then run PIO PISO EXE and record wSlotBus1 and wSlotDevice1 information Remove all PIO D1
30. xcc Ox3f Port6 to Port11 are all D I ports outportb wBase 0xd0 0x38 Port12 to Port14 are all D O ports Port15 to Port17 are all D I ports 3 3 10 Read Card ID Register Read wBase 0xf0 pb b b b Ee m he b wCardlD inportb wBase OxFO Read ID Note The Card ID function is only supported by the PIO D144U and PIO D168U model Ver1 0 or above mE 4 Software Installation The PIO D144 and PIO D168 series can be used in DOS and Windows 98 ME NT 2K and 32 bit 64 bit Windows XP 2003 Vista 7 The recommended installation procedure for windows is given in Sec 4 1 4 2 Or refer to Quick Start Guide CD NAPDOS PCI PIO DIO Manual QuickStart http fto icodas com pub cd iocard pci napdos pci pio dio manual quickstart 4 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 doesnt start automatically for some reason double click the AUTO32 EXE file in the NAPDOS folder this CD Click the item PCI Bus DAQ Card Click the item UniDAQ Click the item DLL for Windows 2000 and XP 2003 Vista 32 bit Double Click UniDAQ Win Setup x x x x xxxx exe file in the Driver folder B Windows driver Windows 98 NT 2K and 32 bit Windows XP 2003 Vista 7 Insert the companion CD i

Download Pdf Manuals

image

Related Search

Related Contents

List of changes in the program MCNelectron  Manuel d`installation EcoStar 700  Qualité des produits lliko l5-ü3 Niveaux de protection l`i-l34  Skil 9296-01 Use and Care Manual  ソスフ マ 一` 丶  Samsung SIR-T151 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file