DL205 Analog Manual, 7th Edition Rev. D
5-17
Chapter 5: F2-08AD-2, 8-Ch. Analog Voltage Input
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Reading Values (Multiplexing) for the DL230, DL240, DL250-1 and DL260
The DL230 CPU does not have the special V-memory locations which will allow data transfer
to be automatically enabled. Since all channels are multiplexed into a single data word, the
control program must be setup to determine which channel is being read. Since the module
appears as X input points to the CPU, it is very easy to use the active channel status bits to
determine which channel is being monitored.
NOTE: This example is for a module installed as shown in the previous examples. The addresses used would be different
if the module is installed in a different I/O arrangement. The rungs can be placed anywhere in the program, or if stage
programming is being used, place them in a stage that is always active.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D
It is usually easier to perform math operationsin
BCD, so it is besttoconvert thedatatoBCD
immediately. Youcan leave out this instructionif
your application does not require it.
This instruction masks thechannel identification
bits. Without this,the values used will not be
correct so do notforget to include it.
Loadsthe complete datawordintothe
accumulator. TheV-memorylocation depends on
theI/O configuration. SeeAppendixAforthe
memory map.
LD
V40401
ANDD
KFFF
BCD
SP1
X34 X35 X36
StoreChannel 1
OUT
V2000
When X34, X35 and X36are off, channel1data
is stored in V2000.
X34 X35 X36
StoreChannel2
OUT
V2001
X34 X35 X36
StoreChannel 7
OUT
V2006
X34 X35 X36
StoreChannel 8
OUT
V2007
When X34ison, X35and X36are off, and
broken transmitterdetectisoff,channel2data
is stored in V2001.
When X35 and X36are on and X34isoff,
channel7dataisstoredinV2006.
When X34, X35 and X36are on, channel8data
is stored in V2007.
(repeatfor channels 3--6)