Lifr (Data Read (Last-In-First-Out)) - Panasonic FP7 Series Command Reference Manual

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

Advertisement

8.20 LIFR (Data Read (Last-In-First-Out))

8.20 LIFR (Data Read (Last-In-First-Out))

Ladder diagram
Available operation units (●: Available)
Operatio
bit
n unit
i
List of operands
Operand
Description
S
Starting device address of the data buffer
D
Device address of the read data
Available devices (●: Available)
Operan
d
W
W
X
Y
S
D
(Note 1)
Only 16-bit devices and integer constants can be modified.
(Note 2)
Index register (I0 to IE)
Outline of operation
● This instruction reads data from LIFO buffer specified by [S], and sets it to [D].
(In the [S] buffer area, it is necessary to define buffer first using the DEFBUF instruction.)
● Pre-execution buffer consistency check (An operation error occurs in the following cases)
1. [S] (buffer size) > 4096, or [S] (buffer size) = 0
2. [S]+1 (stored data amount) = 0
3. [S]+2 ≠ 0
4. [S]+1 (stored data amount) > [S] (buffer size)
5. [S]+3 (LIFO pointer) ≥ [S] (buffer size)
6. Buffer area exceeds the upper limit of the specified device
8-42
US
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
SS
UL
32-Bit
device:
TS
TE
U
W
WI
C
C
M
O
S
E
SL
SF
Real
Integer
numbe
r
IX
(N
K
H
SF
ote
2)
WUME-FP7CPUPGR-12
DF
St
rin
g
Index
modifie
r
D
(Note 1)
" "
F

Advertisement

Table of Contents
loading

Table of Contents