Panasonic FP7 Series Command Reference Manual page 431

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

Advertisement

● If "[S]+3" (LIFO pointer) is 0, set [S] (buffer size) to "[S]+3" (LIFO pointer).
● "[S]+3" (LIFO pointer) is decremented (-1).
● According to the operation unit [i], the data of the area specified by "[S]+3" (LIFO pointer) are
set to [D].
● "[S]+1" (stored data amount) is decremented (-1).
Format of data buffer (LIFO)
Buffer size
[S]
Stored data amount
[S]+1
Fixed to 0
[S]+2
[S]+3
LIFO pointer
Processing
1. "[S]+3" (LIFO pointer) is decremented (-1).
2. Set the data of the area specified by "[S]+3" (LIFO pointer) to [D] (read data).
3. "[S]+1" (stored data amount) is decremented (-1).
Example) 16 bits (US, SS)
[i]...US,SS
[S]...DT0
[D]...DT20
K 5
[S]
DT0
DT1
K 4
[S]+1
DT2
K 0
[S]+2
DT3
K 4
[S]+3
H 101
[S]+4
DT4
H 102
DT5
[S]+5
DT6
H 103
[S]+6
H 104
DT7
[S]+7
[S]+8
DT8
H 105
DT20
H 10
Flag operations
Name
SR7
SR8
(ER)
WUME-FP7CPUPGR-12
・・・Size of the data buffer area
・・・Stored data amount (by operation unit)
・・・Fixed to 0
・・・Relative number from [S]+4
Data buffer area
(Buffer size)
(Stored data amount)
-
(LIFO 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 [S] (buffer size) is larger than 4096, or [S] (buffer size) is 0.
To be set when "[S]+1" (stored data amount) is 0.
To be set when "[S]+2" is other than 0.
To be set when "[S]+1" (stored data amount) is larger than [S] (buffer size).
8.20 LIFR (Data Read (Last-In-First-Out))
DT0
K 5
[S]
DT1
K 3
[S]+1
K 0
DT2
[S]+2
DT3
K 3
[S]+3
H 101
DT4
[S]+4
DT5
H 102
[S]+5
H 103
DT6
[S]+6
DT7
H 104
[S]+7
[S]+8
DT8
H 105
DT20
H 104
② Because [S]+3 (LIFO pointer) points at 3, transfer
3rd data in the buffer to [D].
(Buffer size)
③ Decrement (-1)
(Stored data amount)
-
① Decrement (-1)
(LIFO pointer)
(0th)
(1st)
(2nd)
(3rd)
(4th)
8-43

Advertisement

Table of Contents
loading

Table of Contents