![Omron CJ1G-CPUxx Instructions Manual Download Page 91](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491091.webp)
70
Instruction Functions
Section 2-2
2-2-15 Table Data Processing Instructions
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
SET STACK
SSET
@SSET
630
Output
Required
PUSH ONTO
STACK
PUSH
@PUSH
632
Output
Required
LAST IN FIRST
OUT
LIFO
@LIFO
634
Output
Required
FIRST IN FIRST
OUT
FIFO
@FIFO
633
Output
Required
TB: 1st stack
address
N: Number of
words
SSET(630)
TB
N
m+(N
−
1)
m+(N
−
1)
Last word
in stack
Stack
pointer
Internal I/O
memory address
N words
in stack
TB
TB+1
TB+2
TB+3
Defines a stack of the specified length beginning at the specified word
and initializes the words in the data region to all zeroes.
TB: 1st stack
address
S: Source word
PUSH(632)
TB
S
Internal I/O
memory address
PUSH(632)
Internal I/O
memory
address
TB
TB+1
TB+2
TB+3
TB
TB+1
TB+2
TB+3
Writes one word of data to the specified stack.
TB: 1st stack
address
D: Destination
word
LIFO(634)
TB
D
TB
TB+1
TB+2
TB+3
TB
TB+1
TB+2
TB+3
m
−
1
m
−
1
m
−
1
Internal I/O
memory address
Newest
data
Internal I/O
memory address
Last-in first-out
Stack
pointer
Stack
pointer
A is
left un-
chang
ed.
The pointer is
decremented.
Reads the last word of data written to the specified stack (the newest
data in the stack).
TB: 1st stack
address
D: Destination
word
FIFO(633)
TB
D
m
−
1
m
−
1
Internal I/O
memory address
Oldest
data
Internal I/O
memory address
First-in first-out
Stack
pointer
Stack
pointer
TB
TB+1
TB+2
TB+3
TB
TB+1
TB+2
TB+3
Reads the first word of data written to the specified stack (the oldest
data in the stack).
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...