DL205 Analog Manual, 7th Edition Rev. D
12-12
Chapter 12: F2-02DAS-1, 4-20mA Isolated 2-Channel Analog Current Output
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
Engineering Units Conversion
This example program shows how to write the program to perform the engineering unit
conversion to output data formats 0–65535 when using a DL250 CPU. This example assumes
that a BCD value has been stored in V2300 for channel 1.
TheLDinstruction loads the engineering unitsusedwithchannel 1 into
theaccumulator.This exampleassumesthe numbers areBCD.Since
SP1 is used, this rung automatically executes on every scan.
could alsobe used as a permissive contact.
LD
V2300
SP1
BIN
BTOR
ConvertBCD numberto binary number.
Convertbinary numbertoreal number.
MULR
R65535
Multiply theaccumumlator by 65535 to startthe conversion.
Divide theaccumulator by 1000(1000 = 100.0%).
DIVR
R1000
RTOB
BCD
Convertthe result to binary.
Convertthe result to BCD.
OUTD
V2000
Storethe BCD double word result in V2000/V2001.