Transcript
PCI-63C 16/32 Channel PCI Reed Relay Board
Quick Installation Manual
For PCI Compatible Computer Systems
PCI-63C QUICK INSTALLATION GUIDE 1.0) Connecting the PCI 63C to the PC Backplane Requirements: a) Any PCI Based Computer b) Philips Screw Driver (or one to match screw on the computer cabinet and bracket)
Procedure: a) Switch off the computer and all attached devices b) Unplug power cord from the computer and all attached devices.
N Warning Failure to disconnect all power cables can result in harzardous conditions, as there may be dangerous voltage levels present in externally connected cables. c) Remove the top cover from the PC. If you are not sure how to do this, consult the manual supplied with the system unit. d) Choose any PCI expansion slot and remove the screw from the metal bracket fixed corresponding to the chosen slot. e) If you are using the Digital I/O lines or the PCI-63C-32 (32 channel version) then you must insert the Ribbon Cables into the appropriate IDC40 Headers. f) Align the gold plated edge connector with the edge socket and the rear adaptor slot with the board bracket. Firmly press the board down into the socket on the computer's system board. Ensure that the board's edge connector is in the socket and has not slipped sideways past the socket. g) Move the Ribbon Cables for Digital I/O; Reed Relay Channels 16-31 if you are using them as well thru another empty slot on the computer. h) Replace the screw on the bracket and tighten the screw to the back panel. i) Replace the computer's cover. Plug in all cables and switch the computer power on. The PCI-63C is now installed.
2
2.1) PCI 63C DB37 User Connector (P1) The PCI 63C reed relay card input channels 0 to 15 interfaces to the external world via a DType 37 way female connector.
Figure 2.1: PCI 63C DB37RF Interface Connector (as seen from the rear of the PC)
Note: Pin 1 is +12V on the DB37RF Connector. a) Relay 1 to 8 are PA0 thru PA8 while their returns are PA0 Return thru PA8 Return. b) Relay 9 to 16 are PB0 thru PB8 while their returns are PB0 Return thru PB8 Return. c) EXT INTERRUPT – This is an optically isolated input line which can be used as an External Trigger. A logical low is represented from 0 to 2.5V while a High is from 3.4V to 24V. d) EXT INTERRUPT RETURN – This line is the return line of the Optically Isolated Input. You can either ground it for single-ended inputs or use it as the –ve line of a differential input. e) +5V – External User Power. Can be used as a +5V power source for prototype boards, etc. Note that the maximum permissible current consumption is 500mA. f) +12V – External User Power. Can be used as a +12V power source for prototype boards, etc. Note that the maximum permissible current consumption is 250mA. g) GND – Digital Ground.
3
2.2) Expansion Connector for Relay Channels 16 to 31 (IDC40 Connector JP3) REL16
1
2
REL17 REL18 REL19 REL20 REL21 REL22 REL23 REL24 REL25 REL26 REL27 REL28 REL29 REL30 REL31 GND GND GND GND
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
REL16 RET REL17 RET REL18 RET REL19 RET REL20 RET REL21 RET REL22 RET REL23 RET REL24 RET REL25 RET REL26 RET REL27 RET REL28 RET REL29 RET REL30 RET REL31 RET GND GND GND +5V
Figure 2.2: Reed Relay Channels 16 to 31 Connector (Component View on PCI-63C Card)
4
40
GND
39
+5V
GND GND
38 37
GND 36
GND
35
DO15 DO14
34
DO13
33
DO12
32 31
DO11 30
DO10
29
DO9 28
DO8
27
DO7 26
DO6
25
DO5 24
DO4
23
DO3 22
DO2
21
DO1 20
DO0
19
GND 18 17
GND
DIN15 16
DIN14
15
DIN13 14
DIN12
DIN10
13
DIN11
DIN9
12
DIN8
11
DIN7
10 9
DIN6
8 7
DIN5 6
DIN4
5
DIN3 4 3
DIN2
2
DIN0
1
DIN1
2.3) The Digital I/O IDC40 Connector (JP2)
Figure 2.4a: Digital I/O Connector (Component View on PCI-63C Card)
2.4) Differential/Single-ended External Interrupt Jumper Setting [J4] The optically isolated input line can be connected differentially or single ended. Figure 1.5 illustrates this graphically:
J4
Differential
J4 Single-ended
Figure 2.3a: Optically Isolated Input Diff/Single-ended Jumper Setting
Jumper J4 when enabled simply shorts the External Trigger Line Return to GND on the PCI-63C Board.
5
3) Testing the PCI 63C Before attempting to interface the PCI 63C with your application, it is essential that you test the board first. This is done using the following procedure: 3.1) Testing the PCI 63C Board a) Install the PCI-63C hardware as explained in Sections 1.0 and 2. b) Switch the Computer on and boot from an OS [DOS, Win ’95/98 or NT] of your choice. b) Insert the EDR CD and run Setup under Win ‘95/98 or NT in order to install the all the files. c) For Windows NT:
Run Install.bat in EDRE\WinNT\PCIXX\ directory. Copy edrapi.dll and edrecfg.cpl from EDRE\UTILS\ to WINNT\SYSTEM32.
d) Reboot Computer e) Test card by running the EAGLEDAQ control panel applet. f) Run the PCI63CDEMO Example in the EDR\EXAMPLES\VC\PCI63CDEMO\DEBUG\ SubDir for testing the relays. g) Wire the relays (any one or all) via the DB37RF Connector and optionally the IDC40 Connector if you are using Reed Relays 16 thru 31. For example, connect the PA0 to +5V and PA0 Return thru a series resistor [560Ohm] + LED. Ground the Cathode of the LED. Run the Software and set the Relay 0 (and others) to 1. The LED should light up. Reseting the bit will result in the LED switch off. h) If you intend using the Digital I/O: Apply a voltage (TTL only) to the digital inputs. Note that you must ground all unused digital input channels. i) As for the Digital Outputs: Write a logical Low or High to these lines and check (using a logic Probe or Multimeter) whether the output lines matched the levels of those written. The PCI-63C is now ready for use.
6
4.1) EDR Enhanced Functions for PCI63C Function List: EDRE_GetAPIInfo EDRE_GetBoardInfo EDRE_GetSerialNo EDRE_WaitOnInterrupt EDRE_RelaseInterrupt EDRE_DioWrite EDRE_DioRead EDRE_StrBoardType EDRE_StrError
-Supply information about the EDRE API -Supply information about a specific board that is installed -Return a specific device’s serial number -Hangs a thread until an interrupt event is received -Releases an interrupt thread pre-maturely -Write to a Digital Port -Read from a Digital Port -Return a specific devices name -Convert an error code into a string
A detailed installation procedure is given in the EDR Enhanced Software Manual.
Engineer: Shafique Allie
DOC: PCI63C Quick Ins1.doc
7
Rev: 1.1
Date: 12 January 2000