Table of Contents

Advertisement

3. Instructions

SDEL

Instruction
STACK DATA DELETE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
TB
First stack address
C
Offset value
D
Destination word
TB: First stack address
TB through TB+3: Stack control words
15
TB
15
TB+1
15
TB+2
15
TB+3
574
Mnemonic
Variations
SDEL
@SDEL
Block program areas
Step program areas
OK
OK
Description
0
PLC memory address of the last
word in the stack (rightmost 4 digits)
0
PLC memory address of the last
word in the stack (leftmost 4 digits)
0
Stack pointer (rightmost 4 digits)
(Initial value is the rightmost 4 digits of
the PLC memory address for TB+4.)
0
Stack pointer (leftmost 4 digits)
(Initial value is the leftmost 4 digits of
the PLC memory address for TB+4.)
Function
code
Deletes the data element at the specified location
in the stack, outputs that data to the specified des-
tination word, and shifts the remaining the data in
642
the stack upward. The offset value indicates the
location of the desired data element (how many
data elements before the current pointer position).
SDEL
SDEL(642)
TB
TB: First stack address
C
C: Offset value
D
D: Destination word
Subroutines
Interrupt tasks
OK
Data type
UINT
UINT
UINT
TB+4 through TB+(N-1): Data storage region
TB+4
to
TB+(N–1)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
OK
Size
Variable
1
1
15
0
Data storage region
to

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents