14–16
F4–04DA–2 Analog Voltage Output
Sending Data to
One Channel
5
4
4
430
440
450
4
4
4
430
440
450
The following programs show you how to update a single channel. Notice the
DL430 CPU uses a slightly different program than the DL440 and DL450 CPUs.
Since the DL430 does not support the OUTF instruction, the program must be
modified to make sure the channel select bits are not accidentally changed by the
data in the accumulator. The DL430 example will also work for DL440 and DL450
CPUs. This example assumes you already have the data loaded in V3001.
DL440/450 Example
SP1
Select Channel 1
Enable Outputs
DL430 Example
SP1
Select Channel 1
Enable Outputs
The LD instruction loads the data for channel 1 into
the accumulator. Since SP1 is used, this rung
LD
automatically executes on every scan. You could
V3001
also use an X, C, etc. permissive contact.
The BIN instruction converts the accumulator data
BIN
to binary (you must omit this step if you've already
converted the data elsewhere).
The OUTF sends the 12 bits to the data word. Our
OUTF
Y20
example starts with Y20, but the actual value
K12
depends on the location of the module in your
application.
Y34
Select channel 1 for updating.
RST
Y35
Y34
Off
Off
Y35
Off
On
RST
On
Off
On
On
Y36
OUT
Turn on the output enable bit, to enable all output
channels.
The LD instruction loads the data for channel 1 into
the accumulator. Since SP1 is used, this rung
LD
automatically executes every scan. You could also
V3001
use an X, C, etc. permissive contact.
The BIN instruction converts the accumulator data
BIN
to binary (you must omit this step if you've already
converted the data elsewhere).
The ANDD instruction masks off the channel select
ANDD
bits to prevent an accidental channel selection.
KFFF
The OUT insttruction sends the data to the module. Our
OUT
example starts with V40501, but the actual value
V40501
depends on the location of the module in your
application.
Y34
Select channel 1 for updating.
RST
Y35
Y34
Y35
Off
Off
Off
On
RST
On
Off
On
On
Y36
OUT
Turn on the output enable bit, to enable all output
channels.
Channel
Ch. 1
Ch. 2
Ch. 3
Ch. 4
Channel
Ch. 1
Ch. 2
Ch. 3
Ch. 4
Need help?
Do you have a question about the DL405 and is the answer not in the manual?
Questions and answers