NCT Group 99M Microscope & Magnifier User Manual


 
20 Custom Macro
186
Division: #i = #j / #k
The code of the operation is /.
As a result of operation, variable #i will assume the quotient of variables #j and #k. The value
of #k may not be 0 or else the control will return error message 3092 DIVISION BY 0 #.
Remainder: #i = #j MOD #k
The code of the operation is MOD.
As a result of the operation, variable #i will assume the remainder of the quotient of variables
#j and #k. The value of #k may not be 0 or else the control will return error message 3092
DIVISION BY 0 #.
Example: at #120 = 27 MOD 4, the value of variable #120 will be 3.
Logical product, and - i# = #j AND #k
The code of operation is AND.
As a result of operation, the logical product of variables #j and #k will be entered in every bit
of the 32 bits in variable #i. Wherever 1 is found at each of the identical bit position of two
numbers, 1 will be found there in the result, otherwise 0.
Functions
Square root: #i = SQRT #j
The code of operation is SQRT.
As a result of operation, variable #i will assume the square root of variable #j. The value of #j
may not be a negative number.
Sine: #i = SIN #j
The code of operation is SIN.
As a result of operation, variable #i will assume the sine of variable #j. The value of #j always
refers to degrees.
Cosine: #i = COS #j
The code of operation is COS.
As a result of operation, variable #i will assume the cosine of variable #j. The value of #j always
refers to degrees.
Tangent: #i = TAN #j
The code of operation is TAN.
As a result of operation, variable #i will assume the tangent of variable #j. The value of #j
always refers to degrees. The value of #j may not be (2n+1)*90°, where n=0, ±1, ±2, ...
Arc sine: #i = ASIN #j
The code of the function is ASIN.
As a result of operation, variable #i will assume the arc sine of variable #j in degrees. The
condition –1##j#1 must be true. The result, i.e., the value of #i, lies between +90° and -90°.
Arc cosine: #i = ACOS #j
The code of the function is ACOS.
As a result of operation, variable #i will assume the arc cosine of variable #j in degrees. The
condition –1##j#1 must be true. The result, i.e. the value of #i, lies between 0° and 180°.