DL205 Analog Manual, 7th Edition Rev. D
9-22
Chapter 9: F2-02DA-2, F2-02DA-2L, 2-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.
Write Data to Both Channels
In the example below, if both selection channels are off, they will be updated with the same
data. Remember to either embed the sign information or use the sign output bit.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
b
C
D
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
X1
ThepermissiveX1activates Y37, whichisthe sign bit.
Thesignbit indicatesthat thevalue is negative.You
coulduse another permissive,suchasaCR, etc. Omit
this rung if youare usingthe0to+4095 outputformat.
OUT
Y35
Y35--ON deselects channel 2(do not update).
Y34--OFF selects channel 1for updating.
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 (you 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
examplestartswit hV40501,but theactualvalue
dependsonthe location of themodule in your
application.
RST
Y34
OUT
Y37
X1
ThepermissiveX1activ ates Y37, whichisthe sign bit.
Thesignbit indicatesthat thevalue is negative.You
coulduse another permissive,suchasaCR, etc. Omit
this rung if youare usingthe0to+4095 outputformat.
RST
Y35
Y34--OFF selects channel 1for updating.
Y35--OFF selects channel 2for updating.