Panasonic FP7 Series Command Reference Manual page 423

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

Advertisement

Format of data buffer (FIFO buffer)
[D]
Buffer size
[D]+1
Stored data amount
[D]+2
Reading pointer
[D]+3
Writing pointer
Format of data buffer (LIFO buffer)
[S]
Buffer size
Stored data amount
[S]+1
Fixed to 0
[S]+2
[S]+3
LIFO pointer
Processing
1. [n] (buffer size) is specified in [D] (buffer start).
2. The range from [D]+1 (stored data amount) to [D]+3 (writing pointer) is cleared to zero.
Example) Operation unit: 16 bits (US, SS)
[i]...US,SS
[n]...K 128(U 128)
DT0
K 0
DT1
K 1
DT2
K 2
DT3
K 3
K 4
DT4
DT5
K 5
DT6
K 6
DT7
K 7
DT8
K 8
Related instructions
● FIFR (Read data from the 16- or 32-bit data buffer (First-In-First-Out))
● BUFW (Write data in the 16- or 32-bit data buffer)
● LIFR (Read data from the 16- or 32-bit data buffer (Last-In-First-Out))
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
* The data buffer area is not cleared.
・・・Size of the data buffer area
・・・Stored data amount (by operation unit)
・・・Fixed to 0
・・・Relative number from [D]+4
Data buffer area
* The data buffer area is not cleared.
[D]...DT0
DT0
K 128
DT1
DT2
DT3
DT4
DT5
DT6
DT7
DT8
Description
To be set in the case of out-of-range in indirect access (index modification).
To be set when [n] (buffer size) is out of the available range.
8.17 DEFBUF (Buffer Definition)
(Buffer size)
K 0
(Stored data amount)
K 0
(Reading pointer)
K 0
(Writing pointer)
K 4
K 5
K 6
K 7
K 8
Default: [n] (buffer size)
Default: H 0000
Default: H 0000
Default: H 0000
Default: [n] (buffer size)
Default: H 0000
Default: H 0000
Default: H 0000
8-35

Advertisement

Table of Contents
loading

Table of Contents