F
3-
-1
6A
D
16
-C
ha
nn
el
A
na
lo
g
In
pu
t
5--16
F3--16AD 16-Channel Analog Input
The example below shows how to read multiple channels on an F3--08AD Analog
module in the 20--27/120--127 address slot. This module must be placed in a 16 bit
slot in order to work.
This sends channel one analog data to
V3000 when bits X124, X125, X126
and X127 are as shown.
LD
_On
LDF
K8
X120
This rung loads the upper byte of analog data from
the module.
Load the data
SP1
BCD
V2200
Channel 1 Select Bit States
SHFL
ANDD
ORF
K8
X20
K8
Kfff
The ORF X20 brings the lower byte of data from
the module into the accumulator. At this time there
is a full word of data from the analog module in the
accumulator.
SHFL K8 shifts the data to the left eight places to
make room for the lower byte of data.
The ANDD Kfff masks off the twelve least
significant bits of data from the word. This is the
actual analog value.
The BCD command converts the data to BCD
format.
X125
X124
X126 X127
OUT
V2200
Stores the data in V2200.
OUT
V3000
This sends channel two analog data to
V3000 when bits X124, X125, X126
and X127 are as shown.
LD
V2200
Channel 2 Select Bit States
X125
X124
X126 X127
OUT
V3001
This sends channel two analog data to
V3000 when bits X124, X125, X126
and X127 are as shown.
LD
V2200
Channel 3 Select Bit States
X125
X124
X126 X127
OUT
V3002
DL350 with a
Conventional
DL305 Base