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
SP0
LD
LDA
O2000
OUT
V7673
Loads a constant that specifies the number of channels to scan
and the data format. The upper byte, most significant nibble
(MSN) selects the data format (0=BCD, 8=Binary), the LSN
selects the number of input channels (1, 2, 3, or 4). The lower
byte, most significant nibble (MSN) selects the data format
(0=BCD, 8=Binary), the LSN selects the number of output
channels (1, 2).
The binary format is used for displaying data on some operator
interfaces. The DL230/240 CPUs do not support binary math
functions, whereas the DL250 does.
This constant designates the first V-memory location that will be
used to store the input data. For example, the O2000 entered here
would mean:
Ch1 -- V2000, Ch 2 -- V2001, Ch 3 -- V2002, Ch 4 -- V2003
The constant O2000 is stored here. V7673 is assigned to slot 3 and
acts as a pointer, which means the CPU will use the value in this
location to determine exactly where to store the incoming data.
OUT
V7663
Special V-memory location assigned to slot 3 that contains the
number of input and output channels.
LDA
O2004
OUT
V7703
This constant designates the first V-memory location that will be
used to obtain the analog output data. For example, the O2004
entered here would mean: Ch1 -- V2004, Ch 2 -- V2005.
The constant O2004 is stored here. V7703 is assigned to slot 3 and
acts as a pointer, which means the CPU will use the value in this
location to determine exactly where to obtain the output data.
K0402
LD
K8482
- or -
Summary of Contents for DL205
Page 1: ...DL205 Analog I O Manual Manual Number D2 ANLG M ...
Page 2: ...Notes ...
Page 6: ...Notes ...