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.
The LD instruction loads the engineering units used for channel 1 to
the accumulator. This example assumes the numbers are BCD. 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 the accumulator by 4095 (to start the conversion).
Divide the accumulator by 1000 (because a multiplier of 10 was used,
1000 is used instead of 100).
OUT
V2000
Store the BCD result in V2000 (the actual steps to write the data
were shown earlier).
The LD instruction loads the engineering units used for channel 2 to
the accumulator. This example assumes the numbers are BCD. 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 the accumulator by 4095 (to start the conversion).
OUT
V2001
Store the BCD result in V2001 (the actual steps to write the data
were shown earlier).
Divide the accumulator by 1000 (because a multiplier of 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
Содержание DL205
Страница 1: ...DL205 Analog I O Manual Manual Number D2 ANLG M ...
Страница 2: ...Notes ...
Страница 6: ...Notes ...