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-193
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Math Instructions
2
AryAdd
AryAdd
The AryAdd instruction adds corresponding elements of two arrays.
* If you omit an input parameter, the default value is not applied. A building error will occur.
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[].
Instruction Name FB/FUN Graphic expression ST expression
AryAdd Array Addition FUN AryAdd(In1, In2, Size, Ary-
Out);
Variables
Name Meaning I/O Description Valid range Unit Default
In1[] (array)
and In2[]
(array)
Array to
process
Input
Array to process
Depends on data type.
---
*
Size Number of
elements to
process
Number of elements to pro-
cess
1
AryOut[]
(array)
Calculation
results
array
In-out Calculation results array Depends on data type. --- ---
Out Return
value
Output Always TRUE TRUE only --- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1[] (array) OK OK OK OK OK OK OK OK OK OK
In2[] (array) Must be an array with the same data type as In1[].
Size OK
AryOut[]
(array)
Must be an array with the same data type as In1[].
Out OK
Function
(@)AryAdd
EN ENO
In1 Out
In2
Size
AryOut

Table of Contents

Related product manuals