1 Instruction Set
1-8
NJ-series Instructions Reference Manual (W502)
Data Type Con-
version Instruc-
tions
RoundUp Round Up Real
Number
Rounds up a real number at the first decimal
digit to make an integer.
2-283
Bit String Pro-
cessing Instruc-
tions
AND (&) Logical AND Performs a logical AND operation on Boolean
variables or individual bits in bit stings.
2-286
OR Logical OR Performs a logical OR operation on Boolean
variables or individual bits in bit stings.
2-286
XOR Logical Exclusive
OR
Performs a logical exclusive OR operation on
Boolean variables or individual bits in bit
stings.
2-286
XORN Logical Exclusive
NOR
Performs a logical exclusive NOR operation on
Boolean variables or individual bits in bit
stings.
2-289
NOT Bit Reversal Reverses the value of a Boolean variable or
individual bits in a bit string.
2-291
AryAnd Array Logical AND Performs a logical AND operation on Boolean
variables or individual bits in bit stings between
arrays.
2-293
AryOr Array Logical OR Performs a logical OR operation on Boolean
variables or individual bits in bit stings between
arrays.
2-293
AryXor Array Logical
Exclusive OR
Performs a logical exclusive OR operation on
Boolean variables or individual bits in bit stings
between arrays.
2-293
AryXorN Array Logical
Exclusive NOR
Performs a logical exclusive NOR operation on
Boolean variables or individual bits in bit stings
between arrays.
2-293
Selection
Instructions
SEL Binary Selection Selects one of two selections. 2-298
MUX Multiplexer Selects one of two to five selections. 2-300
LIMIT Limiter Limits the value of the input variable to the
specified minimum and maximum values.
2-302
Band Deadband Control Performs deadband control. 2-304
Zone Dead Zone Control Adds a bias value to the input value. 2-307
MAX Maximum Finds the largest of two to five values. 2-310
MIN Minimum Finds the smallest of two to five values. 2-310
AryMax Array Maximum Finds the elements with the largest value in a
one-dimensional array.
2-312
AryMin Array Minimum Finds the elements with the smallest value in a
one-dimensional array.
2-312
ArySearch Array Search Searches for the specified value in a one-
dimensional array.
2-314
Data Movement
Instructions
MOVE Move Moves the value of a constant or variable to
another variable.
2-318
MoveBit Move Bit Moves one bit in a bit string. 2-321
MoveDigit Move Digit Moves digits (4 bits per digit) in a bit string. 2-323
TransBits Move Bits Moves one or more bits in a bit string. 2-325
MemCopy Memory Copy Moves one or more array elements. The move
source and move destination must have the
same data type.
2-327
SetBlock Block Set Moves the value of a variable or constant to
one or more array elements.
2-329
Exchange Data Exchange Exchanges the values of two variables. 2-331
Type Instruction Name Function Page