NCT Group 2000M Microscope & Magnifier User Manual


 
20 Custom Macro
166
G0 Z-[#18+#26] (retraction of the tool to the initial point)
M99 (return to the main program)
%
20.2.2 Macro Modal Call From Each Block (G66.1)
As a result of command
G66.1 P(program number) L(number of repetitions) <argument assignment>
all subsequent blocks will be interpreted as argument assignment, and the macro of the number
specified at address P will be called, and will be executed as many times as is the number specified
at address L.
The command produces the same effect as if each block were a G65 macro call:
The selected macro will be called until with command
G67
it is canceled.
The rules of argument assignment are
1.
In the block performing the activation (in which G66.1 P L has been programmed), the rules
of the argument assignment are the same as in command G65.
2.
In the blocks following instruction G66.1,
the same addresses can be used as in command G65, and
L: #12,
P: #16,
G: #10 with the qualification that the control will accept only one reference to an address G
in each block; programming several G addresses will produce error message 3005
ILLEGAL G CODE.
N: #14 if an N address is at the beginning of a block (or preceded at most by the address of
a conditional block "/"), the second N address will be considered for an argument:
if address N is in the middle of the block (preceded by any address other than "/"),
address N will be interpreted as an argument:
if address N has been recorded already as an argument, the next reference to
address N will produce error message 3064 BAD MACRO STATEMENT.
G66.1 P L
X Y Z
G65 P L X Y Z
M S
= G65 P L M S
X G65 P L X
G67
/N130 X12.3 Y32.6 N250
Block No.
#24=12.3
#25=32.6
#14=250
X34.236 N320
#24=34.236
#14=320