Setting Of Input Range And Averaging Processing (14-Bit Mode Only) - Panasonic FP0R Series User Manual

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

Advertisement

Creating Programs
 Sample program (For ranges of 0 to 10 V, 0 to 5 V and 0 to 20 mA)
The following program shows the case that conversion data of the first expansion analog input
unit (CH0 to CH7) is read and stored in DT0 to DT7.
X3E
X3F
[ F0 MV
[ F65 WAN , WX3 , H3FFF , DT1
X3E
X3F
[ F0 MV
[ F65 WAN , WX3 , H3FFF , DT3
X3E
X3F
[ F0 MV
[ F65 WAN , WX3 , H3FFF , DT5
X3E
X3F
[ F0 MV
[ F65 WAN , WX3 , H3FFF , DT7
X3F
The channels of conversion data read by turning on/off the conversion data switching flags X3F
and X3E are distinguished.
X3E
Conversion data of even numbered channels CH0/CH2/CH4/CH6 is transferred as is.
When the data of odd numbered channels CH1/CH3/CH5/HC7 is positive, the most significant two bits
are masked by "00" with F65 WAN (AND) instruction, and the data is stored in DT1/DT3/DT5/DT7.

4.2.2 Setting of Input Range and Averaging Processing (14-bit Mode Only)

When selecting the 14-bit mode in the analog input unit (FP0R-AD4/AD8), the input range and
averaging method can be switched by user programs. They both can be set for each channel.
 Default settings
The default settings are as follows; Input range for all channels: -10 to +10 V, Averaging
processing: Moving average processing 10 times (Max. and min. removal). The averaging
processing is enabled when the mode switch No. 5 is ON.
4-6
, WX2 , DT0
]
, WX2 , DT2
]
, WX2 , DT4
]
, WX2 , DT6
]
]
]
]
]

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Afp0rad4Afp0rad8Afp0ra21Afp0ra42Afp0rda4

Table of Contents