DL205 Analog Manual, 7th Edition Rev. D
14-16
Chapter 14: F2-4AD2DA, 4-Ch. In / 2-Ch. Out Analog Combination
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Read / Write Program for the DL240, DL250-1 and DL260 CPUs (Pointer Method)
The DL240, DL250-1 and DL260 CPUs have special V-memory locations assigned to each
base slot that simplifies the programming requirements. These V-memory locations:
• specify the number of input and output channels to scan.
• specify the storage location for the input data.
• specify the source location for the output data.
NOTE: In order to use the pointer method, DL250 CPUs must have firmware revision 1.09 or later, and F2-4AD2DA
modules must be revision C1 or later
The following example rung of logic shows how to setup these locations. Place this rung
anywhere in the ladder program, or in the initial stage if stage programming instructions are
being used.
In this example V2000 and V2004 are used to store the calculated values, but any V-memory
location can be used. For this example, the analog module is installed in slot 3. Be sure to use
the V-memory locations for which ever slot the module is placed in your system. The pointer
method automatically converts values to binary.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D
LD
LDA
O2000
OUT
V7673
Loads aconstantthatspecifies the numberofchannelstoscan
and the dataformat. The upperbyte, most significant nibble
(MSN)selects the dataformat(0=BCD, 8=Binary),the LSN
selects the number of input channels(1, 2, 3, or 4).The lower
byte,mostsignificant nibble (MSN)selects the dataformat
(0=BCD, 8=Binary), theLSN selects the numberof output
channels(1, 2) .
Thebinaryformatisusedfor displaying dataonsome operator
interfaces.The DL230/240 CPUs do not supportbinarymath
functions, whereas theDL250 does.
This constant designatesthe firstV-memory locationthatwill be
used to storethe input data. Forexample,the O2000 entered here
would mean:
Ch1--V2000, Ch 2--V2001, Ch 3--V2002,Ch4-- V2003
Theconstant O2000isstored here. V7673isassigned to slot 3 and
acts as a pointer,whichmeansthe CPUwilluse thevalue in this
locationtodetermine exac tlywheretostore theincoming data.
OUT
V7663
Special V-memory location assignedtoslot3that contains the
numberofinput and output channels.
LDA
O2004
OUT
V7703
This constant designatesthe firstV-memorylocationthatwillbe
used to obtain the analog outputdata. Forexample, theO2004
entered here wouldmean: Ch1--V2004,Ch2-- V2005.
Theconstant O2004isstored here. V7703isassigned to slot 3 and
acts as a pointer,whichmeansthe CPUwilluse thevalue in this