DL205 Analog Manual, 7th Edition Rev. D
11-14
Chapter 11: F2-08DA-2, 8-Channel Analog Voltage Output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Writing Values: Pointer Method and Multiplexing
Two methods are used to read data values in the DL205, pointer and multiplexing. When to
use either method and how to use it will be discussed here. Since the pointer method will not
work if the PLC has a DL230 installed, only the multiplexing method can be used. Either
method for reading the data values can be used with the DL240, DL250-1 and DL260 CPUs,
however, the pointer method will simplify programming the PLC.
Writing Values (Pointer Method) for the DL240, DL250-1 and DL260 CPUs
Once the data values have been calculated they must be entered into the program in order to
output the values. The DL205 series has special V-memory locations assigned to each base slot
that will greatly simplify the programming requirements. With these V-memory locations, the
number of channels to update are specified, also, where to read the data that is written to the
output is specified.
NOTE: DL240 CPUs with firmware release version 3.0 or later and. DL250 CPUs with firmware release version 1.33 or
later support this method.
The following example program 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.
This is all that is required to write the data to V-memory locations. Once the data has been
written to V-memory math can be used on the data, compare the data against preset values, etc.
V2000 is used in the example but any user V-memory location can be used. In this example the
module is installed in slot 3. Be sure to use the V-memory locations for the module placement.
The pointer method automatically converts values to BCD.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D
SP0
LD
K
LDA
O2000
OUT
V7703
This loads an octalvalue forthe firstV-memorylocationthat will be
used to storethe output data. Forexample,the O2000 entered here
would designatethe following addresses:
Ch1--V2000, Ch 2--V2001.....Ch8 -- V2007
OUT
V7663
Special V-memory location assignedtoslot3that c ontains the
numberofchannelsto scan.
LD
Loadsaconstant that specifies the numberofchannelstoscan and
thedataformat.The lowerbyte, most s ignificantnibble (MSN)
selects the dataformat(0=BCD, 8=Binary),the LSNselects the
numberofchannels(1--8).
-or-
Thebinaryformatisusedfor displayingdataonsomeoperator
interfaces.The DL230/240 CPUs do notsupport binarymath
functions, whereasthe DL250 does.
8 K 88
Theoctal address(O2000)isstoredhere. V7703isassignedtoslot
3 and ac ts as a pointer,whichmeans theCPU will usethe octal
value in this location to determine exactlywheretostore the output
data.