Table Data Processing Instructions - Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual

Programmable controllers
Table of Contents

Advertisement

Table Data Processing Instructions

3-15 Table Data Processing Instructions
Instruction
Symbol/Operand
Mnemonic
Code
SET STACK
SSET(630)
SSET
@SSET
630
TB: 1st stack
address
N: Number of
words
PUSH ONTO
PUSH(632)
STACK
PUSH
@PUSH
632
TB: 1st stack
address
S: Source word
LAST IN FIRST
LIFO(634)
OUT
LIFO
@LIFO
634
TB: 1st stack
address
D: Destination
word
FIRST IN FIRST
FIFO(633)
OUT
FIFO
@FIFO
633
TB: 1st stack
address
D: Destination
word
Defines a stack of the specified length beginning at the specified word
and initializes the words in the data region to all zeroes.
TB
N
TB+1
TB+2
Last word
TB+3
in stack
Stack
pointer
Writes one word of data to the specified stack.
TB
S
TB
TB+1
TB+2
TB+3
Reads the last word of data written to the specified stack (the newest
data in the stack).
TB
Stack
D
pointer
TB
TB+1
TB+2
TB+3
Reads the first word of data written to the specified stack (the oldest
data in the stack).
TB
D
TB
Stack
TB+1
pointer
TB+2
TB+3
First-in first-out
Function
Internal I/O
memory address
TB
m+(N−1)
m+(N−1)
Internal I/O
memory address
PUSH(632)
Internal I/O
memory address
TB
Newest
TB+1
data
TB+2
m−1
TB+3
Stack
pointer
m−1
The pointer is
Last-in first-out
decremented.
Internal I/O
memory address
TB
Oldest
TB+1
data
TB+2
TB+3
Stack
pointer
Section 3-15
Execution
Output
Required
N words
in stack
Output
Required
Internal I/O
memory
address
TB
TB+1
TB+2
TB+3
Output
Required
Internal I/O
memory address
1
A is left
un-
changed.
Output
Required
Internal I/O
memory address
m−1
m−1
Location
condition
125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents