Creating Programs
4.3 Analog Output Unit (FP0R-DA4)
4.3.1 Writing of Digital Data for Output (12-bit Mode)
With the analog output unit, the conversion output is performed by using two bits as the
switching flags of output channels and writing data.
I/O allocation (12-bit FP0-A04 Compatibility mode)
Two bits, the bits C and D, are used as the switching flags.
X
X
X
X
X
X
X
X
3
3
3
3
3
3
3
3
F
E
D
C
B
A
9
8
A
A
Output data of CH1/CH3
1
0
Output data switching flag
A1
A0
0
0
D/A conversion: None
0
1
CH1data
1
0
CH3 data
1
1
D/A conversion: None
Writing conversion data
• The analog output unit writes the analog output digital data of a maximum of 4 channels to
two memory areas (WY2/WY3) by user programs. Output data switching flags for specifying
channels are allocated to the two bits of the memory area (WY2/WY3).
• In user programs, channels are specified by setting/resetting the output channel swtiching
flag right after setting a digital value in the memory area.
• As CH0 and CH2, and CH1 and CH3 use each common memory area, data cannot be
written to the unit in the same scan. Write data separated into two scans using scan pulse
relay R9012, etc. In the channels which are not allocated to the same memory area, data
can be written in the same scan.
Example
Processing
Writing CH0 data in WY2 at the time of "n" scan
When CH0 and
CH1 are used
Writing CH1 data in WY3 at the time of "n" scan
Writing CH0 data in WY2 at the time of "n" scan
When CH0 and
CH2 are used
Writing CH2 data in WY2 at the time of "n+1" scan
4-8
X
X
X
X
X
X
X
X
3
3
3
3
3
3
3
3
7
6
5
4
3
2
1
0
(12bit)
WY3
X
X
X
X
X
X
X
X
2
2
2
2
2
2
2
2
F
E
D
C
B
A
9
8
A
A
Output data of CH0/CH2
1
0
Output data switching flag
A1
A0
0
0
D/A conversion: None
0
1
CH0 data
1
0
CH2 data
1
1
D/A conversion: None
Description
Data can be written in WY2 and WY3 at
the time of "n" scan.
Data can be written in WY2 once in 2
scanning processes (at the time of "n"
and "n+1" scan).
X
X
X
X
X
X
X
X
2
2
2
2
2
2
2
2
7
6
5
4
3
2
1
0
(12bit)
WY2