B&B Electronics 232OPSDA User Manual

Not Recommended for New Installations.
Please contact Technical Support for more information.
Optically Isolated Serial
Data Acquisition Module
232OPSDA Module
Documentation Number 232OPSDA1397
This product
Designed and Manufactured
In Ottawa, Illinois
USA
of domestic and imported parts by
B&B Electronics Mfg. Co. Inc.
707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Internet:
http://www.bb-elec.com
orders@bb-elec.com
support@bb.elec.com
Copyright © 1997 by B&B Electroni cs Mfg. Co. All rights reserved.
Documentation Number 232OPSDA1397 Manual Cover Page
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
TABLE OF CONTENTS
CHAPTER 1: INTRODUCTION...........................................................1
232OPSDA F P
ACKING LIST .........................................................................................2
S
OFTWARE INSTALLATION ......................................................................3
232OPSDA S
Analog to Digital Converter ..............................................................3
Digital Input.......................................................................................4
Digital Output....................................................................................4
Power Supply.....................................................................................4
Communications ................................................................................4
CHAPTER 2: CONNECTIONS.............................................................5
A/D C D
IGITAL I/O CONNECTIONS.....................................................................7
Digital Input.......................................................................................7
Digital Output....................................................................................7
S
ERIAL PORT CONNECTIONS...................................................................7
P
OWER SUPPLY CONNECTIONS ...............................................................9
CHAPTER 3: COMMANDS ................................................................11
S
YNTAX ................................................................................................12
R
EADING A/D CHANNELS COMMAND...................................................13
R
EADING DIGITAL I/O COMMAND ........................................................14
S
ET DIGITAL OUTPUT COMMAND .........................................................14
CHAPTER 4: A/D..................................................................................15
S
AMPLING RATE ...................................................................................15
A/D C
Non-buffered 0 to 5VDC A/D Inputs................................................15
Buffered 0 to 5V A/D Inputs.............................................................15
0 to 10VDC A/D Input......................................................................16
4-20mA Current Loop A/D Input.....................................................16
EATURES...........................................................................1
PECIFICATIONS ..................................................................3
ONNECTIONS.................................................................................5
ONVERTER RANGE ......................................................................15
CHAPTER 5: SOFTWARE..................................................................19
A
PPLICATION PROGRAM INTERFACE..................................................... 19
B232OPSDA_ReadAnalog...............................................................19
B232OPSDA_ReadDigital...............................................................20
B232OPSDA_SetDigitalOutput.......................................................21
deinitComPort..................................................................................21
initComPort......................................................................................21
L
OW-LEVEL COMMUNICATIONS............................................................22
Read A/D Command ........................................................................23
Read Digital I/O Command .............................................................24
Set Digital Output State ...................................................................26
Documentation Number 232OP SDA1397 Manual Table of Contents i
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
APPENDIX A: DEC TO HEX TO ASCII CONVERSION..........A-27
APPENDIX B: 232OPSDA SCHEMATIC & BOARD.................B-29
ii Table of Contents Documentation Number 232OPSDA1397 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Chapter 1: Introduction
232OPSDA Features The 232OPSDA is an optically isolated data acquisition module
that is connected to your computer’s RS-232 ser ial port. It provides 2500V of optical isolation protection between the I/O and RS-232 side of the module. The 232OPSDA offers six channels of 12-bit A/D, one digital input, and one digital output. The six A/D input channels can be used for a number of applications. One A/D channel can read a 4-20mA analog cur rent, two buffered channels read voltages between 0 and 5V, two non-buffered channels read voltages between 0 and 5V, and one channel can read voltages between 0 and 10V. The 232OPSDA connects to your computer’s RS-232 serial port through a DB-25S (female) connector. The module automatically detects baud rates from 1,200 to 9,600. A data for m at of 8 data bits, 1 stop bit, and no parity is used. The RS-232 side of the 232OPSDA is port powered. Power is drawn from RT S and DTR regardless of whether they are asserted HIGH or LOW. In addition, an isolated external power supply is required to power the I/O side of the module. Both port-powering and the external power supply are required. The 232OPSDA requires a power supply that produces 9-16VDC @ 10mA (not including power consumption of external devices).
Figure 1.1: 232OPSDA Module
Documentation Number 232OPSDA1397 Manual 1
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Terminal Blocks
Digital Input
TB 7
Digital Output
TB 6
O
/
I
l
a
t
i
g
i D
TB 4 TB 5
g
o
l
a
n A
TB 0 TB 1 TB 2 TB 3
Microprocessor
A/D Converter
A/D 4 A/D 5
s
t
u
p
n
I
A/D 0 A/D 1 A/D 2 A/D 3
Packing List
Optical Isolation
0
1
2
D
/ A
0 D
/ A
3
D
D
D
/
/
/
A
A
A
2
1
3
D
D
D
/
/
/
A
A
A
Signal
Conditioning
Circuitry
Figure 1.2: General Block Diagram
Serial Port
DB-25S
TD
RD
RS-232
Tranceiver
Examine the shipping carton and the contents for physical
damage. The following items should be in the shipping carton:
1. 232OPSDA module
2. One 232OPSDA 3.5” disk
3. This instruction manual
If any of these items are missing or damaged, contact B&B Electronics immediately.
2 Documentation Number 232OPS DA1397 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Software Installation
The 232OPSDA comes with several a demonstration program. To install these programs on your hard drive:
1. Place the disk in drive A.
2. Type A: and press the <ENTER> key.
3. Type INSTALL and press the <ENTER> key.
4. Follow the instructions given by the program.
The file, READ.ME, contains corr ections and additions to the printed user’s manual. The file, FILES.LST, contains a list and description of the files installed on the hard drive. The file, HISTORY.LST, contains a historic description of the 232OPSDA.
232OPSDA Specifications
Analog to Digital Converter
Resolution: 12 bit Channels: 6 A/D Connections: Terminal Blocks 4-20mA channel: 1
Input Resistance: 10 Input Offset voltage: 1500µV Input Offset Voltage Drift: 0.5µV/°C Signal Conditioning Error: ±3% of output
0 to 5V Buffered Input Channels: 2
Input Resistance: 1T Input Offset voltage: 1500µV Input Offset Voltage Drift: 0.5µV/°C Signal Conditioning Error: ±1% of output
0 to 10V Input Channel: 1
Input Resistance: 200K Input Offset voltage: 1500µV Input Offset Voltage Drift: 0.5µV/°C Signal Conditioning Error: ±1% of output
0 to 5V Non-buffered Input Channels: 2
Input Offset voltage: 1500µV Input Offset Voltage Drift: 0.5µV/°C Total Unadjusted Error: ±1.75LSB Non-buffered A/D input channels must be driven from a source impedance less than 1KΩ.
Documentation Number 232OPSDA1397 Manual 3
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Digital Input
Channels: 1 Voltage Range: -30VDC to +30VDC Low Voltage: -30VDC to 1.0VDC High Voltage: 2.0VDC to 30VDC Leakage Current: 1 µA maximum
Digital Output
Channels: 1 Low Voltage: 0.6VDC @ 8.7mA High Voltage: 4.3VDC @ -5.4mA
Power Supply
Input Voltage: 9-16VDC @ 10mA (Does not include the power consumption of external devices.) Connections: Terminal Blocks
Communications
Standard: RS-232 (unit is DCE) Baud Rate: 1,200 to 9,600 (automatic detection) Format: 8 data bits, 1 stop bit, no parity Isolation Protection: 2500V (Power supply not considered) Port Power: RTS and DTR (either state) Connections: DB-25S (female)
4 Documentation Number 232OPS DA1397 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Chapter 2: Connections
This chapter will cover the connections required for the 232OPSDA. Four sets of connections are required: A/D converter, digital I/O, serial port, and power supply connections. Do not make any connections until you have read this chapter. If you do not use a particular type of connection, it is still im portant to r ead eac h section. Table 2.1 shows the terminal block assignments.
Terminal
Block
TB 0 A/D 0 TB 1 A/D 1 TB 2 A/D 2 Buffered 0 to 5V A/D Channel TB 3 A/D 3 0 to 10V A/D Channel TB 4 A/D 4 Non-buffered 0 to 5V A/D Channel TB 5 A/D 5 Non-buffered 0 to 5V A/D Channel TB 6 Digital out Digital Output TB 7 Digital in Digital Input GND GND Ground
+12VDC +12VDC Power Supply Connection
* The current loop input uses a non-inverting amplifier that has a gain of 23.064. Space for through-hole resistors is provided to change the gain. By decreasing the gain, currents up to 100mA can be read with A/D 0.
** This A/D input uses a voltage follower cir cuit. Spaces for through­hole resistors are provided to convert the voltage fo llower into a non­inverting amplifier with gain > 1.
Table 2.1: Terminal Block Assignments
Function Description
4-20mA Current Loop Input Channel* Buffered 0 to 5V A/D Channel**
A/D Connections
The A/D connections are m ade on the I/O port which consists of ten terminal blocks. Terminal Blocks 0-5 are A/D channels 0-5. These six A/D channels are ref erenced to GND (terminal block 8). The 4-20mA Current Loop A/D channel requires connections different from the other five c hannels, so two different diagram s are shown for required A/D connections. Figure 2.1 shows the connections required f or the 4-20mA Current Loop c hannel (A/D 0), and Figure 2.2 shows the connec tions required for A/D channels 1-
5.
Documentation Number 232OPSDA1397 Manual 5
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
RS-232 Port
232OPSDA
1
0
D
D
/
/
A
A
2
1
0
B
B
B
T
T
T
2
3
5
4
D
D
/
/
A
A
3
4
B
B
T
T
D
D
D
N
/
/
G
A
A
5
8
B
B
T
T
Output
4-20mA
Current Loop
Transmitter
Return
4-20mA Current
Loop
Input
4-20mA
Current Loop
Receiver
Out
Figure 2.1: Current Loop Channel Connections (A/D 0)
NOTE: W hen using the 4-20mA Current Loop Input with the setup shown in Figure 2.1, A/D 1-5 cannot be used and should be connected to the terminal block labeled GND.
A D S P O
2
3
2
A/D 1
TB 1 TB 2
A/D 2
TB 3
A/D 3
TB 4
A/D 4
TB 5
A/D 5
TB 0
A/D 0
TB 8
GND
0 to 5VDC Input 0 to 5VDC Input 0 to 10VDC Input 0 to 5VDC Input 0 to 5VDC Input
GND
Figure 2.2: Required Connections for A/D 1- A/D 5
6 Documentation Number 232OPS DA1397 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Loading...
+ 19 hidden pages