Home

PISO-P8R8U/P16R16U User`s Manual

image

Contents

1. mr Figure 1 2 PCI E X1 slots and PCI E X16 slots PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 5 1 1 Features and Applications 1 1 1 Features Items PISO P8R8U PEX P8R8i PISO P16R16U PEX P16R16i e 3 3V 5 Vor 3 3 V 5 V Universal PCI Bus add on card for PISO P8R8U P16R16U Common e PCI Express Bus add on card for PEX P8R8i P16R16i Features Optically isolated digital input e 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 P8R8U P16R16U and PEX P8R8i P16R16i card 1 1 2 Applications e Factory automation e Laboratory automation e Communication switching e Security control e Product testing e Energy management PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 6 1 2 Block Diagram PCI Express Slot PCI E to PCI Bridge PCI Controller Photo couple I I I mem l ET Photo couple s PEX P16R16i I Photo couple h L Figure 1 2 1 Function Block Diagram PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 7 1 3 Specifications 1 3 1 PISO P8R8U PEX P8R8i Model Name PISO P8R8U PEX P8Rg8i Digital Input Isolation V
2. R2 m p E L F 131 0 6 pier q RE 2 ix ssl x L zer ee Tu sn KR d E OD SHER L 2 PEX P16R16i PEX PERBI CON1 JP1 8 PCI Express Bus Card ID JP9 16 C Figure 2 1 2 PEX P16R16i Board layout and components Item Description CON1 I O connector CON2 I O connector P16R16i only JP1 8 Filter jumpers JP9 16 Filter jumpers P16R16i only SW1 Card ID switch Table 2 1 2 Components and descriptions PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 13 2 2 Jumper 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 sumper Onemmel _ Do eaog 4j JP1 Table 2 2 Jumper ne The figure below shows how to select the digital input type 1 2 3 3 Without Filter For DC Signal With AC Filter Default Settling For AC Signal Figure 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 t
3. DIO1 wCardAddress OxAAAA if kbhit break DIO1 wCardAddress 0x0000 if kbhit break DIO1 wCardAddress 0x5555 if kbhit break i 3 Iprintf TotalCounts ld ErrorCounts ld n n iCounts iErrors DIO1 wCardAddress 0x0000 printf TotalCounts ld ErrorCounts ld n iCounts iErrors return iErrors PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 34 5 Windows SDK 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 5 1 PIO_PISO EXE Program PIO PISO series card Ver 2 40 Jan 05 2006 _lolx PIO_PISO exe diagnostic A program can be used to identify all ren l PIO PISO series cards currently installed in the PC and can be useful for checking whether the cards are correctly installed in the PCI slot The following information is also 2 displayed 1 The model number of all cards found sus 0
4. 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 e PISO P8R8U amp PEX P8R8i 8 channel isolated digital input 8 channel relay output board s PISO P16R16U amp PEX P16R16i 16 channel isolated digital input 16 channel relay output board Options e DN 37 I O connector block with DIN Rail mounting and 37 pin D type connector e DB 37 37 pin D type connector pin to pin screw terminal for any 37 pin D type I O board connector PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 10 1 6 PCI Data Acquisition Family ICP DAS provides a family of PCl Bus data acquisition cards These cards can be divided into three groups as follows 1 PCl series first generation isolated or non isolated cards PCI 1002 1202 1800 1802 1602 multi function family non isolated PCI P16R16 P16C16 P16POR16 P8R8 D I O family isolated PCI TMC12A 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 P
5. 0 0 CE OZECOO 2 The I O address and IRQ pr e H Ox OF IRG 11 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 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 35 5 2 Program Architecture PISODIO_DriverInit Enable All DI DO PISODIO_InputByte PISODIO_OutputByte PISODIO_DriverClose Function Call to DLLs Toolkit Services Call to Kernel Mode Device Control Hardware Device PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 36 5 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 5
6. NEN GNI NIB 6 E Xoddodbq 6 1 REPORTING PROBLEMS cocococononononononononononononononononononononononononononononononononononononononononononononononononononenonononos PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 3 1 Introduction Model Number Isolated Digital Input Output Type PISO P8R8U PEX P8R8i 8 Channels 8 Channels Relay Output PISO P16R16U PEX P16R16i 16 Channels 16 Channels Relay Output PISO PxRyU x Channels y Channels Relay Output ODM Only Table 1 1 Model number and card types The PISO P16R16x and PISO P8R8x series are relay actuator output isolation input interface cards for PCs and compatible computers The former provides 16 input and 16 output channels and the latter provides 8 input and 8 output channels The PISO P16R16U P8R8U 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 rnr KR LR RR RKR Figure 1 1 3 3 V PCI X slots and 5 V PCI slots PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 4 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 PCI Express 1X 4X 8X 16X slot L E PCIE 2 15 38 3 ATEM EHE A EA TEE ET AE nam m m
7. 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 Ifthe 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 E mail Service icpdas com Web Site http www icpdas com PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 43
8. tee e eee a 22 3 3 1 RESETIN Control Register e t test e ap 22 332 CARD TD Rester uin eee aure vet que au bye Seca 23 3 3 3 J O D ta Register eee eren ibt RE b bera i EES PNTE ee ae ure 24 DOS SD 25 4 1 PIO_PISO EXE PROGRAM AA 25 4 2 ERROR CODES C i 26 4 3 EIB FUNCTIONS it e petet te TTT 26 CES EE MODA LTD ERE 27 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 2 43 2 PIO GetConfigAddressSp ce A tte iiit thiet ettet erento netten bae treten 4 5 3 LO Ds 2 e e Re e XP ME Re Sex RATER eI RR RI AR 43 4 Show PIQ PISQ cene enc ence aam aede tege e pets 4 4 SAMPLE PROGRAM FOR DOIS ag Sd H dE aOd SIE dE Ng Ty d diad VENT y esse assesses esse esee esses eee 5 WINDOWS SDK q qe 5 1 PIO PISO EXE PROGRAM unsre here et e idee ree P ir ess 35 2 PROGRAM ARCHITECTURE irritare OOo RERO HERE EE SEES 3 3 ERROR CODES R T E E ea 5 4 DEE FUNETIONS erdt br Ree er ipei e a e pod iere oes uf P PISODIO DAVE E as E 5 4 2 PISODIO_DriverClose oooooniccccooonooonononnnonononononnnnnnn nono nnn nnn nnn nono nono nono no nono conoce aa Aa A aoar iin aeai 5 4 3 PISODIO GetConfigAddressSpace esee eene nennen trennen eene ener 544 PISODIO GetDriverVersion a e d tdci DAS PISODIO GetDIlVersion isi e aa 34 6 PISODIO OultpylBytes iios update P ee ee lcs IA BISODIO InputByte ui oeste e ettet tisse re ari i ee EORR 3 9 DEMO PROGRAM Ser ss EINEN
9. to indicate the attributes of each parameter Keyword Description In The parameter must be initialized or have a value set before calling this function Out The parameter will return a value or other data after this function is called A Note All parameter spaces buffers must be allocated and then freed by the user application programs PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 26 4 3 1 PIO_Driverlnit This function detects all PIO and PISO series cards that are installed in 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 wRtn PIO Driverlnit amp w TotalBoardsFound OxFF OxFF OxFF e Syntax WORD PIO Driverlnit WORD wBoards DWORD wSubVendorlD WORD wSubDevicelD BYTE wSubAuxID Parameters wBoards Out The Number of boards found wSubVendorlD In The Sub Vendor ID of the board to search for wSubDevicelD In The Sub Device ID of the board to search for wSubAuxID In The Sub Aux ID of the board to search for e Return Refer to the error codes in Section 4 2 for more information PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 27 4 3 2 PIO_Get
10. typical Release Time 7 ms typical Insulation Resistance 1000 MQ Mechanical 5000000 ops Life f Electrical 100000 ops General 3 3 V 5 V Universal PCI Bus Type y PCI Express x1 32 bit 33 MHz Data Bus 16 bit Card ID Yes 4 bit UO 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 5 V Operating Temperature 0 60 C Storage Temperature 20 70 C Humidity 5 85 RH non condensing PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 9 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 However 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 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
11. 0 0x0A 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 P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 21 3 3 VO Address Mapping The I O address for PIO PISO series cards is automatically assigned by the ROM 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 P8R8U P16R16U and PEX P8R8i P16R16i card is as follows Address Read Write O WBaser0 RESET WBase 7 Card ID Bit 5 2 L wBase 0xC0 DIO DI7 DO0 DO7 wBase 0xC4 DI8 Dl15 DO8 DO15 Note Refer to Sec 3 1 for more information regarding wBase 3 3 1 RESET
12. 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 In The parameter must be initialized or have a value set before calling this function Out 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 P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 37 5 4 1 PISODIO_Driverlnit 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 e Syntax WORD PISODIO_Driverlnit Parameters None e Return Refer to the error codes in Section 5 3 for more information 5 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 e Syntax void PISODIO_DriverClose Parameters None e Return None PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 38 5 4 3 PISODIO GetConfigAddressSpace This function retrieves the I O address and information related to the PISO DIO card from the drive
13. 8SSR8AC P8SSR8DC P16R16U PEX P16R16i D I O family PISO 730 D I O card PISO DA2 D A card 1 7 Product Check List In addition to this manual the package includes the following items e One PISO P8R8U P16R16U or PEX P8R8i P16R16i card e One ICP DAS PCI CD e One Quick Start Guide It is recommended to read the Quick Start Guide first All important information is provided in Quick Start Guide as follows 1 The location of the DOS and Windows software drivers and utilities 2 How to install the software and utilities 3 The location of the diagnostic program 4 FAQ A Attention If any of these items are missing or damaged contact the dealer from whom you purchased the product Save the shipping and packing materials in case you want to ship or store the product in the future PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 11 2 Hardware Configuration 2 1 Board Layout pa JE JE w Ty T DINI iA nnn teenie nini riae CONI JP1 8 SW1 Card ID JP9 16 CON2 Figure 2 1 1 PISO P16R16U Board layout and components Item Description CONT I O connector CON2 I O connector P16R16U only JP1 8 Filter jumpers JP9 16 Filter jumpers P16R16U only SW1 Card ID switch Table 2 1 1 Components and descriptions PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 12 U HIIS TTT T
14. ConfigAddressSpace 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 e Syntax WORD PIO_GetConfigAddressSpace WORD wBoardNo WORD wBase WORD wirq WORD wSubVendor WORD wSubDevice WORD wSubAux WORD wSlotBus WORD wSlotDevice e Parameters wBoardNo In The Board number starting from 0 wBase Out The base address of the board wirg Out The IRQ number allocated to the board wSubVendor Out The Sub Vendor ID of the board wSubDevice Out The Sub Device ID of the board wSubAux Out The Sub Aux ID of the board wSlotBus Out The Bus Number of the slot wSlotDevice Out The Device Number of the slot e Return Refer to the error codes in Section 4 2 for more information PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 28 4 3 3 PIO 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 e Syntax WORD PIO_DriverClose void Parameters None e Return Refer to the error codes in Section 4 2 for more information 4 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 e Syntax WORD Show PIO PISO DWORD wSubVendorlD WORD wSubDevice WORD wSubAux Par
15. Control Register Read te wBase 0 MO EN RESET Note Refer to Sec 3 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 D l and D O operations The RESET signal must be set to the High state before any D l 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 all DI DO channels are now disabled PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 22 3 3 2 CARD ID Register Read wBase 7 d D Note Refer to Sec 3 1 for more information regarding wBase The Card ID 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 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 PISO P8R8U P16R16U PEX P8R8i P16R16i Us
16. PISO P8R8U P16R16U PEX P8R8i P16R16i User 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 assumes no liability for any damage 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 ICP DAS assumes no responsibility for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright March 1998 2008 by ICP DAS All rights are reserved Trademark The names used in this document are for identification purposes only may be 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 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 1 Table of Contents 1 INTRODUCTION pisssssssssssessensnssnsensessvsonssssnnsnsssecdonssasosenss sovdonsesossensesosdonteasexensessonsaseosensbaesesdoantacsvonsbscsnoanese 4 1 1 FEATURES AND APPLICATIONS ses anni Eee eer eer ue Ee E aea eere see eiaei 6 1 1 1 Fea res d ies deret nebst used NLA addam PS 6 1 1 2 Applications seta nie e ett Ne iate i
17. ameters wSubVendor In The Sub Vendor ID of the board wSubDevice In The Sub Device ID of the board wSubAux In The Sub Aux ID of the board Return Refer to the error codes in Section 4 2 for more information PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 29 4 4 Sample Program for DOS include PIO H WORD wCardAddress wTotalBoardsFound int SelectBoard WORD wBoardNo DWORD TestDIO WORD wCardAddress DWORD iCounts iErrors int main WORD wRin wirqNo WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c WORD i clrscr es Initialize Driver for PISO P16R16U rr rrr rr wRtn PIO_Driverlnit amp wTotalBoardsFound 0x1800 0x0 0xFF if wTotalBoardsFound 0 wRtn 0 i printf Driver initialization error Error Code d n int wRtn return 1 printf nThere are d PISO P16R16U Card s in this PC wTotalBoardsFouna Poa Get Card Information I O Address printf n n The Configuration Space 2 for i 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 wBase x wlrq x subID x x x SlotID x x PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 30 i wCardAddress wirqNo wSubVendor wSubDev
18. 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 External Circuit Onboard circuits Lc _ 354 Figure 2 6 Isolated Digital Input Circuit PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 16 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 ni Vin 120 V l Z10 mA Ri Vin I 120 V 0 01 A 12000 Q If the resistor Ri is replaced as 1 2 KQ the power consumption of Ri can be calculated as follows 2 2 P Rex 10 mA 1 2KQ 2 1 2W The power consumption is 1 2 Watts but selecting 1 5 or 2 Watts is better Thus a 1 2 K 2 W resistor can be selected to replace the resistor Ri PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 17 2 5 Daughter Boards 2 5 1 DB 37 Direct connection board e 37 pin D type connector pin to pin screw terminal for any 37 p
19. e eere epp Sekten d eee Rn 6 1 2 BEOCK DIAGRAM 5 tent pF daa 7 1 3 SPECIFICATIONS ad rrt eet eee teet es 8 1 3 1 PISO PSRSU PEX PGSRSGi eese sese enne trennen a enter enter enne 8 1 3 2 PISO PIGRIGU PEX PIGORIOL i i e ere gm be me AR ae eie pets 9 1 4 UNPACKING THE HARDWARE ni EHRE EE RERO REC ERT TH 10 1 5 ORDER INFORMATION ta 10 1 6 PGT DATA ACQUISITION EAMILY 5 5 rere o eti Ne ERU DEREN ZN ERO RET erus 11 1 7 PRODUCT CHECK LIT eter oer eed ed eoi te e ni teas 11 HARDWARE CONFIGURATION cussssnsonssssnssnenssnsnnennensnnennsnsnnennsnennenssnsnnennsnsnnennsnsnnsnnsnsnnsnnsnsnnennsnnne 12 2 1 BOARD LAYOUT iere oerte net date 12 2 2 JUMPER SETTINGS onset ere Pre E ES in sus is 14 2 2 1 AC Filter Tumpers ius undae mt iet SA a latins fees 14 2 3 RELAY QUIPUT A Sith owed ath dede EHE 15 2 4 ISOLATED INPUT 2 ile 16 2 9 DAUGHTER BOARDS 22 ERU REF DTH OTRE TET EAR TTT RTT Ha TTT HH 18 DILO DBT sua e e e dta neben 18 IL DI ES SR ERS NE nn RE Man REIN arn RE ine e aee ds 18 2 6 PIN SSIGNMENTS ee easily uns be nei dte ied 19 VO CONTROL REGISTERS us0ssossnsnsosensonsnssnsnnsnssnsnnsnssnsnnsnssnsnnsnnsnsnnsnsnsnnsnsnsnnsnnsnsnnsnnsnsnnsnnensansnn 20 3 1 DETERMINING THE I O ADDRESS sscessceceseceseeecssecesccecsseeceeecsscesececsseeseeecsseeseeecsseeensecseeeenaeees 20 3 2 I O ADDRESS ASSIGNMENT 9d ges eie petet a ERO RETO a EET paa id Rp ae tpe aep aes 21 3 3 VO ADDRESS MAPPING sache deret
20. er Manual Ver 1 6 Mar 2010 PMH 021 16 23 3 3 3 I O Data Register Digital Input Read wBase 0xC0 br lbs bs Soa lbs jr jn Read wBase 0xC4 pus ora foma fomz fomi omo De Ibis Digital Output Write wBase 0xC0 bor vos bos po4 pos poz jbot poo Write wBase 0xC4 Do15 bo14 pos bo12 bot boro bos Dos Note Refer to Sec 3 1 for more information regarding wBase outportb wBase 0xc0 0xff write Oxff to DOO DO7 DI_Value inportb wBase 0xc0 read states from DIO DI7 N PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 24 4 DOS SDK 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 there are different versions for TC BC and MSC Ensure that the correct version is used 4 1 PIO_PISO EXE Program T
21. for more information PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 20 3 2 I O 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 card 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 1 Remove all PIO and PISO series cards from the PC 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 3 Remove all PIO and PISO series cards from the PC 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 5 Repeat steps 3 and 4 for all PCI slots and record all wSlotBus and wSlotDevice information An example 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
22. he PIO_PISO exe 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 The model number of each card 2 The lO address and IRQ number of each card 3 The bus and slot numbers of each card PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 25 4 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 5 The specified board number is incorrect The board number must be between 0 and Total Boards 1 6 Refer to error code 3 4 3 Lib Functions All Lib functions and descriptions are listed in the following sections In this chapter keywords are used
23. ice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux Select the Card 0 to activate wRtn SelectBoard 0 while 1 printf printf nPlease select a function n 1 Select a board to activate n printf 2 Display the Card ID n printf 3 DI DO test n printf Q Exit the program n c getch switch c case 1 Select Board printf Please select a board 0 96d to active wTotalBoardsFound 1 c getch f c gt 0 amp amp c lt 9 SelectBoara c 0 else SelectBoard 100 C gt break case 2 li anii Get Card ID OAE p printf Card ID is d n int inpb wCardAddress 7 gt gt 2 amp OxOF break case 3 quy ESOS DI DO test mro e TestDIO wCardAddress break PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 31 case q case Q break default printf Invalid function item c n c break if c q c Q break PIO_DriverClose return 0 int SelectBoard WORD wBoardNo WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice WORD wirqNo if wBoardNo gt wTotalBoardsFound printf nInvalid board number n return ExceedBoardNumber Get Card Infomation I O Address PIO GetConfigAddressSpace wBoardNo amp wCardAddress amp wlrqNo amp wSubVendor amp wSubDe
24. in D type I O board connector LI LI LI LI LI LI LI L L L L L 2882 6229902982996 Figure 2 7 DB 37 2 5 2 DN 37 UO connector block with DIN Rail mounting e Two 37 pin D type connectors one for an extension e Pin to pin screw terminal for the I O connector amp DN 37 170 CONNECTOR CONI BLOCK Sc 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 PASOS van M S W XI Y I Y 00000000000000099390 3 14 15 16 17 18 19 A Figure 2 8 DN 37 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 18 Pin Assignments CON 1 NOG 1 COMO 2 NCO 3 NO 1 4 COM 1 5 NC 1 6 NO2 7 COM 2 8 NC 2 8 NO 7 10 COM 7 11 DIA 0 12 DIA 1 13 DIA 2 14 DIA 3 15 DIA 4 16 DIA 5 17 DIA 6 18 DIA 7 19 CON 2 NO 8 1 COM 8 2 20 NC8 3 21 NO9 4 22 COM 9 5 23 NCS 6 24 NO 10 7 25 COM 10 8 26 NC 10 9 27 NO 15 10 28 COM 15 11 29 DIA 8 12 30 DIA 9 13 31 DIA 10 14 32 DIA 11 15 33 DIA 12 16 34 DIA 13 17 35 DIA 14 18 36 DIA 15 19 37 Figure 2 9 Pin assignments NO 11 COM 11 NC 11 NO 12 COM 12 NO 13 COM 13 NO 14 COM 14 GND DIB 8 DIB 9 DIB 10 DIB 11 DIB 12 DIB 13 DIE 14 DIB 15 NO 8 COM 8 NC 8 NO 9 COM 9 NC 9 NO 10 COM 10 NC 10 NO 15 COM 15 DIA 8 DIA 9 DIA 10 DIA 11 DIA 12 DIA 13 DIA 14 DIA 15 COO 00000000000000000000 00000000000000000000 Extension Cable NO Normally Open COM Common NC N
25. o 10 ms in order to reject either noise or contact bouncing short the AC FILTER Pins 2 3 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 14 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 Circuitry 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 i Heavy Loading Figure 2 4 Heavy load relay circuit PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 15 2 4 Isolated Input 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 Switch DIA O a If the AC signal is Internal Circuit used pins 2 3 of JP1 must
26. oltage 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 ACIDCO 1V 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 A DC 24V 1A Operating Time 1 ms typical Release Time 7 ms typical Insulation Resistance 1000 MQ Mechanical 5000000 ops e Electrical 100000 ops General Bue fpe so VES d Universal PCI 32 PCI Express x1 bit 33 MHz Data Bus 16 bit Card ID Yes 4 bit O 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 P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 8 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 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 0 5 A DC 24 V 1 A Operating Time 1 ms
27. orm ally Closed DIA Digital Input Point A DIB Digital Input Point B A NO_11 COM_11 NC_11 NO_12 COM 12 NO 13 COM 13 NO 14 COM 14 DIB 8 DIB 9 DIB 10 DIB 11 DIB 12 DIB 13 DIB 14 DIB 15 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 19 3 NO Control Registers 3 1 Determining the l 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 e Vendor Device ID OxE159 0x0001 e Sub Vendor Device ID 0x1800 0x0000 e Sub Aux ID OxFF Dont care ICP DAS provides all necessary functions for identifying and accessing this card Please refer to Chapters 4 and 5 for more information regarding the SDK Software Development Kit The driver information is as follows 1 Resource allocated information e wBase BASE address mapping for this PC e wirg 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 e wSlotBus The position of hardware slot ID1 in this PC e wSlotDevice 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 4
28. r e Syntax WORD PISODIO GetConfigAddressSpace WORD wBoardNo DWORD wBase WORD wlrqNo WORD wSubVendor WORD wSubDevice WORD wSubAux WORD wSlotBus WORD wSlotDevice Parameters wBoardNo In The PISO DIO board number starting from 0 wBase Out The 32 bit base I O address of the card where the leading 16 bits are all 0 wirqNo Out The IRQ number that the PISO DIO board using wSubVendor Out The Sub Vendor ID wSubDevice Out The Sub Device ID wSubAux Out The Sub Aux ID wSlotBus Out The Bus number of the slot wSlotDevice Out The Device number of the slot e Return Refer to the error codes in Section 5 3 for more information PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 39 5 4 4 PISODIO_GetDriverVersion This function reads the version number of the PISO DIO kernel driver e Syntax WORD PISODIO_GetDriverVersion WORD wDriverVersion e Parameters wDriverVersion Out Version number e Return Refer to the error codes in Section 5 3 for more information 5 4 5 PISODIO GetDllVersion This function gets the version number of the PISO DIO DLL driver e Syntax WORD PISODIO GetDllVersion void e Parameters None e Return Version number i e 200 hex for version 2 00 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 40 5 4 6 PISODIO OutputByte This is function sends 8 bit data to the assigned I O po
29. rt e Syntax void PISODIO OutputByte DWORD wPortAddr WORD bOutputVal e Parameters wPortAddr In The 32 bit I O address where the leading 16 bits are all 0 Refer to the PISODIO_GetConfigAddressSpace function bOutputVal In The 16 bit data sent to the I O port where the leading 8 bits are all 0 e Return None 5 4 7 PISODIO InputByte This function reads 8 bit data from the assigned I O port e Syntax WORD PISODIO_InputByte DWORD wPortAddr Parameter wPortAddr In The 32 bit I O address where the leading 16 bits are all O Refer to the PISODIO_GetConfigAddressSpace function Return Returns 16 bit data where the leading 8 bits are all O PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 41 5 5 Demo Program ICP DAS provides VB VC Delphi and BCB demo programs with source code for user reference The screen capture below is the Delphi demo program that shows the DI DO and Card ID features of the PISO P16R16U card ff PISO P16R16U DI DO Demo Total Boards E BEE I I de wg Active Board n VE 98 E M 9 8 cadip po o Address E800 To run the program the Windows driver for the card must be installed first PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 42 6 Appendix 6 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
30. vice amp wSubAux amp wSlotBus amp wSlotDevice printf nCurrent selected board is Card d at address 0x 04X n wBoardNo wCardAddress if wCardAddress 0 return 100 Ee ew Enable all DI DO E outpb wCardAddress 1 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 32 return 0 int DIO1 WORD wCardAddress WORD wValue WORD wDI Lo Hi ee Digital Output with wValue SAAR Lo wValue amp OxFF Hi wValue gt gt 8 amp OxFF outpb wCardAddress 0xCO Lo low byte is at OxCO outpb wCardAddress 0xC4 Hi High byte is at OxC4 delay a while until DO is ready delay 100 Digital Input Lo inpb wCardAddress OxCO Low byte is at OxCO Hi inpb wCardAddress 0xC4 High byte is at OxC4 wDI Hi lt lt 8 Lo delay 300 Counts Compare the DO and DI values printf DO 0x 04X DI 0x 04X wValue wDI if wDI wValue printf FAILED 04X n wDI wValue Errors return 1 printf OK n return 0 PISO P8R8U P16R16U PEX P8R8i P16R16i User Manual Ver 1 6 Mar 2010 PMH 021 16 33 DWORD TestDIO WORD wCardAddress int i 0 iCounts iErrors 0 Iwhile kbhit while i 100 i DIO1 wCardAddress 0x0000 if kbhit break DIO1 wCardAddress OxFFFF if kbhit break DIO1 wCardAddress 0x0000 if kbhit break

Download Pdf Manuals

image

Related Search

Related Contents

Kompernass KH 528 User's Manual  TP-U0260ET 本体取扱説明書  DVR User Manual  CINDES, LIMPIADOR NEUTRO  取扱説明書・料理集  AEG B 2100 Oven User Manual  CONTADOR / MEDIDOR DE VELOCIDAD LUDLUM MODELO 2224-1  f sport - s3.amazonaws.com    Humeur-System  

Copyright © All rights reserved.
Failed to retrieve file