DL205 Analog Manual, 7th Edition Rev. D
13-13
Chapter 13: F2-02DAS-2, 0-5V, 0-10V, 2-Channel Isolated Analog Output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Read Data 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 CPU 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.
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. By using these V-memory
locations, the number of channels to update are specified, also, where to obtain the output
data 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.
In this example V2000 and V2002 are used to store the calculated values, the analog 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 binary.
SP0
LD
K
LDA
O2000
OUT
V7703
This loads an octal value for the first V-memory location that will be
used to store the output data. For example, the O2000 entered here
would designate the following addresses.
Ch1 -- V2000, Ch2 -- V2002
OUT
V7663
Special V-memory location assigned to slot 3 that contains the
number of channels to scan.
LD
Loads a constant that specifies the number of channels to scan and
the data format. The lower byte, most significant nibble (MSN)
selects the data format (i.e. 0=BCD, 8=Binary), the LSN selects the
number of channels (1 or 2).
- or -
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.
2
K82
The octal address (O2000) is stored here. V7703 is assigned to slot
3 and acts as a pointer, which means the CPU will use the octal
value in this location to determine exactly where to store the output
data.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D
Содержание DL205
Страница 1: ...DL205 Analog I O Manual Manual Number D2 ANLG M ...
Страница 2: ...Notes ...
Страница 6: ...Notes ...