Sread - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

SREAD

Instruction
STACK DATA READ
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
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SREAD
@SREAD
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
Reads the data from the specified data element in
the stack. The offset value indicates the location of
639
the desired data element (how many data ele-
ments before the current pointer position).
SREAD
SREAD(639)
TB: First stack address
TB
C: Offset value
C
D: Destination word
D
Subroutines
Interrupt tasks
OK
Data type
UINT
UINT
UINT
TB+4 through TB+(N-1): Data storage region
TB+4
to
TB+(N–1)
3. Instructions
Function
SFC action or
transition programs
OK
OK
Size
Variable
1
1
15
0
Data storage region
to
563
3

Advertisement

Table of Contents
loading

Table of Contents