![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268792.webp)
753
Table Data Processing Instructions
Section 3-17
Description
SINS(641) inserts the source data at the desired address and shifts the exist-
ing data down one word. At the same time, SINS(641) increments the stack
pointer (TB+3 and TB+2) by 1. The location of the desired address is calcu-
lated by subtracting the offset value in C from the stack pointer.
SINS(641) can be used to insert the data for an item that is inserted in the
midst of items already on a conveyor. The position of the insertion point is
simply the number of items back (the offset value) from the most recent item
added to the conveyor.
Flags
Precautions
The stack must be defined in advance with SSET(630).
SINS(641) inserts one word of data into the stack, so there must be at least
one available word at the end of the stack. If the stack is full, an error will
occur and the source data will not be inserted.
If the address indicated by the stack pointer (TB+3 and TB+2) is already
greater than the address of the last word in the stack (TB+1 and TB) when
SINS(641) is executed, a stack overflow error will occur and the source data
will not be inserted.
Constants
---
#0001 to #FFFB
(Hexadecimal)
#0000 to #FFFF
(Hexadecimal)
Data Registers
---
DR0 to DR15
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
TB
C
S
A
B
C
D
n
m
TB
TB+1
TB+2
TB+3
TB+4
m
n
A
B
C
D
n
m+1
TB
TB+1
TB+2
TB+3
TB+4
m
m+1
C
PLC memory
address
Pointer
The address of the desired word is
calculated by subtracting the offset
value from the stack pointer address.
Last word
in stack
Stack
Offset value
Inserts the source data (A)
and increments the stack
pointer.
Pointer
Stack
Last word
in stack
The stack pointer is
incremented by +1.
PLC
memory
Name
Label
Operation
Error Flag
ER
ON if the address indicated by the stack pointer (TB+3
and TB+2) is greater than the PLC memory address of
last word in the data region of the stack.
(This is a stack overflow error.)
ON if the offset value specified is greater than the maxi-
mum data region size - 1 (FFFA hex).
OFF in all other cases.
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...