EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #610 background imageLoading...
Page #610 background image
3. Instructions
572
CS/CJ/NSJ Series Instructions Reference Manual (W474)
z Operand Specifications
Flags
Function
SINS(641) inserts the source data at the desired address and shifts the existing 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 calculated by subtracting the offset value in C from the stack pointer.
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.
The stack must be defined in advance with SSET(630).
Hint
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.
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
TB
OK OK OK OK OK OK OK OK OK OK
--- ---
--- OK --- --- --- ---C
OK OK
S
Name Label Operation
Error Flag P_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 maximum data region size - 1 (FFFA hex).
• OFF in all other cases.
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
address

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals