Panasonic FP7 Series Command Reference Manual page 436

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

Advertisement

8.22 RBUFW (Write to Ring Buffer, Calculation of Total Value and Moving
Average Value)
beginning of the ring buffer area. However, the area [D+1] for the stored data amount is not
changed.
Precautions for programming
● According to the operation unit [i], set the value of [S] that is written to the buffer data area.
Processing
Example 1) When data is written once by the RBUFW instruction with the buffer size
of 5
[S]...DT20
[D]
DT0
[D+1]
DT1
[D+2]
DT2
[D+3]
DT3
[D+4]
DT4
[D+5]
DT5
[D+6]
DT6
[D+7]
DT7
[D+8]
DT8
[D+9]
DT9
[D+10]
DT10
[D+11]
DT11
[S]
DT20
Example 2) When data is written five times by the RBUFW instruction with the buffer
size of 5
[S]...DT20
[D]
DT0
[D+1]
DT1
[D+2]
DT2
[D+3]
DT3
DT4
[D+4]
SF 5.15E+01
[D+5]
DT5
[D+6]
DT6
[D+7]
DT7
[D+8]
DT8
[D+9]
DT9
[D+10]
DT10
[D+11]
DT11
[S]
DT20
8-48
[D]...DT0
U 5
U 0
K 0
SF 0.0
U 0
K 1
K 1
K 3
K 2
K 5
K 33
[D]...DT0
U 5
U 4
K 206
U 4
K 33
K 67
K 54
K 52
K 5
K 55
[D]
DT0
U 5
[D+1]
DT1
U 1
[D+2]
DT2
K 33
[D+3]
DT3
[D+4]
DT4
SF 3.30E+01
[D+5]
DT5
[D+6]
DT6
U 1
[D+7]
DT7
K 33
K 1
[D+8]
DT8
K 3
[D+9]
DT9
K 2
[D+10]
DT10
K 5
[D+11]
DT11
[D]
DT0
U 5
U 5
[D+1]
DT1
[D+2]
DT2
K 261
[D+3]
DT3
DT4
[D+4]
SF 5.22E+01
[D+5]
DT5
[D+6]
DT6
U 0
K 33
[D+7]
DT7
K 67
[D+8]
DT8
K 54
[D+9]
DT9
K 52
[D+10]
DT10
K 55
[D+11]
DT11
Buffer size
Amount of stored data
Total value
Moving average value
Write pointer
0th
First
Second
Third
Fourth
Buffer size
Amount of stored data
Total value
Moving average value
Write pointer
0th
First
Second
Third
Fourth
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents