Automation Direct DL405 User Manual page 282

Analog
Hide thumbs Also See for DL405:
Table of Contents

Advertisement

Example 3
Continued
V1500
=
Set the Output Enable bit, by combining the value of 4000 hex with the
ORD
accumulator value. This sets bit 14 to "1", enabling all channels.
K4000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Earlier in the program the data value was placed into the first data
ADDBS
stack location. The ADDBS instruction adds the value currently in the
accumulator with the value in the first data stack location.
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Stack
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Send the lower 15 bits stored in the accumulator to the analog module.
OUTF
Y20
The lowest 12 bits contain the analog data. Bits 12 and 13 are the
K15
channel selection bits. Bit 14 is the Output Enable bit.
Increment the channel selection value. This allows the logic to cycle
INCB
through all four channels.
V1500
K4
When channel four has been updated, then reset the channel selection
LD
memory location to 0 (remember, 0 represents channel 1).
K0
OUT
V1500
F4–04DA–2 Analog Voltage Output
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0
+
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 1 0 0 1 0 0 1 0 1 0 0 1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 1 0 1 1 0 0 1 0 0 1 0 1 0 0 1
Data for Analog Module
14–21

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DL405 and is the answer not in the manual?

Questions and answers

Table of Contents