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

2 Instruction Descriptions
The following example is for when Size is UINT#3.
LD
abc[1]
def[2]
UINT#3
ghi[3]
Size=UINT#3
Precautions for Correct Use
• Use the same data type for In1[], In2[], and AryOut[].
• If the calculation results exceed the valid range of AryOut[], the results will be illegal values. An error
will not occur. Corruption will not occur in the data in the memory area adjacent to those elements.
• The values in AryOut[] do not change if the value of Size 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 AryOut[] will not change.
• In1[], In2[], and AryOut[] have different data types.
• The value of Size exceeds the array range of In1[], In2p[], or AryOut[].
2-194
AryAdd
EN
ENO
In1
In2
Size
AryOut
ghi[3]
In1[0]=abc[1]
+
In2[0]=def[2]
1234
In1[1]=abc[2]
2345
+
In2[1]=def[3]
In1[2]=abc[3]
3456
+
In2[2]=def[4]
ST
AryAdd(abc[1], def[2], UINT#3, ghi[3]);
AryOut[0]=ghi[3]
2345
3456
AryOut[1]=ghi[4]
4567
AryOut[2]=ghi[5]

NJ-series Instructions Reference Manual (W502)

3579
5801
8023

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents