2-293
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Bit String Processing Instructions
2
AryAnd, AryOr, AryXor, and AryXorN
AryAnd, AryOr, AryXor, and
AryXorN
These instructions process Boolean variables or individual bits in bit stings between arrays.
* If you omit an input parameter, the default value is not applied. A building error will occur.
AryAnd: Logical AND
AryOr: Logical OR
AryXor: Logical Exclusive OR
AryXorN: Logical Exclusive NOR
Instruction Name FB/FUN Graphic expression ST expression
AryAnd Array Logical AND FUN AryAnd(In1, In2, Size, Ary-
Out);
AryOr Array Logical OR FUN AryOr(In1, In2, Size, Ary-
Out);
AryXor Array Logical
Exclusive OR
FUN AryXor(In1, In2, Size, Ary-
Out);
AryXorN Array Logical
Exclusive NOR
FUN AryXorN(In1, In2, Size, Ary-
Out);
Variables
Name Meaning I/O Description Valid range Unit Default
In1[] and
In2[]
(arrays)
Array to pro-
cess
Input
Array to process
Depends on data type. ---
*
Size Number of ele-
ments
Number of elements to pro-
cess
1
AryOut[]
(array)
Processing
results array
In-out Processing results array Depends on data type.
--- ---
Out Return value Output Always TRUE TRUE only --- ---
(@)AryAnd
EN ENO
In1 Out
In2
Size
AryOut
(@)AryOr
EN ENO
In1 Out
In2
Size
AryOut
(@)AryXor
EN ENO
In1 Out
In2
Size
AryOut
(@)AryXorN
EN ENO
In1 Out
In2
Size
AryOut