DL205 Analog Manual, 7th Edition Rev. D
11-13
Chapter 11: F2-08DA-2, 8-Channel Analog Voltage 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
The Conversion Program
This example program shows how to write the program to perform the engineering unit
conversion to output data formats 0–4095. 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 with channel 1 into
the accumulator. This example assumes the numbers are BCD. Since
SP1 is used, this rung automatically executes on every scan. You could
also use an X, C, etc. permissive contact.
LD
V2300
SP1
MUL
K4095
DIV
K1000
Multiply the accumulator by 4095 (to start the conversion).
Divide the accumulator by 1000 (because we used a multiplier of 10,
we have to use 1000 instead of 100).
OUT
V2000
Store the BCD result in V2000 (the actual steps required to send the
data are shown later).
The LD instruction loads the engineering units used with channel 2 into
the accumulator. This example assumes the numbers are BCD. Since
SP1 is used, this rung automatically executes on every scan. You could
also use an X, C, etc. permissive contact.
LD
V2301
SP1
MUL
K4095
DIV
K1000
Multiply the accumulator by 4095 (to start the conversion).
Divide the accumulator by 1000 (because we used a multiplier of 10,
we have to use 1000 instead of 100).
OUT
V2001
Store the BCD result in V2001 (the actual steps required to send the
data are shown later).
Summary of Contents for DL205
Page 1: ...DL205 Analog I O Manual Manual Number D2 ANLG M ...
Page 2: ...Notes ...
Page 6: ...Notes ...