4 f o rm ulas – HEIDENHAIN ND 2100G User Manual
Page 241

ND 2100G GAGE-CHEK
241
2.4 F
o
rm
ulas
Variables as loop or event counters
Variables can be incremented or decremented to serve as loop or
event counters. Incrementing a variable increases its value by a
specified amount at each increment. Typically, a variable is
incremented or decremented each time a loop is executed or an event
occurs, and its value is tested to determine if the required number of
loops or events have taken place.
A = Var1()
Assigns the value of Var1 to dimension A.
Syntax for incrementing the value of a variable
Var#(Var#() + increment value)
Example:
Var1(Var1()+1)
Increments the value of variable Var1 by one.
Syntax for decrementing the value of a variable
Var#(Var#() - increment value)
Example:
Var1(Var1()-1)
Decrements the value of variable Var1 by one.
Syntax for reading the value of a variable