Programming instructions
NC Programming 17VRS Variable Assignments and Arithmetic Functions
10-9
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
The "INT" function delivers the next smallest whole number for the oper-
and.
Example
INT(1.99) 1
INT(1.01) 1
INT(-2.99) -2
INT(-2.01) -2
The SQRT function produces the square root of its operand.
Example
SQRT(2) 1.4142.
The "SQRT functions" does not permit any negative operands.
The operand for the SIN function is interpreted depending on which angle
unit is set (RAD, DEG).
Value range: -1 SIN(x) +1
Example
RAD
SIN(PI/6) 0.5
DEG
SIN(30) 0.5
The operand for the COS function is interpreted depending on which an-
gle unit is set (RAD, DEG).
Value range: -1 COS(x) +1
Example
RAD
COS(PI/6) 0.866..
DEG
COS(30) 0.866..
The operand for the TAN function is interpreted depending on which an-
gle unit is set (RAD, DEG).
Example
RAD
TAN(PI/4) 1
DEG
TAN(45) 1
The TAN function is not defined for
π
/2 and for -
π
/2.
The operand for the ASIN function must be greater than or equal to -1 or
less than or equal to +1.
When the angle unit “radians” is set:
Value range: -
π
/2 ASIN(x) +
π
/2
Example
ASIN(0.5) 0.523.. (
π
/6)
When the angle unit "degrees" is set:
Value range: -180 ASIN(x) +180
Example
ASIN(0.5) 30
Integer component
- INT
Square root
- SQRT
Sine - SIN
Cosine - COS
Tangent - TAN
Inverse sine
- ASIN