Lifo/Fifo - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

LIFO/FIFO

Instruction
LAST IN FIRST OUT
FIRST IN FIRST OUT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
TB
First stack address
D
Destination word
TB: First stack address
TB through TB+3: Stack control words
15
TB
15
TB+1
15
TB+2
15
TB+3
Operand Specifications
Word addresses
Area
CIO
WR
HR
TB
OK
OK
OK
D
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
LIFO
@LIFO
FIFO
@FIFO
LIFO
LIFO(634)
TB
TB: First stack address
D
D: Destination word
Block program areas
Step program areas
OK
OK
Description
0
PC memory address of the last
word in the stack (rightmost 4 digits)
0
PC memory address of the last
word in the stack (leftmost 4 digits)
0
Stack pointer (rightmost 4 digits)
0
Stack pointer (leftmost 4 digits)
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Reads the last word of data written to the specified
634
stack (the newest data in the stack).
Reads the first word of data written to the speci-
633
fied stack (the oldest data in the stack).
Subroutines
OK
Data type
UINT
UINT
TB+4 through TB+(N-1): Data storage region
TB+4
TB+(N–1)
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
OK
OK
---
OK
3. Instructions
Function
FIFO
FIFO(633)
TB
TB: First stack address
D
D: Destination word
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
Variable
1
15
0
Data storage region
---
Registers
Flags
Pulse
Indirect
IR
TK
CF
using IR
---
OK
---
---
3
TR
bits
bits
---
---
557

Advertisement

Table of Contents
loading

Table of Contents