Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual page 168

Programmable controllers
Table of Contents

Advertisement

Table Data Processing Instructions
Instruction
Symbol/Operand
Mnemonic
Code
STACK SIZE
SNUM(638)
READ (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SNUM
@SNUM
TB: First stack
638
address
D: Destination
word
STACK DATA
SREAD(639)
READ (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SREAD
@SREAD
639
TB: First stack
address
C: Offset value
D: Destination
word
STACK DATA
SWRIT(640)
OVERWRITE
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
SWRIT
@SWRIT
640
TB: First stack
address
C: Offset value
S: Source data
STACK DATA
SINS(641)
INSERT (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SINS
@SINS
641
TB: First stack
address
C: Offset value
S: Source data
STACK DATA
SDEL(642)
DELETE (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SDEL
@SDEL
642
TB: First stack
address
C: Offset value
D: Destination
word
128
Counts the amount of stack data (number of words) in the specified stack. Output required
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
Section 3-15
Location
Execution
condition
Output required
Output required
Output required
Output required

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents