Sending Data To One Channel - Automation Direct DL405 User Manual

Analog
Hide thumbs Also See for DL405:
Table of Contents

Advertisement

13–12
F4–04DA–1 Analog Current 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 requires 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 with DL440 and DL450
CPUs. This example assumes you already have the data loaded in V3001.
DL440/DL450 Example
SP1
Select Channel
Enable Outputs
DL430 Example
SP1
Select Channel
Enable Outputs
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.
Y35
Turn Y35 off and Y34 off to update Channel 1.
RST
Y35
Y34
Off
Off
Y34
Off
On
RST
On
Off
On
On
Y36
SET
Turn on Y36 to enable all four 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 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
Turn Y35 off and Y34 off to update Channel 1.
RST
Y35
Y34
Off
Off
Y34
Off
On
RST
On
Off
On
On
Y36
SET
Turn on Y36 to enable all four output channels.
Channel
Ch. 1
Ch. 2
Ch. 3
Ch. 4
Channel
Ch. 1
Ch. 2
Ch. 3
Ch. 4

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

Subscribe to Our Youtube Channel

Table of Contents