EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #245 background imageLoading...
Page #245 background image
2-197
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Math Instructions
2
ArySub
ArySub
The ArySub instruction subtracts corresponding elements of two arrays.
* If you omit an input parameter, the default value is not applied. A building error will occur.
The ArySub instruction subtracts Size elements of subtrahend array In2[] from corresponding ele-
ments of minuend array In1[] starting with In1[0] and In2[0]. It outputs the subtraction results to sub-
traction results array AryOut[].
Instruction Name FB/FUN Graphic expression ST expression
ArySub Array Subtraction FUN ArySub(In1, In2, Size, Ary-
Out);
Variables
Name Meaning I/O Description Valid range Unit Default
In1[] (array) Minuend
array
Input
Minuend array
Depends on data type.
---
*
In2[] (array) Subtra-
hend array
Subtrahend array
Size Number of
elements
Number of elements for sub-
traction
1
AryOut[]
(array)
Subtrac-
tion results
array
In-out Subtraction results array Depends on data type.
--- ---
Out Return
value
Output Always TRUE TRUE only --- ---
Boolean
Bit string 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 same data type as In1[].
Size OK
AryOut[]
(array)
Must be same data type as In1[].
Out OK
Function
(@)ArySub
EN ENO
In1 Out
In2
Size
AryOut

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals