26 programming variables, Fundamentals – HEIDENHAIN MANUALplus 4110 User Manual
Page 396

396
6 DIN Programming
6.26 Pr
ogr
amming V
a
ri
ables
6.26 Programming Variables
Fundamentals
The MANUALplus interprets NC programs before the program run.
The system therefore differentiates between two types of variables:
# variables are evaluated during NC program interpretation.
V variables (or events) are evaluated during NC program run.
The following rules apply:
Multiplication/division before addition/subtraction
Up to 6 bracket levels
Integer variables (only for V variables): Integer values between –
32767 and +32768
Real variables (with # and V variables): Floating point numbers with
max. 10 integers and 7 decimal places
The V variables are retained even if the control has been switched
off in the meantime.
Syntax
Mathematical functions
+
Addition
–
Subtraction
*
Multiplication
/
Division
SQRT(...)
Square root
ABS(...)
Absolute amount
TAN(...)
Tangent (in degrees)
ATAN(...)
Arc tangent (in degrees)
SIN(...)
Sine (in degrees)
ASIN(...)
Arc sine (in degrees)
COS(...)
Cosine (in degrees)
ACOS(...)
Arc cosine (in degrees)
ROUND(...)
Round
LOGN(...)
Natural logarithm
EXP(...)
Exponential function ex
INT(...)
Cut decimal places
Only with # variables:
SQRTA(.., ..) Square root of (a
2
+b
2
)
SQRTS(.., ..) Square root of (a
2
–b
2
)