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
The LD instruction loads the data into the
accumulator. Since SP1 is used, this rung
automatically executes on every scan.
Permissive contacts X, C, etc. could also be used.
The BIN instruction converts the accumulator data
to binary (omit this step a if is already in binary format).
The OUT instruction writes the data to the module output.
This example starts with V40501, but the actual value
depends on the location of the module in your application.
RST
Y34
ANDD
K0FFF
This AND Double instruction logically ANDs the
accumulator with the constant FFF. It keeps the
data from affecting channel select bits.
OUT
Y35
Y34--OFF selects channel 1 for updating.
Y35--ON deselects channel 2 (do not update).
BIN
SP1
LD
V2000
OUT
V40501
The LD instruction loads the data into the
accumulator. Since SP1 is used, this rung
automatically executes on every scan.
Permissive contacts X, C, etc. could also be used.
The BIN instruction converts the accumulator data
to binary (omit this step a if is already in binary format).
The OUT instruction writes the data to the module output.
This example starts with V40501, but the actual value
depends on the location of the module in your application.
RST
Y34
ANDD
K0FFF
This AND Double instruction logically ANDs the
accumulator with the constant FFF. It keeps the
data from affecting channel select bits.
Y35
Y34--OFF selects channel 1 for updating.
Y35--ON deselects channel 2 (do not update).
RST
Содержание DL205
Страница 1: ...DL205 Analog I O Manual Manual Number D2 ANLG M ...
Страница 2: ...Notes ...
Страница 6: ...Notes ...