background image

Manual 104-IIRO-8(E) 

14

RELAY OUTPUTS

 

 
At power-up, all relays are initialized in the de-energized state. The relay outputs are controlled by writing to the 
Base Address. Data are written to all eight relays as a single byte. Each bit within the byte controls a specific 
relay. A "1" energizes the corresponding relay and a "0" turns it off. 
 

Bit 

Position D7 D6 D5  D4 D3 D2 D1 D0 

Relay Contr'd 

OUT7 

OUT6 

OUT5 

OUT4

OUT3

OUT2

OUT1 

OUT0 

 
For example, if bit D5 is turned on by writing hex DF to the base address, then the relay that controls OUT5 is 
energized closing the associated normally-open contacts. All other relays would be de-energized and their 
normally-closed contacts would be closed. 
 

PROGRAMMING EXAMPLES

 

 
No driver software is provided with the board because programming is very simple and can be accomplished 
most efficiently using direct I/O instructions in the language that you are using. The following examples are in C 
but are readily translated into other languages: 
 
 

Example: Turn on OUT0 and OUT7 

  
  Base=0x300 

 

//Base 

I/O 

address 

  outportb(Base, 

0x7E); 

 
 

Example: Read back the state of the relays 

  
 

 

X=inportb(Base); 

//relay register data to X 

  printf(“%02x”); 

 

//display 

results 

 
 

Example: Read the digital inputs 

  
 

 

Y=inportb(Base+1); 

//digital input register to Y 

 

SOFTWARE

 

 
Utility software provided on CD with the board is the base address locator, an illustrated setup program and a 

sample program. The sample program sequentially turns on each relay until all 
are on and then sequentially turns them off. After each relay is turned on, the 
relay states are read back, the opto-isolated inputs are read, and the data are 
displayed. 

 
The sample programs are in forms suitable for use with, QuickBASIC, C, and Pascal. The programs as follows: 
  
 

FINDBASE: 

Program locates active and available port addresses. 

  
 SETUP: 

Board 

Setup 

Program 

  
 

CSAMPLES: SAMPLE1 This sample program will sequentially turn on all bits of the relay input and 

sequentially turns them off. Each time it sets a new bit, both the relay output and 
the relay input are read and the data displayed. This demonstrates how to read 
and write to a port.  

  
 BSAMPLES: 

SAMPLE1Same 

sample in Quickbasic 

Содержание 104-IIRO-8

Страница 1: ...selle Street San Diego CA 92121 y 858 550 9559 y Fax 858 550 7322 contactus accesio com y www accesio com ISOLATED DIGITAL INPUT RELAY OUTPUT BOARD MODEL 104 IIRO 8 104 IIRO 8E USER MANUAL File M104 IIRO 8 A1h ...

Страница 2: ... nor the rights of others IBM PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright 1998 2005 by ACCES I O Products Inc 10623 Roselle Street San Diego CA 92121 All rights reserved WARNING ALWAYS CONNECT AND DISCONNECT YOUR FIELD CABLING WITH THE COMPUTER POWER OFF ALWAYS TURN COMPUTER POWER OFF BEFORE INSTALLING A BOARD CONNECTING ...

Страница 3: ...r parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonable rates similar to those of other manufacturers in the industry Equipment Not Manufactured by ACCES Equipment provided but not manufactured by ACCES is warranted and will be repaired according to the t...

Страница 4: ...AM 6 Chapter 2 INSTALLATION 7 Figure 2 1 PC 104 Key Information 8 Chapter 3 OPTION SELECTION 9 Figure 3 1 OPTION SELECTION MAP 10 Chapter 4 ADDRESS SELECTION 11 Table 4 1 ADDRESS ASSIGNMENTS FOR COMPUTERS 11 Chapter 5 PROGRAMMING 13 Chapter 6 CONNECTOR PIN ASSIGNMENTS 15 Chapter 7 SPECIFICATIONS 16 ...

Страница 5: ...e filter must be selected for AC inputs in order to eliminate response to zero crossings The filter is also valuable for use with slow DC input signals in a noisy environment The filter may be switched out for DC inputs in order to obtain faster response Filters are individually selected by jumpers The filters are switched into the circuit when the jumpers are installed in position FLT0 to FLT7 Ei...

Страница 6: ...FFER JUMPER SELECTED FILTERS 8 ISOLATED INPUTS LATCHED HIGH CURRENT DRIVERS 8 FORM C RELAYS SPDT ADDRESS DECODE LOGIC IRQ JUMPER SELECTION 8 BITS DIGITAL IN PC 104 8 BIT BUS CONTROL LINES DATA LINES I O CONNECTOR I O CONNE CTOR Figure 1 1 BLOCK DIAGRAM Manual 104 IIRO 8 E 6 ...

Страница 7: ...e examples below CD Installation The following instructions assume the CD ROM drive is drive D Please substitute the appropriate drive letter for your system as necessary DOS 1 Place the CD into your CD ROM drive 2 Type B to change the active drive to the CD ROM drive 3 Type GLQR JJ to run the install program 4 Follow the on screen prompts to install the software for this board WINDOWS 1 Place the...

Страница 8: ...dress according to your application requirements as mentioned above 2 Remove power from the PC 104 stack 3 Assemble standoff hardware for stacking and securing the boards 4 Carefully plug the board onto the PC 104 connector on the CPU or onto the stack ensuring proper alignment of the pins before completely seating the connectors together 5 Install I O cables onto the board s I O connectors and pr...

Страница 9: ...it 1 etc JUMPER SELECTION Bit Filtered FLT 0 1 2 3 4 5 6 7 IN0 IN1 IN2 IN3 IN4 IN5 IN6 IN7 This additional filtering provides a slower response as described previously and should be used when AC inputs are applied INTERRUPTS Select the desired interrupt level by installing a jumper at one of the locations marked IRQxx An interrupt is asserted by the board when an input data bit changes state if so...

Страница 10: ...1 5 P1 1 0 2 3 4 5 6 7 FILTERS ADDRESS IRQs IRQs 2 3 4 5 6 7 15 14 12 11 10 A2 A9 0 Figure 3 1 OPTION SELECTION MAP Manual 104 IIRO 8 E 10 ...

Страница 11: ...B0 2BF 2C0 2CF 2D0 2DF 2E0 2E7 2E8 2EF 2F8 2FF 300 30F 310 31F 320 32F 370 377 378 37F 380 38F 3A0 3AF 3B0 3BB 3BC 3BF 3C0 3CF 3D0 3DF 3E8 3EF 3F0 3F7 3F8 3FF 8237 DMA Controller 1 8259 Interrupt 8253 Timer 8042 Keyboard Controller CMOS RAM NMI Mask Reg RT Clock DMA Page Register 8259 Slave Interrupt Controller 8237 DMA Controller 2 Math Coprocessor Math Coprocessor Fixed Disk Controller 2 Fixed D...

Страница 12: ...r binary 11 0000 00xx The xx represents address lines A1 and A0 used on the board to select individual registers as described in the Programming section of this manual Base Address in Hex Code 0 0 3 Conversion Factors 4 2 1 8 4 2 1 8 Binary Representation 1 1 0 0 0 0 0 0 Jumper Legend A A A A3 A2 A9 A8 A7 6 5 4 Addr Line Controlled A A A A3 A2 A9 A8 A7 6 5 4 Jumper Selection N O O ON OFF OFF ON O ...

Страница 13: ...1 IN0 The board response to inputs is rated at 10 uSec Sometimes it is necessary to slow down that response to accommodate AC inputs or in noisy environments Hardware installation of JUMPERS to implement filtering is provided The board supports interrupts on change of state of isolated digital inputs Thus it is not necessary to continuously poll inputs by reading at base address 1 to detect any st...

Страница 14: ...o other languages Example Turn on OUT0 and OUT7 Base 0x300 Base I O address outportb Base 0x7E Example Read back the state of the relays X inportb Base relay register data to X printf 02x display results Example Read the digital inputs Y inportb Base 1 digital input register to Y SOFTWARE Utility software provided on CD with the board is the base address locator an illustrated setup program and a ...

Страница 15: ... Contact 16 OUT2 NC Bit 2 Relay Normally Closed Contact 17 OUT3 NO Bit 3 Relay Normally Open Contact 18 Out2 NO Bit 2 Relay Normally Open Contact 19 OUT1 C Bit 1 Relay Common 20 OUT0 C Bit 0 Relay Common 21 OUT1 NC Bit 1 Relay Normally Closed Contact 22 OUT0 NC Bit 0 Relay Normally Closed Contact 23 OUT1 NO Bit 1 Relay Normally Open Contact 24 OUT0 NO Bit 0 Relay Normally Open Contact 25 IIN7 A Is...

Страница 16: ...ITAL INPUTS Number of inputs Eight inputs with 10K pullup TTL CMOS compatible RELAY OUTPUTS Number of outputs Eight SPDT form C Contact Rating 1A max at 24VDC 60VDC max 0 5A at 125VAC max Contact Type Single crossbar Ag with Au clad Bifurcated contacts optional Contact Resistance Initial 100 milliohms maximum Contact Life mech l 5 million operations minimum Operating Time 5 milliseconds maximum Re...

Страница 17: ...give us some feedback please email us at manuals accesio com Please detail any errors you find and include your mailing address so that we can send you any manual updates 10623 Roselle Street San Diego CA 92121 Tel 858 550 9559 FAX 858 550 7322 www accesio com Manual 104 IIRO 8 E 17 ...

Отзывы: