Home
Omega Engineering OME-PIO-D96 Computer Hardware User Manual
Contents
1. down generate high pulse if int amp 0 4 1 0 new int state amp 0x04 0 now P8CO change to high ENY 32 8 change to low ee eet ee generate a high pulse xJ if int_c amp 0x8 0 2 new int state amp 0x08 0 now 11 0 change to high ae now 11 0 change to low RTT E generate high pulse now int state new int state outportb wBase 0x2a invert if wIrq 8 outportb A2 8259 0x20 outportb Al 8259 0x20 OME PIO D96 User Manual Ver 1 1 2003 47 WARRANTY DISCLAIMER OMEGA ENGINEERING INC warrants this unit to be free of defects in materials and workmanship for a period of 13 months from date of purchase OMEGA s WARRANTY adds additional 1 month grace period to the normal one 1 year product warranty to cover handling and shipping time This ensures that OMEGA s customers receive maximum coverage on each product If the unit malfunctions it must be returned to the factory for evaluation OMEGA s Customer Service Department will issue an Authorized Return AR number immediately upon phone or written request Upon examination by OMEGA if the unit is found to be defective it will be repaired or replaced at no charge OMEGA s WARRANTY does not apply to defects resulting from any action of the purchaser including but not limited to mishandling improper interfacing operation outs
2. 1 9 ORDERADESCRIPTION A 1 4 PCI DATA ACQUISITION FAMILY 1 5 PRODUCT CHECKLIST ee itte iere ertet v erede HARDWARE CONFIGURATION 2 1 BOARD LAYOUT 2 2 VO PORT LOCATION et rp heben 2 3 ENABEE OPERATION ated aed aeons 2 4 D I O ARCHITECTURE 2 5 INTERRUPT 2 1000000000101610000000000000000000405 2 6 DAUGHTER 5 2 1 PIN ASSIGNMENT rb HE e Bass CONTROL REGISTER 3 1 How TO FIND THE 3 2 THE ASSIGNMENT OF 3 3 THE I O ADDRESS nennen enne enne DEMO PROGRAM 4 1 seit rh erre eo memet 4 2 DEMOD reir ERES RENS 4 3 DEMQO27 ea ecd 44 ende ette 4 5 DEMOQM eterne RED HERE 46 DEMOS a e tne eoe tete rn OME PIO D96 User Manual Ver 1 1 Mar 2003 3 5 1 Introduction OME PIO D96 provides 96 TTL digital I O lines The OME PIO D96 consists of four 24 bit bi directional ports Each 24 bit port supports three 8 bit groups PA PB amp PC Each 8 bit group can be configured to function as either inputs or latched outputs All groups are configured as inputs upon power up
3. INT CHAN 0 1 2 3 must be fixed in low level state normally generated a high pulse to interrupt the PC The ENO EN1 EN2 EN3 can be used to enable disable the INT CHAN 0 1 2 3 as follows Refer to Sec 3 3 4 ENO 1 2 3 0 gt INT CHAN 0 1 2 3 disable ENO 1 2 3 1 INT CHAN 0 1 2 3 enable The can be used to invert non invert the PCO 1 2 3 as follows Refer to Sec 3 3 6 INVO 1 2 3 0 INT CHAN 0 1 2 3 inverted state of P2CO 5 0 8 0 11 0 INVO 1 2 3 1 gt INT CHAN 0 1 2 3 non inverted state of P2CO 5 0 8 0 11 0 OME PIO D96 User Manual Ver 1 1 2003 11 2 5 3 Initial_high active low Interrupt source If the 2 0 is an initial high active low signal the interrupt service routine should use INVO to invert or not to invert the P2CO for high pulse generation as follows Refer to DEMO4 C Initial set now int state 1 initial state for P2CO outportb wBase 0x2a 0 select the inverted P2CO void interrupt service if now int state 1 now 2 is changed to LOW a M INT CHAN 0 P2CO HIGH now COUNT 14 4 find LOW_pulse 2 If inport 7 amp 1 0 the P2CO is still fixed in LOW need to generate high pulse outportb 0 2 1 INVO select the non inverted input b INT CHAN 0 P2CO LOW gt Ag INT CHAN 0 ge
4. include PIO H define 1 8259 0x20 define 2 8259 0 0 define EOI 0x20 WORD init low WORD wBase wIrq static void interrupt irq service int COUNT L COUNT H irqmask now int state int main int 2 73 WORD wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c clrscr stepl find address mapping of PIO PISO cards 0 select 0 step2 enable all D I O port outportb wBase 1 gt 1 step3 configure I O direction outportb 0 0x00 set 1 D I ports init low printf n n show the count of High pulse n for gotoxy 1 8 printf NnCOUNT H d COUNT if kbhit 0 break outportb wBaset5 0 disable all interrupt PIO DriverClose Use 2 0 as external interrupt signal WORD init_low disable outportb wBaset5 0 disable all interrupt if wIrq 8 irqmask inportb Al 8259 41 outportb Al 825941 irqmask amp Oxff 1 lt lt setvect wIrqt 8 irq service else OME PIO D96 User Manual Ver 1 1 Mar 2003 41 irqmask inportb Al 8259 1 outportb Al 8259 1 irqmask amp Oxfb IRQ2 irqmask inportb A2 825941 outportb A2 825941 irqmask amp Oxff 1 wIrq 8 setvect wIrq 840x70 irq service outportb 5 1
5. 0 4 0 8 ase 0xd0 ase 0xe0 0 4 aset 0xe8 ase 0xf0 ase 0xf8 Note Refer to Sec 3 1 for more information about wBase OME PIO D96 User Manual Ver 1 1 Mar 2003 30 3 3 1 Control Register Read Write wBase 0 Note Refer to Sec 3 1 for more information about wBase When the PC is first power on the RESET signal is in Low state This will disable all operations The user has to set the RESET signal to High state before any D I O command outportb wBase 1 RESET High all D I O are enable now outportb wBase 0 RESET Low gt all D I O are disable now 3 3 2 AUX Control Register Read Write wBase 2 Note Refer to Sec 3 1 for more information about wBase Aux 02 this Aux is used as Aux 1 gt this Aux is used as a D O When the PC is first power up All Aux signal are in Low state All Aux are designed as D I for all PIO PISO series Please set all Aux in D I state 3 3 3 AUX data Register Read Write wBase 3 Note Refer to Sec 3 1 for more information about wBase When the Aux is used as D O the output state is controlled by this register This register is designed for feature extension so don t control this register now OME PIO D96 User Manual Ver 1 1 Mar 2003 31 3 3 4 INT Mask Control Register Read Write wBase 5 o b b b Note Refer to Sec 3 1 for mor
6. are active at the the same time same time Refer to DEMOS C for the source All these four falling edges amp rising edges can be detected by DEMOS C Note When the interrupt is active the user program has to identify the active signals Multiple signals maybe active simultaneously So the interrupt service routine has to service all active signals at the same time OME PIO D96 User Manual Ver 1 1 Mar 2003 14 void interrupt irq service new int state inportb wBaset7 amp 0x0f read all interrupt state int c new int state now int state compare which interrupt signal be change if int amp 0 1 0 INT CHAN 0 is active if new int state amp 0x01 0 now 2 0 change to high CNT_H1 else now 2 0 change to low ay 11 invert invert l to generate a high pulse XJ if int_c amp 0x2 0 if new int state amp 0x02 0 now P5CO change to high ay 5 d now P5CO change to low aie teas to generate a high pulse E if int_c amp 0x4 1 0 new int state amp 0x04 0 now 8 change to high mE now 8 change to low to generate high pulse if int_c amp 0x8 0 if new int state amp 0x08 0 now 11 0 change to high rete 4525 now 11 0 change to low to generate high pulse
7. now int state new int state outportb wBase 0x2a invert if wIrq gt 8 outportb A2 8259 0x20 outportb Al 8259 0x20 OME PIO D96 User Manual Ver 1 1 2003 15 2 6 Daughter Boards 2 6 1 OME DB 37 The 37 is a general purpose daughter board for D sub 37 pins It is designed for easy wire connection I dededoaesdesed B 2 6 2 OME DN 37 amp OME DN 50 The OME DN 37 is a general purpose daughter board for D sub 37 pin connector The OME DN 50 is designed for 50 pin flat cable header They are designed for easy wiring Both are DIN rail mountable OME DN 37 2 6 3 OME DB 8125 The OME DB 8125 is a general purpose screw terminal board It is designed for easy wiring There is one D sub 37 pin connector amp two 20 pin flat cable headers in the OME DB 8125 OME DB 8125 a D sub 37 pin or risa 20 pin flat cable header OME PIO D96 User Manual Ver 1 1 2003 16 2 6 4 OME ADP 37 PCI amp OME ADP 50 PCI OME ADP 37 PCI amp OME ADP 50 PCI are extenders for 50 pin headers One side of OME ADP 37 PCI amp OME ADP 50 PCI can be connected to a 50 pin header The other side can be mounted on the PC chassis as follows OME ADP 37 PCI 50 pin header to D sub 37 extender OME ADP 50 PCI 50 pin header to 50 pin header extender NOTE The user has to choose the suitable exte
8. enable interrupt 2 now int state 0 now ini signal is low outportb 0 2 1 select the non invert enable void interrupt irq service if now int state 1 now 2 change to low INT CHAN 0 2 0 T COUNT 1 find a low pulse 2 if inportb 7 amp 1 0 2 still fixed in low need to generate high pulse outportb 0 2 1 INVO select noninverted input now int state 0 now P2C0 low else now int state 1 now P2CO High else now 2 0 change to high 0 2 COUNT H t find a high pulse 2 if 7 amp 1 1 2 still fixed in high need to generate high pulse outportb wBaset 0x2a 0 INVO select inverted input now int state 1 now P2CO high Au else now int state 0 now P2C0 low KU if wIrq 8 outportb A2 8259 0x20 outportb Al 8259 0x20 OME PIO D96 User Manual Ver 1 1 2003 42 4 5 DEMO4 demo 4 Count high pulse of 2 0 m initial High amp active Low step 1 run DEMO4 EXE include PIO H define Al 8259 0x20 define 2 8259 0xA0 define EOI 0x20 WORD init high WORD wBase wIrq static void interrupt irq service int COUNT L COUNT H irqmask no
9. Refer to DEMOS C for more information OME PIO D96 User Manual Ver 1 1 Mar 2003 33 3 3 7 Selection Control Register Write 0 o b 0 0 fort foo Write o b 0 Ports fon Write wBase 0xec o b b 0 Pors Write wBase Oxfc b jp o Porio Note Refer to Sec 3 1 for more information about wBase Before using these D I O ports user has to configure the state of ports as desired port 1 this port is used as a D O port port 0 this port is used as a port outportb wBase 0xcc 0x03 set portO as D O ports set port as D O ports set port2 as D I ports outportb wBase 0xdc 0x07 set port3 port5 as D O ports outportb wBase 0xec 0x00 set port6 port8 as ports OME PIO D96 User Manual Ver 1 1 Mar 2003 34 3 3 8 Read Write 8 bit data Register Read Write wBase 0xc0 0xc4 0xc8 0xd0 0xd4 0xd8 Oxe0 0xe4 0xe8 0xf0 0xf4 0xf8 14 p Note Refer to Sec 3 1 for more information about wBase There are twelve 8 bit I O port in the OME PIO D96 Every I O port can be programmed as D I or D O port Refer to Sec 3 3 8 for D I or D O selection When the PC is power up all twelve ports are used as port outportb wBase 0xc0 Val write to PortO Val inportb wBase 0xc0 read from PortO outp
10. wSlotDevice char c clrscr stepl find address mapping of PIO PISO cards wRetVal PIO DriverInit amp wBoards 0x80 0x01 0x10 OME PIO D96 printf n 1 Threr 54 OME PIO D96 Cards this PC wBoards if wBoards 0 exit 0 printf n n The Configuration Spac ys for i 0 i lt wBoards i PIO GetConfigAddressSpace i amp wBase amp wIrq amp wSubVendor amp wSubDevice printf NnCard d wBase x wIrq x subID x x x SlotID x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice pruatt gt ShowPioPiso wSubVendor wSubDevice wSubAux PIO GetConfigAddressSpace 0 amp wBase amp amp t1 amp t2 amp t3 amp t4 amp t5 select 0 step2 enable all D I O port outportb wBase 1 RESET gt 1 step3 configure I O direction outportb 0 0x07 set 1 as D O ports for 11 1 amp 0 12 1 gt gt 8 amp 0 13 1 gt gt 16 amp 0 outportb 0 0 11 outportb 0 4 12 outportb 0 8 13 delay 10000 1 1 lt lt 1 i i amp OxOffffff if i220 i 1 if kbhit 0 return DriverClose OME PIO D96 User Manual Ver 1 1 2003 39 4 3 2 demo 2 DI O demo of CN2 step 1 conn
11. 0x10 Sub aux ID 0x10 We provide all necessary functions as follows 1 PIO_DriverInit amp wBoard wSubVendor wSubDevice wSubAux 2 GetConfigAddressSpace wBoardNo wBase wlIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice 3 Show PIO PISO wSubVendor wSubDevice wSubAux functions are defined in PIO H Refer to Chapter 4 for more information The important driver information is given as follows 1 Resource allocated information wBase BASE address mapping in this PC wlrq IRQ channel number allocated in this PC 2 OME PIO PISO identification information wSubVendor subVendor ID of this board wsubDevice subDevice ID of this board wSubAux subAux ID of this board PC s physical slot information G2 wslotBus hardware slot ID1 in this PC s slot position wSlotDevice hardware slot ID2 in this PC s slot position The utility program PIO PIS O EXE will detect amp show all OME PIO PISO cards installed in this PC Refer to Sec 4 1 for more information OME PIO D96 User Manual Ver 1 1 Mar 2003 24 3 1 1 Driverlnit DriverInit amp wBoards wSubVendor wSubDevice wSubAux wBoards 0 to number of boards found in this PC wSubVendor subVendor ID of board to find wSubDevice gt subDevice ID of board to find wSubAux gt subAux ID of board to find This function can detect all OME PIO PISO series card in the system It is implemented based on the PC
12. E INT_CHAN_3 initial low active high The interrupt output signal of OME PIO D96 INT is Level trigger amp Active Low If the INT generate a low pulse the OME PIO D96 will interrupt the PC only once If the INT is fixed in low level the OME PIO D96 will interrupt the PC continuously So that INT CHAN 0 1 2 3 must be controlled in a pulse type signals They must be fixed in low level state normally and generated a high pulse to interrupt the PC The priority of INT CHAN 0 1 2 3 15 the same If all these four signals are active at the same time then INT will be active only once a time So the interrupt service routine has to read the status of all interrupt channels for multi channel interrupt Refer to Sec 2 5 for mare information DEMOS C for multi channel interrupt source If only one interrupt source is used the interrupt service routine doesn t have to read the status of interrupt source The demo programs DEMO3 C amp DEMO4 C are designed for single channel interrupt demo as follows DEMO3 C gt for INT_CHAN_0 only 2 initial low DEMOA C for INT_CHAN_0 only 2 initial high OME PIO D96 User Manual Ver 1 1 Mar 2003 10 2 5 2 0 1 2 3 0 1 2 3 2 5 11 0 J Inverted Noninverted select 0 1 2 3 Enable Disable select 0 1 2 3
13. d wBase x wlrg x SubID x 3x 3x Slot ID x x i wBase wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf T gt y ShowPioPiso wSubVendor wSubDevice wSubAux DriverClose NOTE the PIO_PISO EXE is valid for all PIO PISO cards The user can execute the PIO PISO EXE to get the following information e List all PIO PISO cards installed in this PC e List all resources allocated to every PIO PISO cards List the wSlotBus amp wSlotDevice for specified PIO PISO card identification Refer to Sec 3 2 for more information OME PIO D96 User Manual Ver 1 1 Mar 2003 37 41 41 PISO EXE for Windows User can find this utility in the software CD or floppy disk It is useful for all OME PIO PISO series cards After executing the utility detailed information for all OME PIO PISO cards that are installed in the PC will be shown as follows f 5 series card 0 0001 OxD800 Board Name OME PIO D96 User Manual Ver 1 1 Mar 2003 38 4 2 DEMO demo 1 D O demo of 1 step 1 connect a OME DB 24C to CN1 of OME PIO D96 step 2 run DEMO1 EXE step 3 check the LEDs of OME DB 24C will turn on sequentially include PIO H WORD wBase wIrq main int al 273 long i 1 WORD wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus
14. under which the product 1 Purchase Order number to cover the COST was PURCHASED of the repair 2 Model and serial number of the product under 2 Model and serial number of the product and warranty and 3 Repair instructions and or specific problems 3 Repair instructions and or specific problems relative to the product relative to the product OMEGA s policy is to make running changes not model changes whenever an improvement is possible This affords our customers the latest in technology and engineering OMEGA is a registered trademark of OMEGA ENGINEERING INC Copyright 2002 OMEGA ENGINEERING INC rights reserved This document may not be copied photocopied reproduced translated or reduced to any electronic medium or machine readable form in whole or in part without the prior written consent of OMEGA ENGINEERING INC Where Do Find Everything Need for Process Measurement and Control OMEGA Of Course Shop online at www omega com TEMPERATURE Thermocouple amp Thermistor Probes Connectors Panels amp Assemblies Wire Thermocouple RTD amp Thermistor Calibrators amp Ice Point References A Recorders Controllers amp Process Monitors A Infrared Pyrometers PRESSURE STRAIN AND FORCE Transducers amp Strain Gages Load Cells amp Pressure Gages 4 Displacement Transducers A Instrumentation amp Accessories FLOW LEVEL 4 Rotameters Gas Mass Flowmeter
15. wSubAux OME PIO D96 User Manual Ver 1 1 Mar 2003 25 Sub IDs of OME PIO PISO series card are given as follows Rev3 0 16 x isolated 16 isolated D O Current sourcing OME PIO PISO series Description Sub vendo Sub device Sub AUX card Old New Old New OME PIO D144 Rev4 0 144 x D I O 80 5C80 01 00 OME PIO D96 Rev4 0 96 x D I O 80 5880 01 10 OME PIO D64 Rev2 0 64 x 80 4080 01 20 OME PIO D56 Rev6 0 24 x D I O 80 080 01 40 16 x 16 D O OME PIO D48 Rev2 0 48 x D I O 80 0080 01 30 OME PIO D24 Rev6 0 24 x D I O 80 080 01 40 821 Multi function 80 03 10 OME PIO DA16 Rev4 0 16 x D A 80 4180 04 00 00 OME PIO DA8 Rev4 0 8 D A 80 4180 04 00 00 OME PIO DA4 Rev4 0 4 D A 80 4180 04 00 00 OME PISO C64 Rev4 0 64 x isolated D O 80 0280 08 00 00 Current sinking OME PISO A64 Rev3 0 64 x isolated D O 80 8280 08 00 50 Current sourcing OME PISO P64 4 0 64 x isolated 80 0280 08 00 10 OME PISO P32C32 32 isolated D O 80 0280 08 00 20 Rev5 0 Current sinking 32 isolated OME PISO P32A32 32 isolated D O 80 8280 08 00 70 Rev3 0 Current sourcing 32 isolated 0 1 OME PISO P8R8 8 x isolated 80 4200 08 00 30 Rev2 0 8 x 220V relay OME PISO P8SSR8AC 8 x isolated 80 4200 08 00 30 Rev2 0 8 x SSR AC OME PISO P8S
16. 2CO is still fixed in LOW need to generate high pulse outportb 0 2 1 INVO select the non inverted input d INT CHAN 0 P2CO LOW gt Ag INT CHAN 0 generate a high pulse now int state 0 now P2CO LOW else now int state 1 now P2CO HIGH Nu don t have to generate high pulse else now 2 is changed to HIGH a INT CHAN 0 P2CO HIGH now COUNT find a High pulse 2 If inport wBaset 7 amp 1 1 the 2 is still fixed in HIGH need to generate a high pulse outportb 0 2 0 INVO select the inverted input b INT CHAN 0 P2CO LOW gt i INT CHAN 0 generate a high pulse now int state 1 now P2CO HIGH else now int state 0 now P2CO LOW ty don t have to generate high pulse if wIrq 8 outportb A2 8259 0x20 outportb A1 8259 0x20 INT OME PIO D96 User Manual Ver 1 1 2003 13 2 5 5 Muliti Interrupt Source Assume P2CO is initial Low active High 5 0 is initial High active Low P8CO is initial Low active High P11CO is initial High active Low as follows P2CO P8CO 11 0 2 amp P5CO are 2 amp P5CO are active at the same return to normal time at the same time 8 amp P11CO are return to normal at 8 amp 11
17. 3 7 RESET Sec 3 3 1 disable input Latch Sec 3 3 8 Clock input D O latch CKT disable Buffer input 5 3 3 8 P Clock input D I buffer CKT e The RESET is in Low state gt all D I O are disabled The RESET is in High state gt all D I O are enabled e f D I O is configured as port gt D I external input signal e If D I O is configured as D O port gt read back D O e If D I O is configured as port gt send to D O will change the D O latch register only The D I amp external input signal will not change OME PIO D96 User Manual Ver 1 1 Mar 2003 2 5 Interrupt Operation P2C0 5 0 P8CO and P11CO can be used as interrupt signal sources Refer to Sec 2 1 amp Sec 2 7 for P2CO P5CO P8CO P11CO location The interrupt of OME PIO D96 is level trigger amp Active High The interrupt signal can be inverted or non inverted programmable The procedures of programming are given as follows 1 make sure the initial level is High or Low 2 if the initial state is High gt select the inverted signal Sec 3 3 6 3 ifthe initial state is Low select the non inverted signal Sec 3 3 6 4 enable the INT function Sec 3 3 4 5 Ifthe interrupt signal is active program will transfer into the interrupt service routine if INT signal is High now select the inverted input gt if INT signal is Low now gt select the non inverted input Refer to DEMO3 C a
18. 4 in H1 CNT H2 CNT H3 CNT H4 int main ine E WORD wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c clrscr stepl find address mapping of PIO PISO cards select 0 step2 enable all D I O port outportb wBase 1 gt 1 step3 configure I O direction outportb 0 0x00 set 1 as D I ports outportb 0 0x00 set CN2 as D I ports outportb 0 0x00 set CN3 as D I ports outportb 0 0x00 set CN4 D I ports init printf Onto show the count of pulse n for gotoxy 1 7 n CNT_L CNT_H d d d d d d L1 CNT Hl CNT L2 CNT H2 CNT L3 CNT H3 CNT L4 CNT H4 int num if kbhit 0 break outportb wBaset5 0 disable all interrupt PIO DriverClose Use 2 P5CO 8 0 amp 11 as external interrupt signal WORD init OME PIO D96 User Manual Ver 1 1 2003 45 disable outporthb 5 0 if wIrq 8 irqmask inportb Al 8259 41 outportb Al 825941 irqmask amp Oxff 1 lt lt setvect wIrqt 8 irq service 1 irqmask inportb A1 8259 1 ou irqmask inportb 2 8259 1 ou tportb A2 825
19. 9 1 irqmask amp Oxff 1 wIrq 8 tvect wIrq 8 0x70 irq service disable all interrupt tportb Al 8259 1 irqmask amp Oxfb IRQ2 0 05 outportb wBase 0x2a invert P2CO non inverte input P5CO inverte input P8CO non inverte input P11C0 inverte input now int state 0x0a P2CO Low P5CO High P8CO Low 11 High CNT L1 CNT L2 CNT L3 CNT L4 0 Low pulse counter HI CNT H2 CNT H3 CNT 4 0 High pulse counter K int_num 0 outportb wBase 5 0x0f enable interrupt 2 enable P5CO P8CO 11 0 NOTE 1 The hold time of 0 1 2 3 must long enough A 2 The ISR must read the interrupt status again to the 13 active interrupt sources 2 3 The INT CHAN O amp INT CHAN 1 can be active at the same time 2 xy void interrupt irq service int new int state inportb wBaset7 amp 0x0f int c new int state now int state if int amp 0 1 0 if new int state amp 0x01 0 now P2CO change to high Xu CNT_H1 else now 2 0 change to low y CNT_L1 invert invert 1l generate a high pulse XJ if int_c amp 0x2 1 0 if new int state amp 0x02 0 now P5C0 change to high CNT_H2 OME PIO D96 User Manual Ver 1 1 Mar 2003 46 else now P5CO change to low
20. D I O family OME PISO 730 730A D I O card OME PISO DA2 D A card 1 5 Product Check List In addition to this manual the package includes the following items one piece of OME PIO D96 card e one piece of software floppy diskette or CD e one piece of release note It is recommended to read the release note first All important information will be given in release note as follows 1 Where you can find the software driver amp utility 2 How to install software amp utility 3 Where is the diagnostic program 4 FAQ Attention If any of these items is missing or damaged contact Omega Engineering immediately Save the shipping materials and the box in case you want to ship or store the product in the future OME PIO D96 User Manual Ver 1 1 Mar 2003 5 Hardware configuration Board Layout 2 2 1 CN2 OO OO OO OO portO ae port3 xs port6 port 9 2 port1 oo port4 port10 oo port2 oo port5 oo port8 port11 oo OO OO OO OME PIO D96 BUS 6 OME PIO D96 User Manual Ver 1 1 Mar 2003 2 2 port Location There are twelve 8 bit I O ports in the OME PIO D96 Every I O port can be programmed as D I or D O port When the PC is first powered up all twelve ports are used a
21. E DIO 144 OME PCI D144 OME PIO D144 OME PIO D96 OME PIO D56 OME PIO D48 OME PIO D24 20 Pin connector for 16 channel digital output OME A 82X OME A 62X OME DIO 64 OME ISO DA16 DA8 Channel 16 Form A Relay 8 Form C Relay OME PIO D96 User Manual Ver 1 1 Mar 2003 20 2 6 8 Daughter Boards Comparison Table 20 pin flat cable 50 pin flat cable D sub 37 pin OME DB 37 No No Yes OME DN 37 No No Yes OME ADP 37 PCI No Yes Yes OME ADP 50 PCI No Yes No OME DB 24P No Yes No OME DB 24PD No Yes Yes OME DB 16P8R No Yes Yes OME DB 24R No Yes No OME DB 24RD No Yes Yes OME DB 24C Yes Yes Yes OME DB 24PR Yes Yes No OME DB 24PRD No Yes Yes OME DB 24POR Yes Yes Yes OME DB 24SSR No Yes Yes Note There is no 20 pin flat cable header in OME PIO D96 The OME PIO D96 has one D sub37 pin connector and three 50 pin flat cable headers OME PIO D96 User Manual Ver 1 1 Mar 2003 21 27 Pin Assignment 37 pin of D type female connector Por 0 1 Port2 Pin Number Desert MEC NET L Smp gt 5 Lom do oae 2 8 o EE 22 O 5 3s 0 PE Q zz 13 GND A ON 1 POAO XXXXXXX This pin not avail
22. I plug amp play mechanism It will find all OME PIO PISO series cards installed in this system amp save all their resources in the library Sample program 1 find all OME PIO D96 installed in the PC wSubVendor 0x80 wSubDevice 1 wSubAux 0x10 for D96 wRetVal PIO_DriverInit amp wBoards wSubVendor wSubDevice wSubAux printf Threr are od OME PIO D96 Cards in this PC n wBoards step2 save resource of all OME PIO D96 cards installed in this PC for 1 0 i lt wBoards i GetConfigAddressSpace 1 amp wBase amp wlrq amp wID1 amp wID2 amp wID3 amp wID4 amp wID5 printf nCard 96d wBase x wIrq ox i wBase wlrq wConfigSpace i 0 wBaseA ddress save all resource of this card wConfigSpace i 1 wlrq save all resource of this card Sample program 2 find all OME PIO PISO installed in the PC refer to Sec 4 1 for more information wRetVal PIO_DriverInit amp wBoards Oxff Oxff 0xff find all PIO PISO printf nThrer are 54 PIO PISO Cards in this PC wBoards if wBoards 0 exit 0 printf for 1 0 i wBoards i GetConfigAddressSpace i amp wBase amp amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrqg x SubID x 3x 3x SlotiD x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf T gt y ShowPioPiso wSubVendor wSubDevice
23. O PISO Cards in this PC wBoards if wBoards 0 0 printf n for i 0 i lt wBoards i GetConfigAddressSpace i amp wBase amp wIrq amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x subID x Sx SlotiD x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printi gt ShowPioPiso wSubVendor wSubDevice wSubAux OME PIO D96 User Manual Ver 1 1 Mar 2003 28 3 2 Assignment of I O Address The plug amp play BIOS will assign the proper I O address to PIO PISO series card If there is only one PIO PISO board the user can identify the board as card_0 If there are two PIO PISO boards in the system the user will be very difficult to identify which board is card_0 The software driver can support 16 boards max Therefore the user can install 16 boards of PIO PSIO series in one PC system How to find the 0 4 card_1 The simplest way to identify which card is card_0 is to use wSlotBus amp wSlotDevice as follows 1 Remove all OME PIO D96 from the PC 2 Install one OME PIO D96 into the PC s PCI slotl run PISO EXE amp record the wSlotBusl amp wSlotDevicel 3 Remove all OME PIO D96 from the PC 4 Install one OME PIO D96 into the PC s PCI slot2 run PIO PISO EXE amp record the wSlotBus2 amp wSlotDevice2 5 Repeat 3 amp 4 for all PCI slot reco
24. SR8DC 8 x isolated 80 4200 08 00 30 Rev2 0 8 x SSR OME PISO 730 Rev2 0 16 x DI 16 xD O 80 C2FF 08 00 40 16 x isolated 16 isolated D O Current sinking OME PISO 730A 16 x DI 16 xD O 80 62FF 08 00 80 OME PISO 813 Rev2 0 32 x isolated A D 80 4280 0A 02 00 OME PISO DA2 Rev5 0 2 x isolated D A 80 4280 0B 03 00 Note If your board is a different version it may also have different Sub IDs However this will present no actual problem No matter which version of the board you select we offer the same function calls OME PIO D96 User Manual Ver 1 1 Mar 2003 3 1 2 PIO GetConfigAddressSpace GetConfigAddressSpace wBoardNo wBase wlIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice wBoardNo 0toN totally 1 boards found by Drivelnit wBase base address of the board control word wlrq gt allocated IRQ channel number of this board wSubVendor gt subVendor ID of this board wSubDevice gt subDevice ID of this board wSubAux gt subAux ID of this board e wSlotBus gt hardware slot ID1 of this board wSlotDevice hardware slot ID2 of this board The user can use this function to save resources of all OME PIO PISO cards installed in this system Then the application program can control all functions of OME PIO PISO series card directly The sample program sour
25. User s omega om Shop online at www omega com e mail info omega com 1509001 1509002 CERTIFIED CERTIFIED CORPORATE QUALITY CORPORATE QUALITY STAMFORD CT MANCHESTER UK OME PIO D96 Digital I O Board Hardware Manual omega com CEOMEGA OMEGAnet Online Service Internet e mail www omega com info omega com USA ISO 9001 Certified Canada Servicing North America One Omega Drive P O Box 4047 Stamford CT 06907 0047 TEL 203 359 1660 FAX 203 359 7700 e mail info omega com 976 Bergar Laval Quebec H7L 5A1 Canada TEL 514 856 6928 FAX 514 856 6886 e mail info omega ca For immediate technical or application assistance USA and Canada Mexico Benelux Czech Republic France Germany Austria United Kingdom ISO 9002 Certified Sales Service 1 800 826 6342 1 800 TC OMEGA Customer Service 1 800 622 2378 1 800 622 BEST Engineering Service 1 800 872 9436 1 800 USA WHEN TELEX 996404 EASYLINK 62968934 CABLE OMEGA En Espa ol 001 203 359 7803 e mail espanol omega com FAX 001 203 359 7807 info omega com mx Servicing Europe Postbus 8034 1180 LA Amstelveen The Netherlands TEL 31 0 20 3472121 FAX 31 0 20 6434643 Toll Free in Benelux 0800 0993344 e mail sales amp omegaeng nl Frystatska 184 733 01 Karvin Czech Republic TEL 420 0 59 6311899 FAX 420 0 59 6311114 To
26. able fe fe fe fe N All signals are TTL compatible OME PIO D96 User Manual Ver 1 1 Mar 2003 22 CN2 CN3 CN4 50 pin of flat cable connector for Port3 Port11 scePscoPiCe 4 GND s scsPscyPiCS 6 G PscaPscuPiCa 8 G 9 PsCXPRCUPCS 10 G pscapscupiicz 12 G GND 15 PSCUPSCUPICO 16 17 PABTTBTIOB7 8 G 19 P4B6PTBGPIOBG 20 G G PABA PTBA PI0B4 P4B3 P7B3 P10B3 GND EEE s 29 P4BUPTBIPIOBI 30 G 31 32 G 099 PSATPGATPSAT 34 G GND 35 PGAGPGAGPOAG 36 D 37 PGASPGASIPAS 38 G GND _ 9 4 43 4 G 45 P3AIP6AIP9AI 46 G 47 PSAUPGAUPOAD 4 G 5 All signals TTL compatible OME PIO D96 User Manual Ver 1 1 Mar 2003 2 8 3 Control Register 3 1 Howto Find the I O Address The plug amp play BIOS will assign a proper I O address to every OME PIO PISO series card in the power up stage The IDs of OME PIO D96 cards are given as follows lt REV 1 0 REV 3 0 lt REV 4 0 or above gt e Vendor ID 0 1 59 Vendor ID OxE159 Device ID 0x0002 Device ID 0x0001 Sub vendor ID 0x80 Sub vendor ID 0x5880 Sub device ID 0x01 Sub device ID 0x01 Sub aux ID
27. ce is given as follows stepl detect all OME PIO D96 cards first wSubVendor 0x80 wSubDevice 1 wSubAux 0x10 forPIO D96 wRetVal PIO_DriverInit amp wBoards wSubVendor wSubDevice wSubAux printf Threr are d OME PIO D96 Cards in this PC n wBoards step2 save resource of all OME PIO D96 cards installed in this PC for 1 0 i lt wBoards i PIO_GetConfigAddressSpace i amp wBase amp wlrq amp t1 amp t2 amp t3 amp t4 amp t5 printf nCard_ d wBase x wlIrq x i wBase wIrq wConfigSpace i 0 wBaseAddress save all resource of this card wConfigSpace i 1 wlrq save all resource of this card step3 control the OME PIO D96 directly wBase wConfigSpace 0 0 get base address the card_0 outport wBase 1 enable all operation of card_0 wBase wConfigSpace 1 0 get base address the card 1 outport wBase 1 enable all D I O operation of card_1 OME PIO D96 User Manual Ver 1 1 Mar 2003 27 3 1 3 Show PIO PISO Show_PIO_PISO wSubVendor wSubDevice wSubAux wSubVendor gt subVendor ID of board to find wSubDevice gt subDevice ID of board to find wSubAux gt subAux ID of board to find This function will output a text string for these special subIDs This text string is the same as that defined in PIO H The demo program is given as follows wRetVal PIO_DriverInit amp wBoards Oxff OxffOxff find all PIO PISO printf NnThrer are d PI
28. e information about wBase EN0 0 gt disable 2 0 as a interrupt signal default 1 gt enable P2CO as a interrupt signal outportb wBase 5 0 disable interrupt outportb wBase 5 1 enable interrupt 2 outportb wBase 5 0x0f enable interrupt 2 P5CO P8CO P11CO 3 3 5 Aux Status Register Read Write wBase 7 Note Refer to Sec 3 1 for more information about wBase Aux0 P2C0 1 5 0 Aux2 P8C0 Aux3 P11C0 Aux7 4 Aux ID Refer to DEMOS C for more information The Aux 0 3 are used as interrupt source The interrupt service routine has to read this register for interrupt source identification Refer to Sec 2 5 for more information OME PIO D96 User Manual Ver 1 1 Mar 2003 32 3 3 6 Interrupt Polarity Control Register Read Write wBase 0x2A b b b b JNV2 Note Refer to Sec 3 1 for more information about wBase 0 1 gt select the non inverted signal from 2 0 0 gt select the inverted signal from 2 outportb wBase 0x2a 0x0f select the non inverted input 2 5 8 11 0 outportb wBase 0x2a 0x00 select the inverted input of P2 5 8 11C0 outportb wBase 0x2a 0x0e select the inverted input of 2 select the non inverted input 5 8 11 0 outportb wBase 0x2a 0x0c select the inverted input of P2 5CO select the non inverted input 8 11 0 Refer to Sec 2 5 for more information
29. ect CN2 amp 0 CN3 of 96 AE step 2 run DEMO2 EXE step 3 check the information on screen D I will same as D O include PIO H WORD wBase wIrq main int 21 392 437 229538 WORD wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c long i 1 clrscr stepl find address mapping of PIO PISO cards step2 enable all D I O port outportb 1 gt 1 step3 configure I O direction outportb 0 0x07 set CN2 as D O ports outportb 0 0x00 set CN3 as D I ports for gotoxy 1 6 11 1 amp 0 12 1 gt gt 8 amp 0 13 1 gt gt 16 amp Oxff outportb 0 0 11 outportb 0 4 12 outportb 0 8 13 j1 inportb wBase 0xe0 j2 inportb wBaset 0xe4 j3 inportb wBase 0xe8 printf nD O 2x 2x 2x D I 2 2 2 911 4 1 42042011 printi n nError 22222 ys else printf n nO K i i amp OxOffffff if i220 1 1 if kbhit 0 return DriverClose OME PIO D96 User Manual Ver 1 1 2003 40 4 4 demo 3 Count high pulse of 2 0 initial Low amp active High step 1 run DEMO3 EXE 5
30. for consequential incidental or special damages CONDITIONS Equipment sold by OMEGA is not intended to be used nor shall it be used 1 as a Basic Component under 10 CFR 21 NRC used in or with any nuclear installation or activity or 2 in medical applications or used on humans Should any Product s be used in or with any nuclear installation or activity medical application used on humans or misused in any way OMEGA assumes no responsibility as set forth in our basic WARRANTY DISCLAIMER language and additionally purchaser will indemnify OMEGA and hold OMEGA harmless from any liability or damage whatsoever arising out of the use of the Product s in such a manner RETURN REQUESTS INQUIRIES Direct all warranty and repair requests inquiries to the OMEGA Customer Service Department BEFORE RETURNING ANY PRODUCT S TO OMEGA PURCHASER MUST OBTAIN AN AUTHORIZED RETURN AR NUMBER FROM OMEGA S CUSTOMER SERVICE DEPARTMENT IN ORDER TO AVOID PROCESSING DELAYS The assigned AR number should then be marked on the outside of the return package and on any correspondence The purchaser is responsible for shipping charges freight insurance and proper packaging to prevent breakage in transit FOR WARRANTY RETURNS please have the FOR NON WARRANTY REPAIRS consult OMEGA following information available BEFORE for current repair charges Have the following contacting OMEGA information available BEFORE contacting OMEGA 1 Purchase Order number
31. ide of design limits improper repair or unauthorized modification This WARRANTY is VOID if the unit shows evidence of having been tampered with or shows evidence of having been damaged as a result of excessive corrosion or current heat moisture or vibration improper specification misapplication misuse or other operating conditions outside of OMEGA s control Components which wear are not warranted including but not limited to contact points fuses and triacs OMEGA is pleased to offer suggestions on the use of its various products However OMEGA neither assumes responsibility for any omissions or errors nor assumes liability for any damages that result from the use of its products in accordance with information provided by OMEGA either verbal or written OMEGA warrants only that the parts manufactured by it will be as specified and free of defects OMEGA MAKES NO OTHER WARRANTIES OR REPRESENTATIONS OF ANY KIND WHATSOEVER EXPRESS OR IIVIPLIED EXCEPT THAT OF TITLE AND ALL IMPLIED WARRANTIES INCLUDING ANY WARRANTY OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE HEREBY DISCLAIMED LIMITATION OF LIABILITY The remedies of purchaser set forth herein are exclusive and the total liability of OMEGA with respect to this order whether based on contract warranty negligence indemnification strict liability or otherwise shall not exceed the purchase price of the component upon which liability is based In no event shall OMEGA be liable
32. if now int state 1 now 2 change to low INT CHAN 0 2 0 T COUNT 1 find a low pulse 2 if inportb 7 amp 1 0 2 still fixed in low need to generate high pulse outportb 0 2 1 INVO select noninverted input now int state 0 now P2C0 low else now int state 1 now P2CO High else now 2 0 change to high 0 2 COUNT H t find a high pulse 2 if 7 amp 1 1 2 still fixed in high need to generate high pulse outportb wBaset 0x2a 0 INVO select inverted input now int state 1 now P2CO high Au else now int state 0 now P2C0 low KU if wIrq 8 outportb A2 8259 0x20 outportb Al 8259 0x20 OME PIO D96 User Manual Ver 1 1 2003 44 4 6 5 demo 5 Four interrupt sources 2 0 initial Low active High LX 5 initial High active Low JR 8 initial Low active High 11 initial High active Low step 1 run DEMO5 EXE include PIO H define 1 8259 0x20 define 2 8259 0 0 define EOI 0x20 WORD init WORD wBase wIrq static void interrupt irq service int irqmask now int state new int state invert int c int num int L1 CNT L2 CNT L3 CNT L
33. ll Free 0800 1 66342 e mail info omegashop cz 11 rue Jacques Cartier 78280 Guyancourt France TEL 33 0 1 61 37 29 00 FAX 33 0 1 30 57 5427 Toll Free in France 0800 466 342 e mail sales omega fr Daimlerstrasse 26 D 75392 Deckenpfronn Germany TEL 49 0 7056 9398 0 FAX 49 0 7056 9398 29 Toll Free in Germany 0800 639 7678 e mail info omega de One Omega Drive River Bend Technology Centre Northbank Irlam Manchester M44 5BD United Kingdom TEL 44 0 161 777 6611 FAX 44 0 161 777 6622 Toll Free in United Kingdom 0800 488 488 e mail sales omega co uk It is the policy of OMEGA to comply with all worldwide safety and EMC EMI regulations that apply OMEGA is constantly pursuing certification of its products to the European New Approach Directives OMEGA will add the CE mark to every appropriate device upon certification The information contained in this document is believed to be correct but OMEGA Engineering Inc accepts no liability for any errors it contains and reserves the right to alter specifications without notice WARNING These products are not designed for use in and should not be used for patient connected applications OME PIO D96 User Manual OME PIO D96 User Manual Ver 1 1 Mar 2003 008 11 1 Table of Contents 1 Td FEATURES t ep ERE HIER He ERE 1 2 SPECIFICATI ONS ecoute erect ire ree dee ene
34. mp DEMOA C for single interrupt source Refer to DEMOS for four interrupt sources If only one interrupt signal source is used the interrupt service routine does not have to identify the interrupt source Refer to DEMO3 C amp DEMO4 C If there are more than one interrupt sources the interrupt service routine has to identify the active signals as follows Refer to DEMOS C Read the new status of the interrupt signal source Compare the new status with the old status to identify the active signals If P2CO is active service 2 0 amp non inverter inverted the 2 0 signal If P5CO is active service 5 amp non inverted inverted the 5 signal If P8CO is active service amp non inverted inverted the P8CO signal If P11CO is active service 11 amp non inverted inverted the P11CO signal Save the new status to old status SDS cm Note If the interrupt signal is too short new status may as same as old status So the interrupt signal must be hold active until the interrupt service routine is executed This hold time is different for different operating systems The hold time can be as short as micro second or as long as second In general 20ms is enough for most operating systems OME PIO D96 User Manual Ver 1 1 Mar 2003 9 2 5 1 Interrupt Block Diagram of OME PIO D96 0 1 INT 2 Level_trigger
35. nder for their boards OME PIO D96 User Manual Ver 1 1 Mar 2003 17 2 6 5 OME DB 24P 24PD Isolated Input Board The OME DB 24P is a 24 channel isolated digital input daughter board The optically isolated inputs of the OME DB 24P consists of a bi directional opto coupler with a resistor for current sensing You can use the OME DB 24P to sense DC signal from TTL levels up to 24V or use the OME DB 24P to sense a wide range of AC signals You can use this board to isolate the computer from large common mode voltage ground loops and transient voltage spikes that often occur in industrial environments OME PIO D96 Opto Isolated AC or DC Signal OV to 24V OME DB 24P OME DB 24PD 50 pin flat cable header Yes Yes D sub 37 pin header No Yes Other specifications Same OME PIO D96 User Manual Ver 1 1 Mar 2003 18 2 6 6 OME DB 24R 24RD Relay Board The OME DBZAR 24 channel relay output board consists of 24 form C relays for efficient switch of load by programmed control The relays are energized by apply 12V 24V signal to the appropriated relay channel on the 50 pin flat connector There are 24 enunciator LEDs for each relay and they light when their associated relay is activated Form C Relay Normal Open Normal Close Channel 24 Form C Relays or at 24DCV Relay Switching up to 0 5A at 110ACV OME DB 24R OME DB 24RD 50 pin flat cable heade
36. nerate a high pulse now int state 0 now P2CO LOW else now int state 1 now P2CO HIGH mU don t have to generate high pulse else now 2 is changed to HIGH INT CHAN 0 P2CO HIGH now COUNT find a HIGH pulse 2 inport 7 amp 1 1 the P2CO is still fixed in HIGH need to generate high pulse outportb 0 2 0 INVO select the inverted input INT CHAN 0 P2CO LOW gt INT CHAN 0 generate high pulse now int state 1 now P2CO HIGH else now int state 0 now P2CO LOW A don t have to generate high pulse if wIrq 8 outportb A2 8259 0x20 outportb A1 8259 0x20 oe OME PIO D96 User Manual Ver 1 1 Mar 2003 12 2 5 4 Initial_low active high Interrupt source If the 2 0 is an initial low active high signal the interrupt service routine should use INVO to invert or not to invert the P2CO for high pulse generation as follows Refer to DEMO3 C Initial set now int state 0 initial state for P2CO iii outportb wBase 0x2a 1 select the non inverted 2 void interrupt irq service if now int state 1 now 2 is changed to LOW c M INT CHAN 0 P2CO HIGH now COUNT 14 4 find LOW_pulse 2 If inport 7 amp 1 0 the P
37. or reset The OME PIO D96 has one D Sub connector and three 50 pin flat cable headers Each header can connect to a 50 pin flat cable The flat cable can be connected to OME ADP 37 PCI or OME ADP 50 PCI adapter The adapter can be fixed on the chassis It can be installed in 5V PCI bus and supports Plug amp Play 1 1 Features PCI bus e Up to 96 channels of digital I O All T O lines buffered on the board e Eight bit groups independently selectable for I O on each 24 bit port Input Output programmable I O ports under software control SMD short card power saving Connects directly to OME DB 24P OME DB 24PR OME DB 24PD OME DB 24RD OME DB 24PRD OME DB 16P8R OME DB 24POR OME DB 24SSR OME DB 24C Each board 4 connectors 4x3 ports 4x3x8 bits 96 bits 4 interrupt sources 2 0 5 0 8 0 11 0 Refer to sec 2 7 One D sub connector three 50 pin flat cable connectors Automatically detected by windows 95 98 NT 2000 XP No base address or IRQ switches to set OME PIO D96 User Manual Ver 1 1 Mar 2003 3 1 2 Specifications e Allinputs are TTL compatible Logic high voltage 2 4V Min Logic low voltage 0 8V Max All outputs TTL compatible Sink current 64mA Max Source current 32 Max e Environmental Operating Temperature 0 C to 60 C Storage Temperature 20 C to 80 C Humidity 0 to 90 non condensing e Dimension 180mm X 105mm e Power Con
38. ortb wBase 0xcc 0x07 set port0 port2 as D O ports outportb wBase 0xc0 i1 write to PortO outportb wBase 0xc4 i2 write to outportb wBase 0xc8 i3 write to Port2 outportb wBase 0xec 0x04 set Port6 amp Port7 as D I ports set Port8 as D O port T jl inportb wBase 0xe0 read Port6 j2 inportb wBase 0xe4 read Port7 outportb wBase 0xe8 j3 write to Port8 NOTE Make sure the port configuration DI or DO before performing read write to the data register Refer to sec 3 3 7 OME PIO D96 User Manual Ver 1 1 Mar 2003 35 4 Demo program It is recommended to read the release note first All important information will be given in release note as follows 1 Where you can find the software driver amp utility 2 How to install software amp utility 3 4 Where is the diagnostic program The demo programs are provided on the software floppy disk or CD After the software installation the driver will be installed into disk as follows MESS MSC BC TC LIB TC DEMO TC LIB Large TC LIB Huge TC LIB Large PIO H TC LIB Large TCPIO_L LIB TC LIB Huge PIO H TC LIB Huge TCPIO_H LIB MSC LIB Large PIO H MSC LIB Large MSCPIO_L LIB file MSC LIB Huge PIO H MSC LIB Huge MSCPIO_H LIB BC LIB Large PIO H BC LIB Large BCPIO_L LIB BC LIB Huge PIO H BC LIB Huge BCPIO_H LIB gt for Turbo C 2 xx o
39. r Yes Yes D sub 37 pin header No Yes Other specifications Same OME DB 24R OME DB 24RD 24 Relay 120V 0 5A OME DB 24PR OME DB 24PRD 24 Power Relay 250V 5A OME DB 24POR 24 Photo MOS Relay 350V 01 A OME DB 24SSR 24 SSR 250VAC 4A OME DB 24C 24 0 30V 100 mA OME DB 16P8R 16 Relay 120V 0 5A 8 isolated inputs OME PIO D96 User Manual Ver 1 1 Mar 2003 2 6 7 OME DB 24PR 24POR 24C OME DB 24PR 24 power relay 5A 250V OME DB 24POR 24 Photo MOS relay 0 1 350 OME DB 24C 24 open collector 100 per channel 30V max The OME DB 24PR 24 channel power relay output board consists of 8 form C and 16 form electromechanical relays for efficient switching of load by programmed control The contact of each relay can control a 5A load at 250VAC 30VDC The relay is energized by applying a 5 volt signal to the appropriate relay channel on the 20 pin flat cable connector only 16 relays or 50 pin flat cable connector compatible for OME DIO 24 series Twenty four enunciator LEDs one for each relay light when their associated relay is activated To avoid overloading your power supply this board needs a 12VDC or 24VDC external power supply Normal Open Form A Relay Com Sood To 50pin connector OME DB 24PR CN2 CN4 D O OME PIO D96 Note 50 Pin connector for OME DIO 24 OME DIO 48 OM
40. r above gt for MSC 5 or above gt for BC 3 xx or above gt for TC library gt for TC demo program gt TC large model library gt TC huge model library gt TC declaration file gt TC large model library file gt TC declaration file gt TC huge model library file gt MSC declaration file gt MSC large model library gt MSC declaration file gt MSC huge model library file gt BC declaration file gt BC large model library file gt BC declaration file gt BC huge model library file NOTE The library is validated for all OME PIO PISO series cards OME PIO D96 User Manual Ver 1 1 Mar 2003 36 4 1 PISO Find all PISO series cards in this system step 1 plug all PISO cards into step 2 run PISO EXE include PIO H WORD wBase wIrq WORD wBase2 wIrg2 int main int 1 7 15732 35 J 4 kr93j dd j11 22 33 7 44 WORD wBoards wRetVal WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c float ok err clrscr wRetVal PIO DriverInit amp wBoards Oxff 0xff 0xff for PIO PISO printf NnThrer are d PIO PISO Cards in this PC wBoards if wBoards 0 exit 0 printf n for 1 0 i lt wBoards i GetConfigAddressSpace i amp wBase amp wIrq amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_
41. rd all wSlotBus amp wSlotDevice The records may be as follows PC s PCI slot wSlotBus wSlotDevice Slot 1 0 0x07 Slot 2 0 0x08 Slot 3 0 0x09 Slot 4 0 0x0A PCI BRIDGE Slot 5 1 0x0A Slot 6 1 0x08 Slot 7 1 0x09 Slot 8 1 0x07 The above procedure will record all wSlotBus amp wSlotDevice in the PC These values will be mapped to this PC s physical slot This mapping will not be changed for any OME PIO PISO cards So it can be used to identify the specified OME PIO PISO card as follows Step 1 Record all wSlotBus amp wSlotDevice Step2 Use PIO GetConfigAddressSpace to get the specified card s wSlotBus amp wSlotDevice Step3 The user can identify the specified OME PIO PISO card if they compare the wSlotBus amp wSlotDevice in step2 to step1 OME PIO D96 User Manual Ver 1 1 Mar 2003 29 3 3 I O Address The I O address of OME PIO PISO series card is automatically assigned by the main board ROM BIOS The I O address can also be re assigned by user It is strongly recommended not to change the I O address by user The plug amp play BIOS will assign proper I O address to each OME PIO PISO series card very well The I O addresses of OME PIO D96 are given as follows Address aset0__ RESET control register 5 INT mask control register Wbase 7 Aux pin status register ase 0x2a INT polarity control register 0 0
42. s amp Flow Computers Air Velocity Indicators A Turbine Paddlewheel Systems A Totalizers amp Batch Controllers pH CONDUCTIVITY pH Electrodes Testers amp Accessories A Benchtop Laboratory Meters Controllers Calibrators Simulators amp Pumps 4 Industrial amp Conductivity Equipment DATA ACQUISITION A Data Acquisition Engineering Software 4 Communications Based Acquisition Systems 4 Plug in Cards for Apple amp Compatibles Datalogging Systems A Recorders Printers amp Plotters HEATERS 4 Heating Cable A Cartridge amp Strip Heaters A Immersion amp Band Heaters WF Flexible Heaters 4 Laboratory Heaters ENVIRONMENTAL MONITORING AND CONTROL Metering amp Control Instrumentation 4 Refractometers Pumps amp Tubing A Air Soil amp Water Monitors Industrial Water amp Wastewater Treatment A pH Conductivity Dissolved Oxygen Instruments M4040 0104
43. s D I port The I O port location is given as follows Connector of OME PIO D96 PAO PA7 PBO PB7 PCO PC7 CNI PortO 2 CN2 Port3 Port4 Port5 CN3 Port6 Port7 Port8 CN4 Port9 Port10 Port11 Refer to Sec 2 1 for board layout amp I O port location Note Each PCO be used as interrupt signal source Refer to Sec 2 5 for more information 2 3 Enable Operation When the PC is powered up all D I O ports are disabled The enable disable of D I O is controlled by the RESET signal Refer to Sec 3 3 1 for more information about RESET signal The power up states are given as follows e All D I O operations are disabled Alltwelve D I O ports are configured as port All D O latch register are undefined refer to Sec 2 4 The user has to perform some initialization before using these D I Os These recommended steps are given as follows Step 1 find address mapping of PIO PISO cards refer to Sec 3 1 Step 2 enable all D I O operation refer to Sec 3 3 1 Step 3 configure the first three ports to their expected D I O state amp send the initial value to all D O ports refer to Sec 3 3 7 Step 4 configure the other three ports to their expected D I O state amp send the initial value to all D O ports refer to Sec 3 3 7 Refer to DEMOI C for demo program OME PIO D96 User Manual Ver 1 1 Mar 2003 2 4 Architecture select Sec 3
44. sumption 5V 600mA 1 3 Order Description e OME PIO D96 PCI bus 96 bit opto 22 board 1 3 4 Options OME DB 24P OME DB 24PD 24 channel isolated board OME DB 24R OME DB 24RD 24 channels relay board OME DB 24PR OME DB 24PRD 24 channels power relay board e OME DB 16P8R 16 channels isolated and 8 channels relay output board e OME DB 24POR 24 channels Photo MOS output board OME DB 4C 24 channels open collector output board OME ADP 37 PCI extender 50 pin OPTO 22 header to DB 37 for PCI bus boards OME ADP 50 PCI extender 50 pin OPTO 22 header to 50 pin header for PCI bus I O boards OME PIO D96 User Manual Ver 1 1 Mar 2003 1 4 PCI Data Acquisition Family We provide a family of PCI bus data acquisition cards These cards can be divided into three groups as follows 1 OME PCI series first generation isolated or non isolated cards OME PCI 1002 1202 1800 1802 1602 multi function family non isolated OME PCI P16R16 P16C16 P16POR16 P8R8 D I O family isolated 12 timer counter card non isolated 2 cost effective generation non isolated cards OME PIO 823 821 multi function family OME PIO D144 D96 D64 D56 D48 D24 D I O family OME PIO DA16 DA8 DA4 D A family 3 OME PISO series cost effective generation isolated cards OME PISO 813 A D card OME PISO P32C32 P32A32 P64 C64 A64 D I O family OME PISO P8R8 P8SSR8AC P8SSR8DC
45. w int state int main int 2 73 WORD wBoards wRetVal t1 t2 t3 t4 t5 t6 WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c clrscr stepl find address mapping of PIO PISO cards 0 select 0 step2 enable all D I O port outportb wBase 1 gt 1 step3 configure I O direction outportb 0 0x00 set 1 as D I ports init high printf n n show the count of Low pulse n for gotoxy 1 7 printf NnCOUNT L d COUNT 1 if kbhit 0 break outportb wBaset5 0 disable all interrupt PIO DriverClose Use 2 0 as external interrupt signal WORD init high disable outportb wBaset5 0 disable all interrupt if wIrq 8 irqmask inportb Al 8259 41 outportb Al 825941 irqmask amp Oxff 1 lt lt setvect wIrqt 8 irq service else OME PIO D96 User Manual Ver 1 1 Mar 2003 43 irqmask inportb Al 8259 1 outportb Al 8259 1 irqmask amp Oxfb IRQ2 irqmask inportb A2 825941 outportb A2 825941 irqmask amp Oxff 1 wIrq 8 setvect wIrq 840x70 irq service outportb 5 1 enable interrupt 2 now int state 1 now ini signal is high outportb wBaset 0x2a 0 select the invert enable void interrupt irq service
Download Pdf Manuals
Related Search
Related Contents
MICRÓFONO IMPRIMACIÓN ANTIOXIDANTE BLANCA Fitness Wristband Classic TX–37 User Manual Warmset Calefacción de piso radiante 取扱説明書の表示 AーRMA"@ - AIRMAN Copyright © All rights reserved.
Failed to retrieve file