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 #613 background imageLoading...
Page #613 background image
575
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table Data Processing Instructions
3
SDEL
z Operand Specifications
Flags
Function
SDEL(642) deletes the data 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. At the same time, SDEL(642)
decrements 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.
The stack must be defined in advance with SSET(630).
Hint
SDEL(642) can be used to delete the data for an item that is rejected from the items on a conveyor. The
position of the deletion 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
D ---
Name Label Operation
Error Flag P_ER • ON if the content of the stack pointer (TB+3 and TB+2) is less than or equal to the PLC memory
address of first word in the data region of the stack (TB+4). (This is a stack underflow error.)
• ON if the offset value specified in C is 0 or greater than the maximum data region size (FFFB hex).
• OFF in all other cases.
Equal Flag P_EQ • ON if the output data in D is 0000.
• OFF in all other cases.
A
A
B
C
n
m
TB
TB+1
TB+2
TB+3
TB+4
D
m
n
C
B
C
n
m-1
TB
TB+1
TB+2
TB+3
TB+4
m
n
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
The stack pointer is
decremented by 1.
Pointer
Stack
Last word
in stack
Deletes the specified
word and decrements
the stack pointer.
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