571
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table Data Processing Instructions
3
SINS
SINS
Applicable Program Areas
Operands
TB: First stack address
TB through TB+3: Stack control words TB+4 through TB+(N-1): Data storage region
Instruction Mnemonic Variations
Function
code
Function
STACK DATA INSERT SINS @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 data element (how many data ele-
ments before the current pointer position).
Symbol
SINS
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
TB First stack address UINT Variable
C Offset value UINT 1
S Source word UINT 1
TB: First stack address
C: Offset value
S: Source word
SINS(641)
TB
C
S
TB
0
15
TB+1
0
15
TB+2
0
15
TB+3
0
15
PLC memory address of the last
word in the stack (rightmost 4 digits)
PLC memory address of the last
word in the stack (leftmost 4 digits)
Stack pointer (rightmost 4 digits)
(Initial value is the rightmost 4 digits of
the PLC memory address for TB+4.)
Stack pointer (leftmost 4 digits)
(Initial value is the leftmost 4 digits of
the PLC memory address for TB+4.)
15 0
TB+4
TB+(N–1)
Data storage region
toto