Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 605

Table of Contents

Advertisement

Operand Specifications
Word addresses
Area
CIO
WR
HR
TB
C
OK
OK
OK
D
Flags
Name
Error Flag
Equal Flag
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).
TB
TB+1
TB+2
TB+3
TB+4
Pointer
Offset value
Last word
in stack
C
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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
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.
=
• ON if the output data in D is 0000.
• OFF in all other cases.
PLC memory
Stack
address
n
m
A
B
C
m
n
Deletes the specified
word and decrements
the stack pointer.
D
The address of the desired word
is calculated by subtracting the
offset value from the stack
pointer address.
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
OK
OK
OK
---
Operation
Stack
TB
n
TB+1
TB+2
m-1
TB+3
TB+4
B
C
Pointer
Last word
in stack
A
3. Instructions
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
PLC memory
address
The stack pointer is
decremented by 1.
m
n
TR
bits
---
---
3
567

Advertisement

Table of Contents
loading

Table of Contents