Home

PISO-P8R8U/P16R16U/P8R8E/P16R16E User Manual

image

Contents

1. p ID Rocco printf Card ID is d n int inpb wCardAddress 7 gt gt 2 amp OxOF break case 3 DI DO test TestDIO wCardAddress break case q case Q PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 30 default printf Invalid function item c n c break if c q 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 eei Get Card Infomation I O Address PIO_GetConfigAddressSpace wBoardNo amp wCardAddress amp wlrqNo amp wSubVendor amp wSubDevice 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 all DI DO BEER EERE Ge outpb wCardAddress 1 return 0 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 31 int DIO1 WORD wCardAddress WORD wValue WORD 0 Lo Hi Digital Output with wValue Lo wValue amp OxFF Hi wValue gt gt 8 amp OxFF outpb wCardAddress 0xCO Lo low by
2. eee ed 24 4 2 ERROR CODES x tan ee ar bi ata a tae ed 25 4 3 LIB FUNCTIONS 25 4 3 13 PIO Driverlnibsiz ao Mn RR 26 4 3 2 GetConfigAdaressSpace 27 44313 2 i A iced ee a dei itta ticae 28 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 2 434 SHOW PIO PISO ss n ii eno 28 4 4 SAMPLE PROGRAM FOR 29 LEA WINDOWS SDK eee Eee 34 5 1 PIO PISQ EXE PROGRAM 3 EE HEREIN RE 34 5 2 PROGRAM ARCHITEGTURE 1 5 2 5 5 3 1 rds 35 5 3 ERROR CODES 36 5 4 5 HT 36 54 sita eL tun 37 5 4 2 DriverGlose 37 5 4 8 PISODIO GetConfigAdaressSpace sisse eene nnne 38 5 4 4 PISODIO 39 54 5 PISODIO GelDllVersion s d ed eee Ree rr dete deer eevee es 39 5 4 6 OutpultByle 21i Lote e e n ed eo a e e tre 40 5 4 7 PISODIO InpUtBylte oi do Pee en Rd RE A UE d d 40 5 5 DEMO PROGRAM 3 f ort fetal ate antag esu fecal ate vee deett 41 6 APPENDIX csc te
3. Services Call to Kernel Mode Device Control Hardware Device PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 35 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 3V 5V jumper setting is correct D Download the latest driver from our web ftp site and try again Driver is not yet opened The PISODIO_Driverlnit function must be called before calling any other DLL functions The specified board was not found Please refer to the description for error code 1 The specified board number is incorrect The board number must be between 0 and Total Boards 1 5 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 program
4. 8 Relay Type 8 SPDT 8 SPST 4 SPDT 4 SPST AC 120V 0 5A Contact Rating DC 24V 1A 48V 0 15A Breakdown Voltage 1KV Output Release Time Typical 7 ms Insulation Resistance 1 000MQ Life Mechanical 5 x 10 Electrical 1 10 Initial Inout Resistance 1000 Switching Power 60VA 24W Response Time RE Temperature 0 60 C Storage Temperature Temperature 20 70 0 90 Dimensions 205mm x 105mm gt Table 1 3 Specifications PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 8 1 4 Unpacking the Hardware This 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 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 ship
5. 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 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 e wSlotBus The position of hardware slot 1 1 in this PC wSlotDevice The position of hardware slot ID2 in this PC The 5 utility program will detect and display the details for all PIO PISO cards installed in the PC Refer to Chapter 4 for more information PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 19 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 will be 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 u
6. 11111111111111111 6 8 6 2 CONI JP1 8 PCI Express Bus JP9 16 Figure 2 1 2 PISO P16R16E Board layout and components Item Description CON1 I O connector CON2 I O connector P16R16E only 1 8 Filter jumpers 4 16 Filter jumpers P16R16E only SW1 Card ID switch Table 2 1 2 Components and descriptions PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 12 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 2ms The table below lists each digital input channel and the corresponding jumper Amps Xumper channi Do Table 2 2 ppm assignments The figure below shows how to select the digital input type 1 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 20us set the filter to OFF If a slow response is required about 5 to 10ms in order to reject either noise or contact bouncing short the AC FILTER Pins 2 3 PI
7. 16R16E User Manual Ver 1 2 May 2008 PMH 021 11 5 1 1 Features and Applications 1 1 1 Features Items PISO P8R8U P8R8E PISO P16R16U P16R16E 3 3V 5V or 3 3V 5V Universal PCI Bus add on card for PISO P8R8U P16R16U Common PCI Express Bus add on for PISO P8R8E P16R16E Features Optically isolated digital input 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 amp PISO P8R8E P16R16E card 1 1 2 Applications e Factory automation e Laboratory automation Communication switching e Security control e Product testing e Energy management PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 6 1 2 Block Diagram PCI Express Slot PCI E to PCI Bridge PCI Controller Photo couple Photo a Photo Photo coupte PISO P16R16E Photo couple Figure 1 2 1 Function Block Diagram PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 7 1 3 Specifications PISO P16R16U PISO P8R8U P16R16E CEN P8R8E 5 Photo coupler 2 Input Current 20mA max 24V per channel 50 1KHz AC Withstanding Voltage 1KV Without Filter 2045 With Filter 2 2mS Relay Output 16
8. 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 P8R8E P16R16E card e One ICP DAS PCI CD e Release notes It is recommended that you read the release notes first All important information is provided in release notes as follows 1 The location of the DOS and Windows software drivers and utilities 2 Howto install the software and utilities 3 The location of the diagnostic program 4 FAQ A Attention 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 P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 10 2 Hardware Configuration 2 1 Board Layout dm 2 1 n O CONI 1 8 SW1 Card ID JP9 16 CON2 Figure 2 1 1 PISO P16R16U Board layout and components Item Description CON1 connector CON2 I O connector P16R16U only 1 8 Filter jumpers 4 16 Filter jumpers P16R16U only SW1 Card ID switch Table 2 1 1 Components and descriptions PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 11 x 117 2 111
9. ISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 20 3 3 I O 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 P8R8E P16R16E card is as follows Address Read wBaseso 1 WBase 7 CardID Bit 5 2 wBase 0xCO DIO DI7 000 007 0 4 018 0115 DO8 DO15 Note Refer to Sec 3 1 for more information regarding wBase 3 3 1 RESET Control Register Read Write wBase 0 i el 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 and D O operations The RESET signal must be set to the High state before any D I and D O commands are sent outportb wBase 1 RESET High gt all DI DO channels now enabled outportb wBase 0 RESET Low gt all DI DO channels now disabled PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 21 3 3 2 CARD ID Register Read wBase 7 Esc ipo ID1 Note Refer to Sec 3 1 for more information re
10. O connector block with DIN Rail mounting e Two 37 pin D type connectors one for an extension e screw terminal for the connector Figure 2 8 DN 37 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 021 11 17 Pin Assignments CON 1 2 Dog 1 NO 8 1 COM 8 2 20 NO 11 NC8 3 21 COM 11 NOG 4 22 NC 11 COM 9 5 23 NO 12 Nc od 6 24 COM 12 NO 10 7 25 NO 13 COM 10 8 26 COM 13 NC 10 9 27 NO 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 41 15 33 DIB 11 NO Normally Open DIA 12 16 34 DIB 12 COM Common DIA 13 17 35 13 DA 4 2 36 DIB 44 NC Normally Closed DIA 15 19 37 DIB 15 DIA Digital Input Point A Figure 2 9 Pin assignments PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 18 DIB Digital Input Point B 3 Control Registers 3 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 Vendor Device ID 0 159 0 0001 Sub Vendor Device ID 0 1800 0x0000 Sub Aux ID OxFF Don t care ICP DAS provides all necessary functions for identifying and accessing
11. 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 P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 38 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 P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 39 5 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 9 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 9 Return None 5 4 7 PISODIO InputByte This function reads 8 bit data from the assigned I O port Syntax WORD PISODIO InputByte DWORD wPortAddr 9 Parameter wPortAddr I
12. PISO P8R8U P16R16U P8R8E P16R16E 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 P8R8E P16R16E User Manual Ver 1 2 2008 021 11 1 Table of Contents 1 INTRODUCTION MEET RR 1 1 FEATURES AND Ld 3Beat resoc eet ee e pe e EN 1s1 2 Applications o hohe uim eins 1 2 DIAGRAM rot mei mE 1 3 SPEGIFIGATIONS uer et See ee ee ehe EL 1 4 UNPACKING THE HARDWARE 1 5 ORDER INFORMATION n
13. SO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 13 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 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 0 3A Power Supply Figure 2 3 Basic relay circuit Heavy Loading Application 0 P16R16U Power Relay DO Relay CV Contact oo Power Relay f Heavy Loading Figure 2 4 Heavy load relay circuit PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 021 11 14 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 0 GQ If the AC signal is Internal Circuit used pins 2 3 of JP1 be shorted Figure 2 5 Basic Digital Input Circuit Although the normal input voltage range
14. ary It must only be called once before calling any other Lib functions To determine the number of PISO P16R16U P16R16E cards whtn PIO Driverlnit amp wTotalBoardsFound 0x1800 0x00 OxFF To identify all PIO and PISO series cards Driverlnit amp wTotalBoardsFound OxFF OxFF OxFF Syntax WORD Driverlnit WORD wBoards DWORD wSubVendorlD WORD wSubDevicelD BYTE wSubAuxID 9 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 9 Return Refer to the error codes in Section 4 2 for more information PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 2008 PMH 021 11 26 4 3 2 GetConfigAddressSpace This function returns the base l 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 9 Parameters wBoardNo In The Board number starting from O wBase Out The base address of the board wirq 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 Th
15. bee ee Re ee 42 6 1 REPORTING 42 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 021 11 3 1 Introduction Model Number Isolated Digital Input Output Type PISO P8R8U P8R8E 8 Channels 8 Channels Relay Output PISO P16R16U P16R16E 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 3V 5V or 3 3V 5V PCI slot and support true Plug and Play operations 4 n 00 Figure 1 1 3 3V PCI X slots 5V PCI slots PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 4 The PISO P16R16E P8R8E 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 Li PCIE 2 Ca E zm PEEL Figure 1 2 PCI E X1 slots and PCI E X16 slots PISO P8R8U P16R16U P8R8E P
16. e Sub Aux ID of the board wSlotBus Out The Bus Number of the slot wSlotDevice Out The Device Number of the slot 9 Return Refer to the error codes in Section 4 2 for more information PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 27 4 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 DriverClose void 9 Parameters None 9 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 Syntax WORD Show PIO PISO DWORD wSubVendorlD WORD wSubDevice WORD wSubAux 9 Parameters 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 9 Return Refer to the error codes in Section 4 2 for more information PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 28 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 WORD i clrscr th
17. e 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 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 and PISO series cards but there are different versions for TC BC and MSC Ensure that the correct version is used 4 1 PISO EXE Program The 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 PISO EXE Rev 2 32 Dec 23 2005 There are 2 PISO Cards s in this PC RetVal 0 0 wBase e800 wlrq 5 subID c080 1 40 SlotID 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 1 address and IRQ number of each card 3 The bus and slot numbers of
18. each card PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 24 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 3V 5V 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 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 P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 25 4 3 1 This function detects all and PISO series cards that are installed in the system and saves the related resource information in the libr
19. garding 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 intporto wBase 7 gt gt 2 get Card ID PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 22 3 3 3 Data Register Digital Input Read wBase 0xCO 27 X pie 05 Read wBase 0xC4 pis ona ona Digital Output Write wBase 0xCO bos 002 Write wBase 0xC4 DO15 14 DO13 12 Note Refer to Sec 3 1 for more information regarding wBase outportb wBase 0xc0 Oxff write Oxff to DOO DO7 DI Valuezinportb wBase 0xc0 read states from DIO DI7 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 23 4 DOSSDK Pleas
20. is 5 to 24V AC or DC the input can stil 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 2mA to 20 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 Rj 1 2K Q AW External Circuit Onboard circuits pce 354 Figure 2 6 Isolated Digital Input Circuit PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 15 It 2mA 20mA As a rough estimate If Vin 120V and the photo coupler turn on voltage is ignored the result is Vin l Ri Vin 120 V 10 mA Ri Vin 120 V 0 01 A 12000 0 If the resistor Ri is replaced as 1 2 the power consumption of Ri can be calculated as follows P I Rex 10mA 7 1 2KQ 1 2W 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 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 16 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 pin D type board connector Figure 2 7 DB 37 2 5 2 DN 37 I
21. n The 32 bit I O address where the leading 16 bits are all 0 Refer to the PISODIO_GetConfigAddressSpace function 9 Return Returns 16 bit data where the leading 8 bits are all 0 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 40 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 PISO P16R16U DI DO Demo Total Boards Juni Active Board NC Address E800 To run the program the Windows driver for the card must be installed first PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 41 6 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 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 te
22. n Initialize Driver for PISO P16R16U eeeeeeeeeeeen wRin PIO Driverlnit 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 d PISO P16R16U Card s in this PC wTotalBoardsFound Get Card Information I O Address printf n n The Configuration Space for i 0 iewTotalBoardsFound 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 i wCardAddress wlrqNo wSubVendor wSubDevice wSubAux PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 2008 PMH 021 11 29 wSlotBus wSlotDevice printf ShowPioPiso wSubVendor wSubDevice wSubAux Select the to activate wRin SelectBoard 0 while 1 printf nPlease select a function n printf 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 three printf Please select a board 0 95 to active wTotalBoardsFound 1 C getch if c gt 0 amp amp lt 9 c 0 else SelectBoard 100
23. ping 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 P8R8E 8 channel isolated digital input 8 channel relay output board e PISO P16R16U P16R16E 16 channel isolated digital input 16 channel relay output board Options e DN 37 I O connector block with DIN Rail mounting 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 P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 9 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 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 TMC124A 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 P16R16E D I O family PISO
24. s PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 36 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 Syntax WORD PISODIO PDriverlnit 9 Parameters None 9 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 Syntax void PISODIO DriverClose 9 Parameters None 9 Return None PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 2008 PMH 021 11 37 5 4 3 PISODIO GetConfigAddressSpace This function retrieves the I O address and information related to the PISO DIO card from the driver e Syntax WORD PISODIO GetConfigAddressSpace WORD wBoardNo DWORD wBase WORD wlrqNo WORD wSubVendor WORD wSubDevice WORD wSubAux WORD wSlotBus WORD wSlotDevice Parameters wBoardNo 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 wlrqNo Out The IRQ number that the PISO DIO board using wSubVendor Out The Sub Vendor ID wSubDevice Out The Sub Device ID wSubAux
25. s 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 15 2006 diagnostic Ple 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 slot The following information is also displayed 1 The model number of all cards found su 0 00 222122 0 2 The I O address IRQ be JoxoF IRO 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 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 34 5 2 Program Architecture PISODIO Driverlnit Enable DI DO PISODIO InputB yte PISODIO_OutputByte PISODIO_DriverClose Function Call to DLLs Development Toolkit
26. se 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 P8R8E P16R16E 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 P8R8E P16R16E into PCI slot2 of the PC then run 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 0 0 0 Slot 5 1 0 0 5101 6 1 0 08 5101 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 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 P
27. te is at OXCO outpb wCardAddress High byte is at 0 4 delay a while until DO is ready delay 100 Digital Input Lo inpb wCardAddress Low byte is at Hi inpb wCardAddress 0 4 High byte is at OxC4 Hi lt lt 8 Lo delay 300 iCounts Compare the DO and DI values printf DO 0x 04X DI20x9604X wValue wDI if wDI wValue printf FAILED 04X n wDI wValue iErrors return 1 printf OK n return 0 PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 2008 PMH 021 11 32 DWORD TestDIO WORD wCardAddress int i 0 iCounts iErrors 0 Awhile kbhit while i lt 100 DIO1 wCardAddress 0x0000 if kbhit break DIO1 wCardAddress OxFFFF if kbhit break DIO1 wCardAddress 0x0000 if kbhit break DIO1 wCardAddress if kbhit break DIO1 wCardAddress 0x0000 if kbhit break DIO1 wCardAddress 0x5555 if kbhit break 3 printf TotalCounts ld ErrorCounts ld n n iCounts iErrors DIO1 wCardAddress 0x0000 printf TotalCounts ld ErrorCounts eldW iCounts iErrors return iErrors PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 May 2008 PMH 021 11 33 5 Windows SDK Please read the release notes first to determine the location of the Window
28. tree tots tate er ette tp ee eere 1 6 PCOLDATA ACQUISITION Rhe tede RESTER Rag Rede 10 1 7 PRODUCT 615 4655 A 10 2 HARDWARE 4 4 11 2 1 BOARD LAV OU Dizi Gies unitur i a term ai de att quU EIN 11 2 2 JUMPER SETTINGS ra m 13 2 21 AG FIRM JUmpers ou dr dada fl i ei ded t ese ee read e 13 2 3 iE deu 14 2 4 SOEATED INPUT ste itte olet datam th Ea de 15 2 5 DAUGHTER BOARBDS scott E e oe 17 tuu teda edid 17 PAIA E 17 2 6 PIN ASSIGNMENTS 18 3 5 19 3 1 DETERMINING THE I O 5 19 3 2 ADDRESS ASSIGNMENT 2 rania diaked Tanaan 20 3 3 O ADDRESS MAPPING 21 3 3 1 RESET Control Register rn 21 3 3 2 CARD ID Register eec edu D eue nau ao EAR o 22 3 33 VO Data iae P Po pe elis 23 4 DOS SDK Cep pm 24 4 1 PIOQ PISO EXE PROGRAM
29. xt 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 E mail Service icpdas com Web Site http www icpdas com PISO P8R8U P16R16U P8R8E P16R16E User Manual Ver 1 2 2008 PMH 021 11 42

Download Pdf Manuals

image

Related Search

Related Contents

Télécommande d`Ouvre Porte de Garage  LD6 Manual de Operação VERIPOS  Philips Scala M110UJ  FE-501DM User`s Guide  Guida operativa  Fail-safe device for electronic control circuit  a design pattern generation tool - Worcester Polytechnic Institute  MotionX-Alarm Clock User Manual    

Copyright © All rights reserved.
Failed to retrieve file