1 Instruction Set
1-6
NJ-series Instructions Reference Manual (W502)
Math Instruc-
tions
SQRT Square Root Finds the square root of a number. 2-180
LN Natural Logarithm Finds the natural logarithm of a real number. 2-182
LOG Logarithm Base 10 Finds the base-10 logarithm of a real number. 2-182
EXP Natural
Exponential
Operation
Performs calculations for the natural exponen-
tial function.
2-185
EXPT (**) Exponentiation Raises one real number to the power of
another real number.
2-187
Inc Increment Increments an integer value. 2-189
Dec Decrement Decrements an integer value. 2-189
Rand Random Number Generates pseudorandom numbers. 2-191
AryAdd Array Addition Adds corresponding elements of two arrays. 2-193
AryAddV Array Value
Addition
Adds the same value to specified elements of
an array.
2-195
ArySub Array Subtraction Subtracts corresponding elements of two
arrays.
2-197
ArySubV Array Value
Subtraction
Subtracts the same value from specified ele-
ments of an array.
2-199
AryMean Array Mean Calculates the average of the elements of an
array.
2-201
ArySD Array Element
Standard Deviation
Calculates standard deviation of the elements
of an array.
2-203
ModReal Real Number
Modulo-division
Calculates the remainder of real number divi-
sion.
2-205
Fraction Real Number
Fraction
Finds the fractional part of a real number. 2-207
CheckReal Real Number
Check
Checks a real number to see if it is infinity or
nonnumeric data.
2-209
BCD Conversion
Instructions
**_BCD_TO_*** BCD-to-Unsigned
Integer Conversion
Group
Converts BCD bit strings into unsigned inte-
gers.
2-212
**_TO_BCD_*** Unsigned Integer-
to-BCD Conversion
Group
Converts unsigned integers to BCD bit strings. 2-215
BCD_TO_** BCD Data Type-to-
Unsigned Integer
Conversion Group
Converts BCD bit strings into unsigned inte-
gers.
2-218
BCDsToBin Signed BCD-to-
Signed Integer
Conversion
Converts signed BCD bit strings to signed inte-
gers.
2-221
BinToBCDs_** Signed Integer-to-
BCD Conversion
Group
Converts signed integers to signed BCD bit
strings.
2-224
AryToBCD Array BCD
Conversion
Converts the elements of an unsigned integer
array to BCD bit strings.
2-227
AryToBin Array Unsigned
Integer Conversion
Converts the elements of an array of BCD bit
strings into unsigned integers.
2-229
Data Type Con-
version Instruc-
tions
**_TO_*** (Integer-to-
Integer Conversion
Group)
Integer-to-Integer
Conversion Group
Converts integers to integers with different
data types.
2-232
**_TO_*** (Integer-to-
Bit String Conversion
Group)
Integer-to-Bit
String Conversion
Group
Converts integers to bit strings. 2-235
Type Instruction Name Function Page