Analog Input Unit (Fp0R-Ad4/Ad8); Reading Of Input Data (Common To 12-Bit Mode And 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.2 Analog input unit (FP0R-AD4/AD8)

4.2.1 Reading of Input Data (Common to 12-bit Mode and 14-bit Mode)

The analog input unit uses the most significant 2 bits as a flag for switching channels and
reads conversion data sequentially.
 I/O allocation (External input WX)
X
X
X
X
X
X
X
X
3
3
3
3
3
3
3
3
F
E
D
C
B
A
9
8
Conversion data of
A
A
CH1/CH3/CH5/CH7
1
0
(14 bit with sign)
Conversion data switch flag
A1
A0
WX3
0
0
CH1 data
0
1
CH3 data
1
0
CH5 data
1
1
CH7 data
 Role of conversion data switching flag
• The analog input unit reads the analog input data of a maximum of 8 channels using two
memory areas (WX2 and WX3). The most significant two bits are allocated as a conversion
data switching flag for distinguishing channels.
• Conversion data of even numbered channels can be read as 16-bit data as they are.
• As conversion data of odd numbered channels contain the conversion data switching flag of
most significant two bits, mask processing needs to be applied to the data with a user
program. Plus conversion data should be masked by "00", and minus conversion data
should be masked by "11". Create a program in reference to the following programs.
(Example):For reading data of CH3
CH3 data
1
-1
4-4
X
X
X
X
X
X
X
X
3
3
3
3
3
3
3
3
7
6
5
4
3
2
1
0
WX2
CH0 data
CH2 data
CH4 data
CH6 data
WX3
0100 0000 0000 0001
0111 1111 1111 1111
X
X
X
X
X
X
X
2
2
2
2
2
2
2
F
E
D
C
B
A
9
Conversion data of
CH0/CH2/CH4/CH6
(16 bit with sign)
Data after masking
0000 0000 0000 0001
1111 1111 1111 1111
X
X
X
X
X
X
X
X
2
2
2
2
2
2
2
2
8
7
6
5
4
3
2
1
Description
Most significant two bits are
masked by "00".
Most significant two bits are
masked by "11".
X
2
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Afp0rad4Afp0rad8Afp0ra21Afp0ra42Afp0rda4

Table of Contents