14–18
F4–04DA–2 Analog Voltage Output
Sequencing
Example 1,
DL440/450
5
4
4
430
440
450
The following program example shows how to send digital values to the module
when you have more than one channel. This example assumes you already have
the data loaded in V3001, V3002, V3003, and V3004 for channels 1 – 4
respectively. It is important to use the rungs in the order shown for the program to
work. This example will not work with DL430 CPUs.
Ch4. Done
C4
Ch3. Done
C3
Ch2. Done
C2
Ch1. Done
C1
Restart
C0
C1
C2
C3
C4
SP1
Select Channel,
C3
Binary Encoded
C4
C2
C4
SP1
Enable Outputs
When channel 4 has been updated, C0 restarts the
C0
update sequence.
OUT
When channel 3 has been updated, this rung loads
LD
the data for channel 4 into the accumulator. By
V3004
turning on C4, this triggers the channel update (see
the channel select rungs).
C4
OUT
When channel 2 has been updated, this rung loads
LD
the data for channel 3 into the accumulator. By
V3003
turning on C3, this triggers the channel update (see
the channel select rungs).
C3
OUT
When channel 1 has been updated, this rung loads
LD
the data for channel 2 into the accumulator. By
V3002
turning on C2, this triggers the channel update (see
the channel select rungs below).
C2
OUT
This rung loads the data for channel 1 into the
LD
accumulator. C0 restarts the sequence after
V3001
channel 4 is done (see the top rung). The first scan
or any interruption in control relay sequencing is
C1
detected when control relays C1 through C4 are off.
OUT
In this case, we also start the sequence with
channel 1.
This rung converts the accumulator data to binary
BIN
(you must omit this step if you've already converted
the data elsewhere). It also loads the data to the
appropriate bits of the data word. Our example
starts with Y20, but the actual value depends on the
OUTF
Y20
location of the module in your application.
K12
Y35
OUT
Set Y35 and Y34 to select the output channel,
based on the control relay status.
CR(on)
Y35
C1
Off
C2
Off
C3
On
Y34
C4
On
OUT
Y36
OUT
Enables all four output channels. SP1 is always on.
Y34
Channel
Off
Ch. 1
On
Ch. 2
Off
Ch. 3
On
Ch. 4
Need help?
Do you have a question about the DL405 and is the answer not in the manual?
Questions and answers