Panasonic FP7 Series Command Reference Manual page 472

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

Advertisement

10.5 MEAN (Acquiring the Total and the Mean Value)
Example 6) Operation unit: 32 bits (SL) (specify a 16-bit device)
Total value is given in 64-bit data, and the mean value is given in 32-bit data.
[i]...SL
[S1]...DT10
<Total/mean calculation range>
DT10・DT11
DT12・DT13
DT14・DT15
DT16・DT17
Example 7) Operation unit: Single-precision, floating-point real number (SF) (specify a 16-bit device)
Total value is given in 32-bit data, and the mean value is given in 32-bit data.
[i]...SF
[S1]...DT10
<Total/mean calculation range>
DT10・DT11
DT12・DT13
DT14・DT15
DT16・DT17
DT18・DT19
DT20・DT21
DT22・DT23
DT24・DT25
Precautions for programming
● The end position of the total and the mean calculation range is the device that contains [S2].
Example) When the operation unit is 32 bits, the calculation range is the same whether a
device number of higher level or lower level is specified.
[S1]...DT2
DT0・DT1
DT2・DT3
DT4・DT5
DT6・DT7
DT8・DT9
● Data is overwritten if [D] (total and mean calculation results) is specified within the total and
the mean calculation range.
10-22
[S2]...DT16
[D]...DT100
Value
K -100
K 600
K 500
K -200
[S2]...DT24
[D]...DT100
Value
SF 3.33E+00
SF 1.11E+00
SF 4.44E+00
SF 5.55E+00
SF 2.22E+00
SF 1.11E+00
SF 3.33E+00
SF 5.55E+00
[S2]...DT6
H 11223344
H 55667788
Total/mean
H 9900AABB
calculation
range
H CCDDEEFF
H 12345678
<Output result>
DT100・DT103
* Signed 64-bit integer
Value
DT104・DT105
K 200
* Signed 32-bit integer
<Output result>
SF 2.66E+01
DT100・DT101
* Single precision floating point
real number (32 bits)
Value
DT102・DT103
SF 3.33E+00
* Single precision floating point
real number (32 bits)
[S1]...DT2
[S2]...DT7
H 11223344
DT0・DT1
H 55667788
DT2・DT3
DT4・DT5
H 9900AABB
DT6・DT7
H CCDDEEFF
DT8・DT9
H 12345678
Value
Total value
K 800
([D] to [D]+3)
Mean value
([D]+4, [D]+5)
Value
Total value
([D] and [D]+1)
Mean value
([D]+2, [D]+3)
Total/mean
calculation range
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents