Modulo (mod) function, 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual
Page 207
Advertising

ND 2100G GAGE-CHEK
207
2.4 F
o
rm
ulas
Modulo (mod) function
The Modulo (mod) function is used to return the remainder of a
division operation. Modulo values can be calculated for any term or
collection of terms. The dividend and divisor are specified by the user
as arguments of the mod function. When the division is performed,
the remainder is assigned to a dimension.
To insert a mod function:
U
Press the MATH... soft key
U
Press the MOD dimension key
Modulo function.
Mod function syntax
A = mod(Dividend, divisor)
Results of the formula in the example below are shown in the
accompanying table for some values of C1 from 0 to 120 in regular
increments of 12
Example:
A = mod(C1,60)
C1
mod(C1,60)
0
0
12
12
24
24
36
36
48
48
60
0
72
12
84
24
96
36
108
48
120
0
Advertising