Arycmpeqv And Arycmpnev - Omron NJ501-1500 Reference Manual

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

Advertisement

2 Instruction Descriptions

AryCmpEQV and AryCmpNEV

These instructions compare a value to the values of the elements of an array.
AryCmpEQV:
AryCmpNEV:
Instruction
AryCmpEQV
Array Value Com-
parison Equal
AryCmpNEV
Array Value Com-
parison Not Equal
Variables
Name
Meaning
In1[] (array)
Comparison
array
In2
Comparison
value
Size
Number of
comparison
elements
AryOut[]
Comparison
(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)
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
In2
Size
AryOut[]
OK
(array)
Out
OK
2-110
Determines if the elements are equal.
Determines if the elements are not equal.
Name
FB/FUN
FUN
FUN
I/O
Description
Array containing the ele-
ments to compare
Value to compare
Input
Number of elements to com-
pare
In-out
Comparison results array
Output
Always TRUE
Must be same data type as the elements of In1[].
OK
Graphic expression
(@)AryCmpEQV
EN
ENO
In1
In2
Size
AryOut
(@)AryCmpNEV
EN
ENO
In1
In2
Size
AryOut
Valid range
Depends on data type.
Depends on data type.
Depends on data type.
TRUE only
Integers
NJ-series Instructions Reference Manual (W502)
ST expression
AryCmpEQV(In1, In2, Size,
AryOut);
Out
AryCmpNEV(In1, In2, Size,
AryOut);
Out
Unit
Default
*
---
1
---
---
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents