Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
The following example is for when In2 is INT#11 and Size is UINT#3.
LD
abc[1]
INT#11
UINT#3
def[2]
Size=UINT#3
Precautions for Correct Use
• Use the same data type for In1[], In2, and AryOut[]. If they are different, a building error will occur.
• If the addition results exceed the valid range of AryOut[], the elements of AryOut[] will contain 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.
• If the value of Size exceeds the array area of In1[] or AryOut[].
2-224
AryAddV
EN
ENO
In1
In2
Size
AryOut
def[2]
In1[0]=abc[1]
12
In2=INT#11
+
In1[1]=abc[2]
23
In2=INT#11
+
In1[2]=abc[3]
34
In2=INT#11
+
ST
AryAddV(abc[1], INT#11, UINT#3, def[2]);
AryOut[0]=def[2]
AryOut[1]=def[3]
AryOut[2]=def[4]

NY-series Instructions Reference Manual (W560)

23
34
45

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents