DL205 Analog Manual, 7th Edition Rev. D
4-15
Chapter 4: F2-08AD-1, 8-Channel Analog Current 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 was 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.
Single Channel Selected
Since it isn’t necessary to know which channel is selected, the single channel program is even
more simple as shown in the example below.
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 operations
in BCD, so it is best to convert the data to BCD
immediately. You can leave out this instruction
if your application does not require it.
This instruction masks the channel
identification bits. Without this, the values used
will not be correct, so do not forget to include it.
Loads the complete data word into the
accumulator. The V-memory location depends
on the I/O configuration. See Appendix A for
the memory map.
Store Channel 1
LD
V40401
ANDD
KFFF
BCD
OUT
V2000
When X34, X35 and X36 are off, channel 1 data
is stored in V2000.
X36
X34
X35
It is usually easier to perform math operations in
BCD, so it is best to convert the data to BCD
immediately. You can leave out this instruction if
your application does not require it.
This instruction masks the channel identification
bits. Without this, the values used will not be
correct so do not forget to include it.
Loads the complete data word into the
accumulator. The V-memory location depends on
the I/O configuration. See Appendix A for the
memory map.
LD
V40401
ANDD
KFFF
BCD
SP1
X34
X35
X36
Store Channel 1
OUT
V2000
When X34, X35 and X36 are off, channel 1 data
is stored in V2000.
X34
X35
X36
Store Channel 2
OUT
V2001
X34
X35
X36
Store Channel 7
OUT
V2006
X34
X35
X36
Store Channel 8
OUT
V2007
When X34 is on, X35 and X36 are off, and
broken transmitter detect is off, channel 2 data
is stored in V2001.
When X35 and X36 are on and X34 is off,
channel 7 data is stored in V2006.
When X34, X35 and X36 are on, channel 8 data
is stored in V2007.
(repeat for channels 3 -- 6)
Содержание DL205
Страница 1: ...DL205 Analog I O Manual Manual Number D2 ANLG M ...
Страница 2: ...Notes ...
Страница 6: ...Notes ...