Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 122

Table of Contents

Advertisement

2. Summary of Instructions
Instruction
Symbol/Operand
Mnemonic
Code
STACK SIZE
READ (CJ2, CS1-
SNUM(638)
H, CJ1-H, CJ1M,
or CS1D only)
SNUM
@SNUM
638
TB: First stack
address
D: Destination
word
STACK DATA
READ (CJ2, CS1-
SREAD(639)
H, CJ1-H, CJ1M,
or CS1D only)
SREAD
@SREAD
639
TB: First stack
address
C: Offset value
D: Destination
word
STACK DATA
OVERWRITE
SWRIT(640)
(CJ2, CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SWRIT
@SWRIT
640
TB: First stack
address
C: Offset value
S: Source data
STACK DATA
INSERT (CJ2,
SINS(641)
CS1-H, CJ1-H,
CJ1M, or CS1D
only)
SINS
@SINS
641
TB: First stack
address
C: Offset value
S: Source data
STACK DATA
DELETE (CJ2,
SDEL(642)
CS1-H, CJ1-H,
CJ1M, or CS1D
only)
SDEL
@SDEL
642
TB: First stack
address
C: Offset value
D: Destination
word
86
Counts the amount of stack data (number of words) in the specified stack. Output
TB
D
Reads the data from the specified data element in the stack. The offset
value indicates the location of the desired data element (how many data
elements before the current pointer position).
TB
C
D
Writes the source data to the specified data element in the stack (overwrit-
ing the existing data). The offset value indicates the location of the desired
data element (how many data elements before the current pointer posi-
TB
tion).
C
S
Inserts the source data at the specified location in the stack and shifts the
rest of the data in the stack downward. The offset value indicates the loca-
tion of the insertion point (how many data elements before the current
TB
pointer position).
C
S
Deletes the data element at the specified location in the stack and shifts
the rest of the data in the stack upward. The offset value indicates the
location of the deletion point (how many data elements before the current
TB
pointer position).
C
D
Function
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Page
Execution
condition
561
required
Output
563
required
Output
566
required
Output
569
required
Output
572
required

Advertisement

Table of Contents
loading

Table of Contents