Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

The following example is for when Size is UINT#6, Num is UINT#3 and Offset is UINT#1.
LD
StackDel
EN
InOut
abc[1]
Size
UINT#6
Num
def
UINT#1
Offset
InOut[0]=abc[1]
InOut[1]=abc[2]
InOut[2]=abc[3]
Size=UINT#6
InOut[3]=abc[4]
InOut[4]=abc[5]
InOut[5]=abc[6]
Precautions for Correct Use
• 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[].

NJ-series Instructions Reference Manual (W502)

ENO
abc[1]
def
Num = def
UINT#3
1234
2345
3456
0
0
0
Deleted.
ST
StackDel(abc[1], UINT#6, def, UINT#1);
Num=def UINT#2
Offset=UINT#1
InOut[0]=abc[1]
InOut[1]=abc[2]
InOut[2]=abc[3]
InOut[3]=abc[4]
InOut[4]=abc[5]
InOut[5]=abc[6]
2 Instruction Descriptions
Decremented.
1234
3456
3456
0
0
0
2
2-481

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents