Sending Data to
The following two programs show you how to update a single channel. Notice the
One Channel,
DL440/DL450 and DL430 CPUs use slightly different programs, although the
DL440/450
DL430 example will also work with DL440 and DL450 CPUs. Since the DL430 does
5
4
4
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.
430
440
450
This example assumes you already have the data loaded in V3001.
SP1
Select Channel
Enable Outputs
F4–16DA–1 16-Ch. Analog Current Output
The LD instruction loads the data for channel 1 into
LD
the accumulator. Since SP1 is used, this rung
V3001
automatically executes on every scan. You could
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 depends
K12
on the location of the module in your application.
Y36
Turn Y36, Y35, and Y34 off to update Channel 1.
RST
Y36
Y35
Off
Off
Y35
Off
Off
Off
On
RST
Off
On
On
Off
On
Off
Y34
On
On
RST
On
On
Y37
Turn on Y37 to enable all eight output channels of
SET
the first bank.
Y57
Turn off Y57 to disable the second bank of
RST
channels, 9 through 16.
16–13
Y34
Channel
Off
Ch. 1
On
Ch. 2
Off
Ch. 3
On
Ch. 4
Off
Ch. 5
On
Ch. 6
Off
Ch. 7
On
Ch. 8
Need help?
Do you have a question about the DL405 and is the answer not in the manual?
Questions and answers