DL205 Analog Manual, 7th Edition Rev. D
11-18
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
Write Data to One Channel
The following example can be used if only one channel is to be written to, or if the outputs
are to be controlled individually. Don’t forget to either embed the sign information or use the
sign output bit for bipolar ranges.
Analog and Digital Value Conversions
It is sometimes useful to do quick conversions between the signal levels and the digital values.
This can be helpful during startup or troubleshooting. The following table shows some
formulas to help with the conversions.
For example, if a 0–10V range is used, and a 6V
signal level is needed, use the formula to the right
to determine the digital value “D” to be stored in
the V-memory location which contains the data.
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
Range If the digital value is known If the analog signal level is known.
0 – 10V
A =
10D
4095
D =
4095
(A)
10
0 – 5V
A =
5D
4095
D =
4095
(A)
5
D =
4095
(A)
10
D =
4095
(6V)
10
D = (409.5) (6)
D = 2457
BIN
SP1
LD
V2000
OUT
V40501
TheLD instruction loadsthe data intothe
accumulator.Since SP1 is used, this rung
automatically executes on every scan. Youcould
alsouse an X, C, etc. permissive contact.
TheBIN instruction converts theaccumulator data
to binary (y ou must omit this step if youhave
already convertedthe data elsewhere).
ANDD
K0FFF
TheANDD instructionmasks offthe channelselect
bitstoprevent an accidental channelselection.
TheOUT instruction sends the datatothe module.Ou
examplestartswithV40501,but theactualvalue
dependsonthe location of themodule in your
application.
RST
Y34
OUT
Y37
Y37isthe output enablebit.
RST
Y36
Y34, Y35, Y36--OFF selectschannel 1for updating.
RST
Y35