DL205 Analog Manual, 7th Edition Rev. D
8-16
Chapter 8: F2-02DA-1, F2-02DA-1L, 2-Channel Analog Current Output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The Conversion Program
The example program shows how to write the program to perform the engineering unit
conversion. This example assumes that a BCD value has been stored in V2300 and V2301 for
channels 1 and 2 respectively.
NOTE: The DL205 has many instructions available so that math operations can simply be performed using BCD format. Do
the math in BCD, then convert to binary before writing to the module output.
TheLDinstruction loads the engineering units used for channel 1to
theaccumulator. This exampleassumesthe numbers areBCD. Since
SP1 is used, this rung automatically executes on every scan. A permissive
contact, such as, an X, C, etc. can also be used.
LD
V2300
SP1
MUL
K4095
DIV
K1000
Multiply theaccumulator by 4095 (tostart theconversion).
Divide theaccumulator by 1000 (becauseamultiplierof 10 was used,
1000 is used instead of 100).
OUT
V2000
Storethe BCDresult in V2000(theactualsteps to writethe data
were shown earlier).
TheLDinstruction loads the engineering unitsusedfor channel 2to
theaccumulator. This exampleassumesthe numbers areBCD. Since
SP1 is used, this rung automatically executes on every scan. A permissive
contact, such as, an X, C, etc. can also be used.
LD
V2301
SP1
MUL
K4095
DIV
K1000
Multiply theaccumulator by 4095 (tostart theconversion).
OUT
V2001
Storethe BCDresult in V2001(theactualsteps to writethe data
were shown earlier).
Divide theaccumulator by 1000 (becauseamultiplierof 10 was used,
1000 is used instead of 100).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D