671
Table Data Processing Instructions
Section 3-17
Examples
When CIO 000000 is ON in the following example, SINS(641) inserts the
source data in D00100 at the specified address in the stack starting at
D00000. In this case, the stack pointer indicates D00007 and the offset value
is 3, so the source data is inserted in D00004. The existing data is shifted
down one word and the data in D00007 is overwritten. At the same time the
stack pointer will be incremented from D00007 to D00008.
3-17-18 STACK DATA DELETE: SDEL(642)
Purpose
Deletes the data element at the specified location in the stack, outputs that
data to the specified destination word, and shifts the remaining the data in the
stack upward. The offset value indicates the location of the desired data ele-
ment (how many data elements before the current pointer position).
This instruction is supported by the CS1-H, CJ1-H, CJ1M, and CS1D CPU
Units only.
Ladder Symbol
SINS
D00000
#0003
D00100
000000
B
C
D
D00000
D00001
D00002
D00003
D00004
D00005
D00006
D00007
D00008
D00009
A
B
C
D
D00000
D00001
D00002
D00003
D00004
D00005
D00006
D00007
D00008
D00009
D00100
A
−
3
+1
PLC
memory
Stack
pointer
Stack pointer
Last word
in stack
Stack
pointer
Stack pointer
Last word
in stack
PLC memory address
of last word in the stack
The stack pointer is incremented
by +1 after the data is inserted.
(Insert)
+1
PLC memory address
of last word in the stack
SDEL(642)
TB
C
D
TB: First stack address
C: Offset value
D: Destination word
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 ...