Reading Of Analog Input Values (For A42) - Panasonic FP0R Series User Manual

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

Advertisement

4.4.2 Reading of Analog Input Values (For A42)

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
A
A
Conversion data of CH1/CH3
1
0
(14 bit with sign)
Conversion data switch flag
A1
A0
WX3
0
0
CH1 data
0
1
CH3 data
 Role of conversion data switching flag
• The analog I/O unit (FP0R-A42) reads the analog input data of a maximum of 4 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
0100 0000 0000 0001
-1
0111 1111 1111 1111
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
WX3
4.4 Analog I/O Unit (FP0R-A21/A42)
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
(16 bit with sign)
Data after masking
0000 0000 0000 0001
1111 1111 1111 1111
X
X
X
X
X
X
X
X
X
2
2
2
2
2
2
2
2
2
8
7
6
5
4
3
2
1
0
Description
Most significant two bits are
masked by "00".
Most significant two bits are
masked by "11".
4-25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Afp0rad4Afp0rad8Afp0ra21Afp0ra42Afp0rda4

Table of Contents