DL205 Analog Manual, 7th Edition Rev. D
8-14
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
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.
Write Data to Both Channels
In the example below, if both selected channels are off, they will be updated with the same
data.
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.
Permissive contacts X, C, etc. could also be used.
TheBIN instruction converts theaccumulator data
to binary (omitthis step aif is already in binary format).
TheOUT instruction writes thedatatothe module output.
This example starts with V40501, but theactual value
dependsonthe location of themodule in your application.
RST
Y34
ANDD
K0FFF
This ANDDoubleinstruction logically ANDs the
accumulator with theconstantFFF.Itkeepsthe
datafromaffecting channelselectbits.
OUT
Y35
Y34--OFF selects channel 1for updating.
Y35--ON deselects channel 2(do not update).
BIN
SP1
LD
V2000
OUT
V40501
TheLD instruction loadsthe data intothe
accumulator.Since SP1 is used, this rung
automatically executes on every scan.
Permissive contacts X, C, etc. could also be used.
TheBIN instruction converts theaccumulator data
to binary (omitthis step aif is already in binary format).
TheOUT instruction writes thedatatothe module output.
This example starts with V40501, but theactual value
dependsonthe location of themodule in your application.
RST
Y34
ANDD
K0FFF
This ANDDoubleinstruction logically ANDs the
accumulator with theconstantFFF.Itkeepsthe
datafromaffecting channelselectbits.
Y35
Y34--OFF selects channel 1for updating.
Y35--ON deselects channel 2(do not update).
RST