Aryadd - Omron NJ501-1500 Reference Manual

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

Advertisement

AryAdd

The AryAdd instruction adds corresponding elements of two arrays.
Instruction
AryAdd
Array Addition
Variables
Name
Meaning
In1[] (array)
Array to
and In2[]
process
(array)
Size
Number of
elements to
process
AryOut[]
Calculation
(array)
results
array
Out
Return
value
* If you omit an input parameter, the default value is not applied. A building error will occur.
Bit strings
In1[] (array)
In2[] (array)
Size
AryOut[]
(array)
Out
OK
Function
The AryAdd instruction adds Size elements of arrays to process In1[] and In2[] starting from In1[0]
and In2[0]. The results are assigned to corresponding elements of calculation results array AryOut[].
NJ-series Instructions Reference Manual (W502)
Name
FB/FUN
FUN
I/O
Description
Array to process
Input
Number of elements to pro-
cess
In-out
Calculation results array
Output
Always TRUE
OK OK OK OK OK OK OK OK OK OK
Must be an array with the same data type as In1[].
OK
Must be an array with the same data type as In1[].
Graphic expression
(@)AryAdd
EN
ENO
In1
Out
In2
Size
AryOut
Valid range
Depends on data type.
Depends on data type.
TRUE only
Integers
2 Instruction Descriptions
ST expression
AryAdd(In1, In2, Size, Ary-
Out);
Unit
Default
*
---
1
---
---
---
---
Times, durations,
dates, and text strings
2
2-193

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents