Automation Direct DL405 User Manual page 231

Analog
Hide thumbs Also See for DL405:
Table of Contents

Advertisement

Sending the
The following programs show you how to update all channels with the same data.
Same Data to
The primary difference from the previous example programs is that you do not have
All Channels
to include the channel selection bits. By leaving the selection bits off, the module
5
4
4
uses the same data to update all the channels.
Notice the DL440 and DL450 CPUs require slightly different programs than the
430
440
450
DL430 CPU. 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 with DL440 and
DL450 CPUs. This example assumes you already have the data loaded in V3001.
DL440/450 Example
4
4
4
DL430 Example
430
440
450
SP1
All channel
selection bits
removed
SP1
All channel
selection bits
removed
F4–04DA 4-Channel Analog Output
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.
Y35
Y34 – Y37 must be off.
OUT
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 ANDD instruction masks off the channel select
ANDD
bits to prevent an accidental channel selection.
KFFF
The OUT instruction 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.
Y35
Y34 – Y37 must be off.
OUT
12–15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DL405 and is the answer not in the manual?

Questions and answers

Table of Contents