Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 581

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
SINS(641)
Inserts the source data at the specified location in the stack and shifts the rest of the data in the stack
downward. The offset value indicates the location of the desired word (the number of words before the
current pointer position).
Pointer to last
word in stack
Pointer
-n
(n=3)
Pointer
Data in pointer position - n
(n=3 in this example.)
SDEL(642)
Deletes the data element at the specified location in the stack and shifts the rest of the data in the stack
upward. The offset value indicates the location of the desired word (the number of words before the
current pointer position).
Pointer to last
word in stack
-n
(n=3)
Pointer
Data in pointer position - n
(n=3 in this example.)
544
Stack
M
Data in pointer
position n
Insert
:
A
Data region
B
C
Pointer
(Incremented by 1)
Last word of
data in stack
Stack
Pointer
:
A
B
Data
C
Pointer
region
(Decre-
mented by 1)
Last word of
data in stack
Deletes the data element at pointer
position - n, shifts the remaining
data upward, and decrements the
pointer value by 1.
Stack
Pointer to last
word in stack
Pointer
:
M
Data region
A
B
C
Inserts data element M at pointer
position - n, shifts the existing data
(A, B, and C) down, and increments
the pointer value by 1.
Stack
Pointer to last
word in stack
Pointer
:
B
C
C
Data region
A
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents