Panasonic FP7 Series Command Reference Manual page 429

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

Advertisement

● According to the operation unit [i], [S] is set to the area specified by "[D]+3" (write pointer).
● "[D]+3" (write pointer) is incremented (+1).
● After incrementing, if "[D]+3 (write pointer) is equal to [S] (buffer size)", [D]+3 (write pointer)
is set to 0.
● "[S]+1" (stored data amount) is incremented (+1).
Format of data buffer (FIFO)
[D]
Buffer size
Stored data amount
[D]+1
Reading pointer
[D]+2
[D]+3
Writing pointer
Processing
1. Set [S] (write data) to the area specified by "[D]+3" (write pointer).
2. "[D]+3" (write pointer) is incremented (+1).
3. Increment (+1) "[D]+1" (stored data amount).
Example) 16 bits (US, SS)
[i]...US,SS
[S]...DT20
[D]...DT0
DT0
5
[D]
DT1
[D]+1
3
DT2
0
[D]+2
DT3
3
[D]+3
DT4
101
[D]+4
DT5
102
[D]+5
[D]+6
DT6
103
DT7
104
[D]+7
[D]+8
DT8
105
201
DT20
Flag operations
Name
SR7
SR8
(ER)
WUME-FP7CPUPGR-12
・・・Size of the data buffer area
・・・Stored data amount (by operation unit)
・・・Relative number from [D]+4
・・・Relative number from [D]+4
Data buffer area
(Buffer size)
(Stored data amount)
(Reading pointer)
(Writing pointer)
(0th)
(1st)
(2nd)
(3rd)
(4th)
Description
To be set in the case of out-of-range in indirect access (index modification).
To be set when [D] (buffer size) is larger than 4096, or [D] (buffer size) is 0.
To be set when [D] +1 (stored data amount) is greater than or equal to [D] (buffer size).
To be set when [D] +3 (write pointer) is greater than or equal to [D] (buffer size).
To be set when the buffer area exceeds the upper limit of a specified device.
DT0
5
[D]
DT1
4
[D]+1
DT2
0
[D]+2
DT3
4
[D]+3
DT4
101
[D]+4
DT5
102
[D]+5
DT6
103
[D]+6
DT7
201
[D]+7
[D]+8
DT8
105
201
DT20
8.19 BUFW (Data Write)
(Buffer size)
③ Increment (+1)
(Stored data amount)
(Reading pointer)
(Writing pointer)
② Increment (+1)
(0th)
(1st)
(2nd)
(3rd)
(4th)
① Because [D]+3 (writing
pointer) points at 3, [S]
is transferred to the 3rd
area of the buffer.
8-41

Advertisement

Table of Contents
loading

Table of Contents