MetroByte Corporation assumes
product. This product is not desi
use in life support or critical app Ications.
All rights reserved. No part of this publication may be reproduced, stored in CI retrieval
system, or transmitted, in any form by any means, electronic, mechanical. photocopying,
m;xding, or otherwise. wrthout the express prior wrrtten permissron of MetraByte Corpo-
Information furnished b
However, no responsib lrty is assumed by MetroByte Corporation for its use: nor for any
infringements of patents or other rights of third parties which may result from its use. No
license is granted by implication or otherwise under any patent rights of MetraByte Corporation.
MetraByte Corporation is believed to be accurate and reliable.
r
no liability for damages consequent to the
ned with components of a level of reliability suitable for
P
andish Boulevard
li
988
use of this
MetraByte” is a trademark of MetroByte Corporation.
BASICTM is a trademark of Dartmouth College.
IBM@ is Q registered trademark of International Business Machines Corporation.
Microsoft@ is a registered trademark of Microsoft Corporation.
MAO-12 ANALOG OUTPUT BOARD
Features of the MAO-12
0
0
0
0
0
0
0
MetraByte’a
Industrial Data Acquisition and Control System. It has 8 independent output channels,
each with 12-bit (1 part in 4095) resolution. The MAO-12 has five standard switch
selectable voltage output ranges as well as 4-20 mA output capability. Provisions have
been made for the installation of additional resistors allowing a wider range of output
gains to be selected. Screw terminals on the board will accept 12 to 22
The MAO-12 connects directly to one of three MetraBus driver cards (MDB-64, MID-64,
or REM-64) and computer via a 50 conductor ribbon cable. The MetraBus cable
connects the MAO-12 to one of the driver cards and carries all data, address, and
status information as well as distributing power on the MetraBus. A total of 20 ground
lines are interleaved among the data and address lines to ensure noise immunity. The
MetraBus system was desi ned to allow MetraBus cable lengths of up to 100 feet.
Remote control of the !i Metra us system is possible via the REM-64 serial driver card at
distances of up to 1.2 Kilometers. The MAO-12 is 19” rack mountable in either a
standard NEMA type enclosure or the MetraByte RMT-02. The MAO-12 may also be
mounted on any flat panel or other flat surface.
Interlaces
Unipolar, Bipolar, and 4-20 mA outputs
12-bil Resolution (1 part in 4095)
Remote signal coimktions
UD 10 64 analog outputs per
Ekremely cost-effetiive
Compatible with most computer languages
directly with IBM PC/XT/AT and compatibles
computer expansion slot
MAO-l 2 is an 8 channel analog output board for use with the MetraBus
AWG wire.
Because of its design, the MetraBus system allows for control of up to 64 analog output
channels (6 MAO-12s) from a single computer expansion slot making it the most cost
effective Industrial Data Acquisition and Control System available.
Some of the more common uses of the MAO-12 include computer control of 4-20 mA
Process Control Equipment, single board Function Generator, ON/OFF Servo Motor
Controller, Digital Attenuator, Vanable voltage source, and much more.
MAO-l 2 Functional Block Diagram
The MAO-12 acts as the interface between your application signals and the MetraBus
driver card and computer. The block diagram below will aid in visualizing control signal
flow from the driver card through the MetraBus cable and out to the MAO-12 and your
application signals.
Auxiliary Power Supply
The MAO-12 requires f15 V in addition to the standard t5 V required by all MetraBus
l/O boards. Therefore a high quality external power supply such as the PWR-55 or
PWR-100 is needed (see current MetraByte Catalog for details of the PWR-55 or
PWR-100). The use of an auxiliary supply in conjunction with the MDB-64 driver card,
requires that fuse Fl be removed from the driver card.
!nstalllng the MetraBus Controller/Driver Card
In order to use your MAO-12 or any other MetraBus I10 board, you must configure and
install one of three interface/driver cards (MDB-64, MID-64. or REM-64). See the
relevant sections of this manual for the installation procedure.
Setting the MAO-12 Board Address
Each MAO-12 connected to a single MetraBus cable must be set to a unique,
non-overlapping MetraBus I/O address. Each of the eight channels on the MAO-12
uses one of the available 64 .MetraBus I/O addresses. The eight channel addresses run
consecutively starting from the MAO-12 Board Address. Setting the Board Address is
outlined below. (The diagram shows a typical BOARD ADDRESS switch setting):
1)
2)
3)
t
2 3
The address DIP switch on the MAO-12 is located above and to the left of the
MetraBus interface connector. The numbers silk-screened above each switch
indicates its value when enabled.
To set the Board Address, simply turn ON those switches corresponding to the
address you have chosen. For example, in order to set a Board Address of 16,
the switch with a value of 16 immediately above it should be turned ON while the
others would remain OFF. The MAO-12 uses 8 of the available 64 MetraBus I/O
addresses. The MAO-12, like all MetraBus I/O boards, requires a non-overlap
ping address in order to avoid address conflicts when being accessed by the
driver card. Since any MetraBus I/O board may be connected to a single
MetraBus cable address overlap is possible. Use caution to avoid this.
After setting the MAO-12 Board Address, you may connect it to the MetraBus
cab\&. It is good practice to remove power from the MetraBus cable prior to
connecting I/O boards. The connectors are keyed for your protection. Check the
keyways for correct alignment prior to plugging in the MetraBus cable. Do not
force the connectors!
2
4)
Reset Respond Jumper
The MAO-12 may be configured to RESET all DAC outputs to 0 volts, CLEAR the
simultaneous update register, and RESET the channel selection to CHO. Placing
jumper J2 over the rightmost two pins will cause the MAO-12 to CLEAR and RESET the
board as defined above, whereas jumper placement over the leftmost two pins will
cause the MAO-1 2 to maintain status quo at power-up or software clear.
MAO-12 Output Range, Polarity, and Reference Selection
Each channel on the MAO-12 can be set at any of 5 standard output ranges (ti.5V,
+5V, f5V, +l OV, fl OV). Range selection is accomplished via a 3 station slide actuated
switch assigned to each channel. The channel/switch assignments are marked an the
MAO-12 and are shown below. The position of each switch with respect to Full Scale
Output Range is also shown below.
If you have only one MAO-12 or if your MAO-12 is last board in your system, you
should install the resistor terminatin networks that were provided with your
MetraBus driver card. The sockets 8 Nl and RN2 on the MAO-12 are for this
urpose. These resistor networks are used to minimize signal reflections due to
P
ong cable lengths. They are optional, however, and have little effect for
MetraBus cables of 50 feet or less.
CH #O-Q SW6
CH #l--z. SW7
CH#2-’ ET!
EL! ii -c
CH #5 1, :bY:
CHiY6 --> ZE CH #7 ->
MAO-12 OUTPUT SIGNAL CONNECTIONS
Output signals from the MAO-12 may be wired directly to the output connector. The
connector has output assignments silk-screened adjacent to their assigned terminals on
the board.
WE
O-1 OVdc
&5Vdc
&2.5Vdc
510 Vdc
3
4-20 mA Output
The MAO-12 has provisions for 4-20 mA current output. This is often useful when
connecting the MAO-12 to certain types of industrial instrumentation. The 4-20 mA
current output consists of a precision current sink formed by a VMOS power FET and
reverse protection diode. The drawing below illustrates such a circuit.
A minimum of 6 volts must be maintained across the output circuit for proper operation.
The maximum voltage across this circuit should not exceed 36 volts for power
dissipation reasons. Therefore, a 36 V or 24 V loop supply such as the ACCULEX
model PSLOOP-175 (24 Vdc @ 175 mA) is ideal.
The 4-20 mA output from the MAO-12 requires that several decisions be made prior to
use. They concern the
or 36V supply is
neede
wa 4 s to configure the process loopwit grounded supply. The ground 3
pe of power supply and its rating. As mentioned above, a 24V
to supply adequate power to the output circuit. There are two
2
rounded
load with floating supply or floating load
supply-floating load configuration allows several
loops to be powered from the same supply but dictates that the load be 2 wire floating.
The wirfng scheme for both of these configurations is illustrated below. Choose the
one which best suits your needs then wire your output accordingly.
1)
Set the channel output range to 5 VFS Unipolar as instructed in the “Output
Range, Polarity, and Reference Selection” section above.
2)
Wire either the (+) side of the Floating supply or one side of the Floating load
(depending upon the configuration chosen) to the I OUT terminal’ of the MAO-12
as illustrated above.
3)
Wire the (-) side of the supply or the other side of the Toad to the Analog RTN
terminal of the MAO-12.
Programming the MAO-1 2
MetraBus Driver Card Terminology:
The following brief discussion of the driver card and its associated functional address
locations is meant as a quick review for MAO-12 users. It is not intended as a
substitute for the expanded discussion concerning specific driver cards. See those
sections of this manual dealing with your specific dnver card for a rigorous treatment of
it functionality.
The driver card uses four consecutive addresses within the computers I/O address
space. Three of these addresses are of importance (the forth is reserved). The factory
default setting of location 768 will be used in the examples.
The three driver card addresses of importance are:
IBM PC I/O
FUNCTION
Data I/O Path (DATAIO)
Address Pointer (ADRPTR)
Software RESET (MRESET)
i$%?%E
Base Address +1
Base Address +2
I OCATION
760
769
770
The Address Pointer (ADRPTR) points to any of 64 consecutive MetraBus locations.
Normally these locations are assigned variable names within a program, making it
easier to change the address later, if desired.
‘MRESET resets all outputs to zero selects CHO, and deselects all channels for
simultaneous update.
5
MAO-1 2 Terminology and Data Format:
Each MAO-12 uses 8 of the available 64 MetraBus locations. Writing data to the
MAO-12, in BASIC, is accomplished using the OUT command. Data is sent (in bytes)
via the DATA10 register to the specific (MAO-12) Board Address after the board has
been targeted via the ADRPTR. The 6 functional MAO-12 locations are specified as
offsets from the Board Address (of the MAO-12). The MAO-12 is double buffered and
contains data latches where output data is held until the update trigger (Board Address
+ 4 thou 7) is written. Outputting data from any channel via the simultaneous update
feature requires that the channel first be selected for simultaneous update (via Board
Address +3). tndividual channels may be updated via the Board Address +O.
The 6 functional addresses and their corresponding function are:
ADDRESS
BOARD ADDRESS+ 0
+l
BOARD ADDRESS+ 2
The Channel Select byte is mapped as follows:
CH Sel Bit
Ii:
DO 1
BOARD + 3 (WRITE ONLY) selects any or all channels for simultaneous update mode.
Channel selection is accomplished by setting the specific bit(s):
07
SIM7 !%t6
: 0 :,
ii
!%M5 EM4
READ
Channel Readback Channel Select
07 06
05 04 03 02 ‘3-C :LB :k-A
CHANNEL#
2 3 4 5 6 7
0 0 1 : :, : :
Al 0 1 0 1
03
SIM3 %M2 ZM1
WRITE
Load DATA (High Byte)
Load DATA (Low Byte)
%MO
BOARD ADDRESS + 4 thru + 7 (WRITE ONLY) are update triggers for previously
selected channels (via BOARD ADDRESS +2 OR +3). When any ot these 4 addresses
IS written, all previously selected DAC’s are updated with data from high and low data
bytes (Board Addresses + 0 and + I).
6
Programming Examples:
For the sake of clarit we will use the variable MAO12, assigning it the board address,
for all data writes an J status reads. For example, in order to write a data value of 192 to
CmHJ we would do the following (the following illustrates MAO-12 usage in the &bit
lOMA012-16
20 DATA10 = 768
30 ADRPTR = 769
40 OUT ADRPTR, MAO1 2+2
50 OUT DATAIO, 5
60 OUT ADRPTR, MAO1 2
70 OUT DATAIO, 192
‘Declare MAO-l 2 MetraBus Address
‘Declare Data I/O location
‘Declare Address Pointer location
‘Point to Channel Select address
‘Select Channel 5 via Data Value (5)
‘Point to HIGH Data Byte
‘Output data
The MAO-12 is controlled using a standard programming sequence as follows:
1)
Target the desired I/O board (MAO-12) via the ADRPTR & Channel Select
location (Board Address + 2)
2)
3)
4)
Select Channel via DATA10 & CH #.
Point to Data Output location via ADRPTR
Write the data value corresponding to the desired function to the DATAIO.
Data is written to the MAO-12 in two byte straight binary (right justified format for the
Unipolar mode and two byte complementary offset binary for the bipolar mode. This is
illustrated in the table below:
HIGH BYTE
LOW BYTE
DATA BITS
DATA
VALUE
Uni
Bipolar
87 B6 B5 B4 B3 B2 Bl BO 87 B6 85 B4
+ VFS - VFS
0 + VFS
:
~LiLi~L!~El
000000000000
4095
2046 + l/2 FS 0
0
The examples below are written using inte
technique and associated functions of the MA
reted BASIC. However, the underlying
‘g
-12 could as easily have been illustrated
using a multitude of other computer languages such as C, PASCAL, Assembly, etc. In
these examples, we assume an MOB-64 driver card at computer l/O address 768 while
the MAO-l 2 has a MetraBus Board Address of 32.
Example 1:
You may have noticed from the example above that voltage output levels are specified
as a function of the Full Scale output Range in conjunction with a D/A resolution of
1Bbits (2*12-l = 4095). While this is often very useful for the computer when
calculating proportional voltage outputs or when describing a ramped output, humans
don’t, generally, think in binary terms so that it is often desirable to specify the output as
an actual voltage and let the computer do the conversion to a data value. Line 70 below
does the conversion from voltage to the corresponding D/A integer. The setup
parameters assumed are Unipolar operation and a Full Range Scale of 5V.
‘Point the CH Select
50 OUT DATAIO, 0 ‘Select Channel 0
60 INPUT”Output Voltaae (CH #O)’
70 VOLTS = INT(VC
,LTS’4096)/5 ‘Convert to lnteaer (Hiah Bvte)
‘;VOLTS
‘Get voltage output level
- \” ,,
i30HBYTEzO ’
90FORI=liTO4STEP-1
‘Set up High Byte loop
100 IF VOLTS =>2”l THEN HIBYTE = HIBYTE + 2A(l-4) ELSE 120
110 VOLTS = VOLTS - 2”l
‘Subtract bit value from Volts
120 NEXT I
130FORl=3TOOSTEP-1
‘Set up low byte loop
140 IF VOLTS =>2”1 THEN LOBYTE = LOBYTE +2A(l+4)
‘Create low byte for output
160 VOLTS = VOLTS - 2”I
‘Subtract bit value from Volts
170 NEXT I
180 OUT ADRPTR, MAO1 2 + 1
190 OUT DATAIO, LOBYTE
200 OUT ADRPTR, MAO1 2
210 OUT DATAIO, HIBYTE
‘Point to Low Byte Location
‘Output Low Byte of Volts
‘Point to High Byte Location
‘Output High Byte of Volts
The D/A output integer is calculated as a simple ratio for both Bipolar and Unipolar
operation:
~~~IP~yf (-10 ‘W&V)
0
1024
2048
4095
+10
4.5
-1:
NOTE: 12-bit output requires two bytes of data; a High byte and a Low byte. Convening
from an output integer to two data bytes is Simply a matter of establishing these two
bytes. If 12-bit precision is not required for your specific application. you may simply
ignore the low byte (it will be output as 0) and use only the high byte.
DATA FORMAT
Data format for the D/A registers is as follows:
Low Byte:
D7 D6 D5 D4 D3 02 Dl DO
(Base Adr +l)
B9 BlO Bll B12 X X X X
F-W
(X = Don’t Care)
D7 D6 D5 D4 D3 D2 Dl DO
Bl B2 B3 84 B5 B6 B7 88
NW
Calibration and Adjustment of the MAO-12
Calibration of the MAO-12 should be performed periodically to maintain it’s inherent
high accurac
recommende .
For laboratory environments, an 8 month to 1 year interval is
For more rigorous conditions where large temperature gradients are
cy.
experienced or where vibration and humidity are prevalent, a 6 month interval is
recommended.
A 5 l/2 digit digital multimeter and small slot head screwdriver are required to perform a
satisfactory calibration.
Using the 5 l/2 digit DMM, adjust the MAO-12 as follows:
Reference Adjustment:
1)
2)
Adjust voltage between TP2 (-SVREF) and TPl (GND) to -5OOOOVDC.
Adjust voltage between TP3 (-1 OVREF) and TPl (GND) to -1 O.OOOVDC.
Voltage Offset Adjustment:
1)
Set the Ran
between “VO &
e Select switch for the desired range and wire the DMM
T” on any output channel and “ANALOG RTN”. Output all
O’s to that channel.
4
3)
4)
For bipolar +/-5V; adjust potentiometer “BIP ZERO ADJ” for 5.OOOV.
For bipolar +/-1OV; adjust “BIP ZERO ADJ” for 1 O.OOOV.
Unipolar operation does not require Offset Adjustment.
Voltage Gain Adjustment:
1)
Set Gain Select switch xl and leave the DMM wired as above.
l’s to the output channel.
4
3)
For bipolar +/-5V; adjust “GAIN ADJ” for -4.9976V.
For bipolar +/-1OV; adjust “GAIN ADJ” for -9.9951V.
Output all
* 4)
5)
For unipolar 0 to 5V; adjust “GAIN-ADJ” for +4.9988V.
For unipolar 0 to 1 OVyadjust “GAIN ADJ” for +9.9976V.
4-20mA Offset and Gain Adjustments:
1)
Set Range Switch for 0 to 5V unipolar, wire the DMM between “IOU? and
“ANALOG GND” of an channel. Output all O’s to that channel.
T” for 4mA of output current.
2)
Adjust “4-20mA ADJU 6
Output all 1 s to the output channel.
Adjust “GAIN ADJUST” for 20mA outout current.
10
SERVICEABLE PARTS
In the unlikely event that service is required, call our technical support department (506
880-3000) for a discussion of the problem. All “critical” components, which may be
damaged by large external transient voltages, are socketed.
MAO-12 SPECIFICATIONS
Output Channels:
Output Ranges:
:to+5v
oto+10v
-2.5 to .t2.5 V
-5 to +5 v
-10 to +lO v
4-20 mA current loop
D/A Resolution:
Relative Accuracy:
Differential Linearity:
Temperature coefficient
.
;;g&.
Voltage output impedance:
Voltage output drive current:
12 bits (1 part in 4095)
l/2 LSB (O.Ol%, max)
l/2 LSB (max)
zt35 ppm per Deg C (Unipolar)
+-55 ppm per Deg C (Bipolar)
z!zlO pm per Deg C