![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030793.webp)
753
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 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
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...