Sequencing
This example shows how to send digital values to the module when you have more
Example 1,
than one channel. This example assumes you already have the data loaded in
DL430/440/450
binary format in V3001, V3002, V3003, and V3004 for channels 1 – 4 respectively
4
4
4
(note that these locations are in a range of 0–FFFF hex). It is important to use the
rungs in the order shown for the program to work.
430
440
450
Ch4. Done
Ch3. Done
Ch2. Done
Ch1. Done
Restart
F4–04DAS–1 4-Channel Isolated 4–20mA Output
C4
C3
C2
C1
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 loads the data to the appropriate bits of
OUT
the data word. Our example starts with Y20, but the
V40501
actual value depends on the location of the module
in your application.
Y41
OUT
Set Y41 and Y40 to select the output channel,
based on the control relay status.
CR(on)
Y41
C1
Off
C2
Off
C3
On
Y40
C4
On
OUT
Y57
OUT
Enables all four output channels. SP1 is always on.
17–13
Y40
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