EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #587 background imageLoading...
Page #587 background image
549
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table Data Processing Instructions
3
Table Data Processing Instructions
Table Data Processing Instructions
Table Data Processing Instructions
All of these instructions define or operate on a group of words. The group of words in a stack are defined by
SSET(630), the group of words in a record-table are defined by DIM(631), and the group of words used in a
range instruction are defined independently in each instruction.
z Stack Instructions
Stack instructions act on specially defined data tables called stacks. The first two words of the stack
contain the PLC memory address of the last word in the stack and the second two words contain the
stack pointer (the PLC memory address of the word that will be overwritten by the next PUSH(632)
instruction).
The following diagram shows the basic structure of a stack.
z PUSH(632)
Stores data in the address indicated by the stack pointer and increments the pointer by one.
Group Purpose Instructions
Stack Operate FIFO (first-in first-out) or LIFO (last-in first-out)
data tables.
SSET(630), PUSH(632), FIFO(633), LIFO(634), SREAD(639),
SWRIT(640), SINS(641), SDEL(642), and SNUM(638)
Record-table Operate tables of data made up of records. (Record size
is user-defined.)
DIM(631), SETR(635), and GETR(636)
Range Operates on a range of words to find values such as the
checksum, a particular value, the maximum value, or
minimum value in the range.
FCS(180), SRCH(181), MAX(182), MIN(183), SUM(184), and
SWAP(637)
Data region
Example
Stack region
Pointer
End of stack
Words in
stack region
PC memory address of the
last word in the stack
PC memory address of the
next data word (stack pointer)
Stack region
PC memory
address
16 words
Pointer
D0
D15
D1
D2
D3
D4
0001
000F
0001
0004
A
Pointer
Pointer
Stack Stack

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals