Panasonic FP7 Series Command Reference Manual page 470

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

10.5 MEAN (Acquiring the Total and the Mean Value)
● The total value uses twice the area size of the operation unit, and the mean value uses the
same area size as the operation unit. Note that, in the case of floating point real number
(SF), the total value also uses the same area size as the operation units.
● The maximum amount of data that can be specified is 30,000.
● When the operation unit is US, SS, UL or SL, the mean value is given as an integer rounding
the first decimal point down.
● [D] is in the following format according to the operation unit.
Operatio
16 bits (US, SS)
n unit
Device
16 bit
size
[D] to [D
Result
+1]
storage
area
[D+2]
Processing
Example 1) Operation unit: 16 bits (US)
Total value is given in 32-bit data, and the mean value is given in 16-bit data.
[i]...US
[S1]...DT10 [S2]...DT14 [D]...DT100
<Total/mean calculation range>
Value
DT10
H 111 1
DT11
H 5555
DT12
H 7777
DT13
H AAAA
DT14
H FFFF
Example 2) Operation unit: 16 bits (SS)
Total value is given in 32-bit data, and the mean value is given in 16-bit data.
[i]...SS
[S1]...DT10 [S2]...DT14 [D]...DT100
<Total/mean calculation range>
Value
DT10
K 11
DT11
K -33
DT12
K 44
K 55
DT13
K -22
DT14
10-20
32 bits (UL, SL)
32 bit
16 bit
Cannot
[D] to [D
[D] to [D
specify
+3]
+1]
Cannot
[D+4] to
[D+2]
specify
[D+5]
32 bits (SF)
32 bit
16 bit
32 bit
[D]
[D+2] to
[D+1]
[D+3]
<Output result>
DT100・DT101
H 00028886
* Unsigned 32-bit integer
Value
DT102
H 81B4
* Unsigned 16-bit integer
<Output result>
DT100・DT101
* Signed 32-bit integer
Value
DT102
K 11
* Signed 16-bit integer
64 bits (DF)
16 bit
32 bit
[D] to [D
[D] to [D
+3]
+1]
[D+4] to
[D+2] to
[D+7]
[D+3]
Value
Total value
([D] and [D]+1)
Mean value ([D]+2)
Value
Total value
K -55
([D] and [D]+1)
Mean value ([D]+2)
WUME-FP7CPUPGR-12
Outpu
t
conte
nt
Total
value
Mean
value

Advertisement

Table of Contents
loading

Table of Contents