DL205 Analog Manual, 7th Edition Rev. D
2-18
Chapter 2: F2-04AD-1, F2-04AD-1L, 4-Channel Analog Current Input
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
The Conversion Program
The following example shows how to write the program to perform the engineering unit
conversion. This example assumes that the data is in BCD and loaded into the appropriate
V-memory locations using instructions that apply the CPU being used in the PLC.
NOTE:
This example uses SP1, which is always on, but any permissive contact such as, X, C, etc., can be used.
Analog and Digital Value Conversions
Sometimes it is useful to be able to quickly convert between the signal levels and the digital
values. This is especially helpful during machine startup or troubleshooting. The following
table provides formulas to make this conversion more simple.
As an example, if the measured signal is 10 mA,
the formula can be used to easily determine the
digital value that will be stored in the V-memory
location that contains the data.
LD
V2000
SP1
MUL
K1000
DIV
K4095
When SP1 is on, load channel 1 data to the accumulator.
Multiply the accumulator by 1000 (to start the conversion).
Divide the accumulator by 4095.
OUT
V2010
Store the result in V2010.
Range
If the digital value is known
If the analog signal level is known.
4 – 20 mA
A = 16D + 4
4095
D = 4095 (A - 4)
16
D = 4095 (A – 4)
16
D = 4095 (10mA – 4)
16
D = (255.93) (6)
D = 1536
Содержание DL205
Страница 1: ...DL205 Analog I O Manual Manual Number D2 ANLG M ...
Страница 2: ...Notes ...
Страница 6: ...Notes ...