573
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table Data Processing Instructions
3
SINS
Example Programming
When CIO 0.00 is ON in the following example, SINS(641) inserts the source data in D100 at the
specified address in the stack starting at D0. In this case, the stack pointer indicates D7 and the offset
value is 3, so the source data is inserted in D4. The existing data is shifted down one word and the data
in D7 is overwritten. At the same time the stack pointer will be incremented from D7 to D8.
SINS
D0
#0003
D100
0.00
B
C
D
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
A
B
C
D
D100
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