Table of Contents

Advertisement

3. Instructions

SSET

Instruction
SET STACK
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
TB
First stack address
N
Number of words
TB: First stack address
TB through TB+3: Stack control words
15
TB
15
TB+1
15
TB+2
15
TB+3
Note TB and TB+(N-1) must be in the same data area.
N: Number of words
This number specifies the stack area that contains the stack control words and the data storage
region. N must be between 5 and 65535.
Operand Specifications
Word addresses
Area
CIO
WR
HR
TB
OK
OK
OK
N
554
Mnemonic
Variations
SSET
@SSET
Block program areas
Step program areas
OK
OK
Description
0
PC memory address of the last
word in the stack (rightmost 4 digits)
0
PC memory address of the last
word in the stack (leftmost 4 digits)
0
Stack pointer (rightmost 4 digits)
The initial value of the stack pointer is the PLC memory address of TB+4.
0
Stack pointer (leftmost 4 digits)
The initial value of the stack pointer is the PLC memory address of TB+4.
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Defines a stack of the specified length beginning
630
at the specified word.
SSET
SSET(630)
TB
TB: First stack address
N
N: Number of words
Subroutines
OK
Data type
UINT
UINT
TB+4 through TB+(N-1): Data storage region
TB+4
TB+(N–1)
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
OK
OK
OK
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
Variable
1
15
0
Data storage region
---
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents