Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 741

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Table Data Processing Instructions
Pointer to last
word in stack
-n
(n=3)
Pointer
Data in pointer position - n
(n=3 in this example.)
-n
(n=3)
Pointer
Data in pointer position - n
(n=3 in this example.)
702
SWRIT(640)
Writes the source data to the specified data element in the stack (overwriting
the existing data). The offset value indicates the location of the desired word
(the number of words before the current pointer position).
Stack
Pointer
:
A
B
Data region
C
Pointer
(Unchanged)
Last word of
data in stack
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).
Stack
Pointer to last
word in stack
Pointer
Insert
:
A
B
Data region
C
Last word of
data in stack
Stack
:
M
B
C
Pointer to last
M
word in stack
Data in pointer
position n
Pointer
(Incremented by 1)
Inserts data element M at pointer
position - n, shifts the existing data
(A, B, and C) down, and increments
the pointer value by 1.
Section 3-17
M
Overwrites data at pointer
position - n.
(n=3 in this example.)
Data region
Stack
Pointer
:
M
A
Data region
B
C

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents