1. Introduction 1. Introduction The P8R8-DIO/P16R16-DIO is an 8/16 isolated input and 8/16 relay output The P8R8-DIO/P16R16-DIO is an 8/16 isolated input and 8/16 relay output interface board designed for control and sensing applications. This interface interface board designed for control and sensing applications. This interface board is easily installed in any PC/AT/XT or compatible computer.
If any of these items is missing or damaged, contact the dealer from whom you purchased the product. Please save the shipping materials and carton in case you need to ship or store the product in the future. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
150 mm x 97 mm x 22 mm 160 mA @ +5 V (max.) Power Consumption 150 mA @ +12 V (max.) Operating Temperature 0 ~ 60 °C Storage Temperature -20 ~ 70 °C Humidity 5 ~ 85% RH, non-condensing P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Your P8R8-DIO card contains sensitive electronic components that can be easily damaged by static electricity. 1. The P8R8-DIO should be done on a grounded anti-static mat. 2. The user should wear an anti-static wristband, grounded at the same point as the anti-static mat.
The P8R8-DIO requires two consecutive I/O addresses, one for output and read back and the other for input. You can set the base address on any 4-byte boundary using the DIP switch (SW1). If you install one more P8R8-DIO boards, you must set a different base address for each board.
Page 9
The base address switch is preset at 300H (see Figure 2-1). Figure 2-1: Default Base Address 300 Hex For Example How to select 3 0 0 (Hex) The detail SW1 base addresses setting. Please refer to P8R8DIO (see Table 2-1) Base Address Table P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
20 μs, set the filter off. If you want a slow response (about 5 ~ 10 ms) for rejecting noise or contact bouncing, short the AC FILTER jumper 1-2.7 P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
D I 6- D I 6+ D I 7- D I 7+ NO n : Normally open. COM n : Common. NC n : Normally close. DI n : Digital input channel n. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
3. P8R8-DIO Programming 3. P8R8-DIO Programming This chapter provides the I/O map of P8R8-DIO registers. Example programs This chapter provides the I/O map of P8R8-DIO registers. Example programs and programming information are also included. and programming information are also included.
REM: Set relay output CH 3 is ON, Output data 8h (00001000 BIN) Out Base, &h8 ‘ Set relay output CH 3 ON (For C Language) outportb(0x300,0x0FF); /* Set all relay output is On*/ outportb(0x300,0x0); /* Set all relay output is Off*/ P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Load AC/ DC Power Supply Figure 3-1. Heavy Loading Application ( > 0.3 A ), Refer to Figure.3-2. P8R8DIO Power Relay Relay Contact AC/ DC Power Supply Power Relay Heavy Loading Figure 3-2. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Table 3-3 input addresses in the isolated control input Register. For Example (Basic Language) Base=&h300 ‘ Set Base Address at 300 (Hex) RIH=INP(Base+1) ‘ Read Isolated Input Ch 0 ~ Ch 7 ( C Language ) int rih; rih=inportb(0x301); P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
= 120 V Then i = 120 (V) / 0.01 (A) = 12 kΩ w = 120 (V) X 0.01 (A) = 1.2 W i Must Replace By 12 kΩ / 2 W (1.2 W) P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
After opening the carton, exact the system board and place it on a grounded anti-static surface & component side up. CAUTION: Do not apply power to the board if it has been damaged! 10. You are now ready to install your P16R16-DIO. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
You can set the base address on any 4-byte boundary using the DIP switch (S1). If you install one more P16R16-DIO boards, you must set a different base address for each board. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Page 21
The base address switch is preset at 300H (see Figure 2-1). Figure 2-1: Default Base Address 300 Hex For Example How to select 3 0 0 (Hex) The detail SW1 base addresses setting. Please refer to P16R16-DIO (see Table 2-1) Base Address Table P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Without Filter With AC Filter For DC Signal For AC Signal (Default Setting) JP 9 ~ JP 16 Without Filter With AC Filter For DC Signal For AC Signal (Default Setting) Figure 2-2 P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Page 25
20 μs, set the filter off. If you want a slow response (about 5 ~ 10 ms) for rejecting noise or contact bouncing short the AC FILTER jumper 1-2. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
5.4 Pin Assignments CON1 CON2 Extender Cable NO n : Normally Open. COM n : common. NC n : Normally closed. DI n : Digital input channel n. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Page 27
NC: Normally Closed COM: Common NO: Normally Open Figure 3-4. SPDT RELAY: Single Pole Double Throw. DI n +: Digital Input Jumper AC Filter DI n -: Digital Input PC - Figure 3-5. Isolated Input. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Relay Output (CH 8 ~ CH15) Read Back The Output Status Base + 2 No Function Digital Input (CH0~CH7) Base + 3 No Function Digital Input (CH8~CH18) Table 3-1. P16R16DIO I/O Address Map. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
‘ Read Back Relay Output Ch 8 ~ Ch 15 REM : Set relay output CH 3 is ON ,Output data 8h (00001000 BIN) Out Base,&h8 ‘ Set relay output CN2 D3 ON P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
P8R8DIO Relay Load AC/ DC Power Supply Figure 3-1. Heavy Loading Application (>0.3 A). Refer to Figure 3-2. P8R8DIO Power Relay Relay Contact AC/ DC Power Supply Power Relay Heavy Loading Figure 3-2. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Input Channel Table 3-3. input addresses in the isolated control input Register. For Example (Basic Language) Base=&h300 ‘ Set Base Address at 300 (Hex) RIH=Inp(Base+1) ‘ Read Isolated Input Ch 0 ~ Ch 7 P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
= 120 V Then i = 120 (V) / 0.01 (A) = 12 kΩ w = 120 (V) X 0.01 (A) = 1.2 W i Must Replace By 12 kΩ / 2 W (1.2 W) P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
INP and OUT commands of the BASIC language. For example, using DEBUG for a P8R8-DIO at a base address set to &H300 is as follows: 300 FF ‘Turn On all Relays.
Step 5: Choose the “Install Toolkit for Windows 95/98、NT or 2000” for setup according to your PC platform and then install driver. Notes: 1. The P8R8DIO/P16R16DIO Windows driver site location: http://ftp.icpdas.com/pub/cd/iocard/isa/napdos/isa/dio/dll/ 2. The Windows 2000 (Win2K) driver support Windows 2000 and 32-bit Windows XP/2003/Vista/7. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Step 2: Remove all covers from the computer. Step 3: Select an empty ISA slot. Step 4: Care fully insert your P8R8DIO/P16R16DIO card into the ISA slot. Step 5: Replace the PC covers. Step 6: Power on the computer. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Page 36
Step 12: Selection the item “Show All Devices” and click the “Next>” button. Step 13: Click the “Have Disk...” button. Step 14: Click the “Browse...” button to select the .Inf file default path is C:\DAQPRO\DIO_Win2K\Inf and click the “Open” and “OK” button. P8R8-DIO/P16R16-DIO User Manual (Ver.1.7, Oct. 2011, IMH-009-17)
Page 37
Step 18: Click the “Hardware” tab and then click the “Device Manager” button. Step 19: Click the “DAQCard” tab and then double-click “ICPDAS P16R16-DIO Digital I/O Card” (or ICPDAS P8R8-DIO Digital I/O Card). Step 20: Select the “Resources” tab and then setting as follows: 4.
Need help?
Do you have a question about the P8R8-DIO and is the answer not in the manual?
Questions and answers