
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 269 -
Example
Data table
#20000
#20010
If X = #20011 (set 1), for example, executing G400
results in:
#8655 = 1 : Set 1
#8650 = 20020 : Start control variable number
in set 2
#8652 = 398 : 400 - 2
Set 0
#8650=20000 ;
#8651=10 ;
#8652=400 ;
#8653=10.5 ;
#8654=11.5 ;
#G400 ;
Set 1
#100=#8655 ;
With the above steps, this function
searches the data table shown at the
left, in which the first control variable
begins with #20000 and ten control
variables form one set, for a control
variable that satisfies the condition
10.5 ≤ X ≤ 11.5. If it finds such a
control variable, it returns the set
number where the control variable is
contained, using #8655. If no such
control variable is found, -1 is
returned.