Loop function, 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual
Page 243

ND 2100G GAGE-CHEK
243
2.4 F
o
rm
ulas
Loop function
The loop function performs an evaluation or operation repeatedly
through a specified number of execution loops.
To insert the Loop function:
U
Press the OTHER... soft key
U
Press the XTRA dimension key
U
Use the arrow cursor keys to highlight Loop
U
Press the ENTER key
Loop function.
Loop function syntax
Loop(number of loops, evaluation or operation)
Example:
A = Loop(5,C1+C2)
Gets the sum of C1 and C2 5 times for every dimension evaluation.
The loop function must be contained by an OnEvent, Sequence or
some other function, to prevent the loop from being executed
continually at the dimension evaluation rate.
A = OnEvent9(Loop(5,C1+C2)
The loop execution is now constrained by the OnEvent function and
will be executed only once when the number 9 key is pressed.