DL205 Analog Manual, 7th Edition Rev. D
13-15
Chapter 13: F2-02DAS-2, 0-5V, 0-10V, 2-Channel Isolated Analog Output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Write Data Example (Multiplexing)
Since all channels are multiplexed into a single data word, the control program can be setup
to determine which channel to write the data to. Since the module appears as Y output points
to the CPU, it is simple to use the channel selection outputs to determine which channel to
update.
Note, this example is for a module installed in slot 3, as shown in the previous examples. The
addresses used would be different if the module was used in a different slot. These rungs can
be placed anywhere in the program or if stage programming is being used, place them in a
stage that is always active.
This example is a two-channel multiplexer that updates each channel on alternate scans. Relay
SP7 is a special relay that is on for one scan, then off for one scan. This multiplexing example
can be used with all of the DL205 CPUs.
NOTE: Binary data must be sent to the output module. If the data is already in binary format,do not use the BIN instruction
shown in this example.
OUT
Y41
Loadsthe dat afor channel 1 intothe accumulator.
Load data into theaccumulator.
SP7
SP1
Send data to V-memory assigned to themodule.
BIN
Convertthe data to binary(youmustomitthis
step if you haveconvertedthe data elsewhere).
SP1 is always on.
OUT
V40501
LD
V2000
SP7
LD
V2002
Loadsthe dat afor channel 2 intothe accumulator.
TheOUT instruction sends the datatothe
module. Ourexample starts with V40501, but the
actual value dependsonthe locationofthe
moduleinyour application.
SP7
OUT
Y40
SP7
Select thechannel to update.
Selects channel2for update when Y41isOFF
(Y40--ON deselects channel 1).Note, Y40and Y41
areusedasinthe previous examples. If themodule
wasinstalledinadifferent I/O arrangement the
addresseswould be different.
Selects channel1for update when Y41isOFF
(Y41--ON deselects channel 2).Note, Y40and
Y41are used as in thepreviousexamples.Ifthe
modulewas installed inadifferent I/O arrangement
theaddresseswould be different.
Note:Use LD if usingbinary, and useLDD if usingBCD.
Note:Use LD if usingbinary, and useLDD if usingBCD