Writing Of Digital Data For Output (14-Bit Mode) - Panasonic FP0R Series User Manual

Analog i/o unit
Hide thumbs Also See for FP0R Series:
Table of Contents

Advertisement

Creating Programs

4.3.2 Writing of Digital Data for Output (14-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 (14-bit mode)
In the 14-bit mode, the most significant two bits are used as the switching flags. They are
common to the flags for setting ranges.
Y
Y
Y
Y
Y
Y
3
3
3
3
3
3
F
E
D
C
B
A
A
A
Output data of CH1/CH3 (14bit)
1
0
A1
A0 Item
0
0
CH1 output range setting
0
1
CH1 output data
1
0
CH3 output data
1
1
CH3 output range setting
 Writing data for conversion
• 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-14
Y
Y
Y
Y
Y
Y
Y
Y
3
3
3
3
3
3
3
3
9
8
7
6
5
4
3
2
Range setting
Y
Y
Y
Y
Y
3
3
2
2
2
1
0
F
E
D
A
A
Output data of CH0/CH2 (14bit)
1
0
A1
A0 Item
0
0
CH0 output range setting
0
1
CH0 output data
1
0
CH2 output data
1
1
CH2 output range setting
Y
Y
Y
Y
Y
Y
Y
Y
2
2
2
2
2
2
2
2
C
B
A
9
8
7
6
5
Range setting
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).
Y
Y
Y
Y
Y
2
2
2
2
2
4
3
2
1
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Afp0rad4Afp0rad8Afp0ra21Afp0ra42Afp0rda4

Table of Contents