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 #153 background imageLoading...
Page #153 background image
2-105
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Comparison Instructions
2
AryCmpEQ and AryCmpNE
AryCmpEQ and AryCmpNE
These instructions compare the values of the elements of two arrays.
* If you omit an input parameter, the default value is not applied. A building error will occur.
AryCmpEQ: Determines if the elements are equal.
AryCmpNE: Determines if the elements are not equal.
Instruction Name FB/FUN Graphic expression ST expression
AryCmpEQ Array Comparison
Equal
FUN AryCmpEQ(In1, In2, Size,
AryOut);
AryCmpNE Array Comparison
Not Equal
FUN AryCmpNE(In1, In2, Size,
AryOut);
Variables
Name Meaning I/O Description Valid range Unit Default
In1[] and
In2[]
(arrays)
Comparison
arrays
Input
Arrays containing the ele-
ments to compare
Depends on data type.
---
*
Size Number of
comparison
elements
Number of elements to com-
pare
Depends on data type. 1
AryOut[]
(array)
Comparison
results array
In-out Comparison 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 OK OK OK OK OK
In2[] (array) Must be an array with the same data type as In1[].
Size OK
AryOut[]
(array)
OK
Out OK
(@)AryCmpEQ
EN ENO
In1 Out
In2
Size
AryOut
(@)AryCmpNE
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