EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-481
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Stack and Table Instructions
2
StackDel
The following example is for when Size is UINT#6, Num is UINT#3 and Offset is UINT#1.
When an element in the array is passed to InOut[], all elements below the passed element are pro-
cessed.
The values in InOut[] and Num do not change if the value of Size or Num is 0.
Return value Out is not used when the instruction is used in ST.
An error occurs in the following cases. ENO will be FALSE, and InOut[] will not change.
The values of Num and Size are not 0 and Size is not greater than or equal to Num and Num is
not greater than Offset.
The value of Size exceeds the array area of InOut[].
Precautions for Correct Use
StackDel(abc[1], UINT#6, def, UINT#1);
LD ST
abc[1]
abc[1]
UINT#6
def
def
UINT#1
StackDel
EN ENO
InOut
Size
Num
Offset
Num = def
Decremented.
Deleted.
1234
2345
3456
0
0
0
InOut[0]=abc[1]
InOut[1]=abc[2]
InOut[2]=abc[3]
InOut[3]=abc[4]
InOut[4]=abc[5]
InOut[5]=abc[6]
InOut[0]=abc[1]
InOut[1]=abc[2]
InOut[2]=abc[3]
InOut[3]=abc[4]
InOut[4]=abc[5]
InOut[5]=abc[6]
Size=UINT#6
UINT#3
Num=def
UINT#2
1234
3456
3456
0
0
0
Offset=UINT#1

Table of Contents

Related product manuals