- You are here:
- AM.CO.ZABuythisCNC Utilities Homepage
- PowerRoute-CNC-Router
- Mill Programming Manual.pdf
- Page 80 of 151
1. G Function Description
1.2.29 G66/G67: MACRO CALL
Command form:
G66 P L ;macro call
G67 ;macro call cancel
P: number of the program to call;
L: repetition count;
Description:
After G66 is called, P is called to execute and L__ indicates
repeating times. If there is a moving block, G66 block will be executed
again after moving block ends until using G67 to cancel it.
Example:
G91
G66 P10 L2 X10.0 Y10.0 //repeat twice calling sub-program O0010
and set X=10.0 and Y=10.0 into sub-program.
X20.0 //Move to position X=20.0. After moving, call G66 P10 L2
X10.0 Y10.0.
Y20.0 //Move to position Y=20.0. After moving, call G66 P10 L2
X10.0 Y10.0.
G67 //Cancel macro call mode.
75