Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 592

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

SNUM
Instruction
STACK SIZE READ
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
TB
First stack address
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
Operand Specifications
Word addresses
Area
CIO
WR
HR
TB
OK
OK
OK
D
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SNUM
@SNUM
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.)
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Counts the amount of stack data (number of
638
words) in the specified stack.
SNUM
SNUM(638)
TB
TB: First stack address
D
D: Destination word
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
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
Variable
1
15
Data storage region
to
to
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
3
0
TR
bits
---
---
555

Advertisement

Table of Contents
loading

Table of Contents