
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–61803E–1/10
PROGRAMMING
130
The following operation functions can be used:
Sine (SIN)
Arcsine (ASIN)
Cosine (COS)
Arccosine (ACOS)
Tangent (TAN)
Arctangent (ATAN)
Square root (SQRT)
Absolute value (ABS)
Rounding up or down to the nearest whole number (ROUND)
Rounding off to the nearest whole number (FIX)
Rounding up to the nearest whole number (FUP)
Natural logarithm (LN)
Exponent (EXP)
Logical sum (OR)
Exclusive logical sum (XOR)
Logical product (AND)
The functions above have the same effect as the operation instructions of
custom macro B. For the precision, data format, operation precision, and
so forth of the functions, refer to the OPERATOR’S MANUAL of each
Series.
The functions can be used with an conversational macro, auxiliary macro,
or execution macro. When the functions are used with an execution
macro, the option for custom macro B is required for the CNC.
To find the value assumed by a function for a given value, enter the given
value in #101, then execute the corresponding instruction indicated
below. Then, the result is substituted into #101.
Example)
Logarithmic function (LN)
#100 = LN[#101] ;
Exponential function (EXP)
#100 = EXP[#101] ;
Arcsine function (ASIN)
#100 = ASIN[#101] ;
Arccosine function (ACOS)
#100 = ACOS[#101] ;
6.30
OPERATION
FUNCTIONS
6.30.1
Overview
6.30.2
Operation