Download Chapter 8 - AutomationDirect

Transcript
8–21
F3–04DAS 4-Channel Isolated Analog Output
example program continued from previous page
Channel 4
K4
V1400
=
LD
V2003
This rung loads the data for channel 4 into the
accumulator when V1400 = 4.
V3000
The data is stored in V3000 before sending it to
the module.
OUT
LD
K0
V1400 is reset to 0 when V1400 is =4.
OUT
V1400
(
The channel select bit for channel 4 is Y17.
)
LD
V3000
The BIN converts the appropriate analog channel
data to binary for the module.
BIN
ANDD
Kfff
OUTF
K8
Y0
SHFR
K8
Y100
OUTF
K4
The OUTF and SHFR instruction formats the data
and sends the 12 bits of analog data to the analog
module memory address.
F3–04DAS
4 Ch. Isolated Analog Out.
SP1
Y117
OUT