G-CODEEIA/ISO · modal · group 14
G66.1

Modal user macro call B

Machine-specific. This G-code reference is specific to the Mazak INTEGREX e-670H / e-670H-S with the MAZATROL SmoothX control (EIA/ISO programming manual H747PB0030E). G-code availability depends on fitted options, and groups and behaviour differ between Mazak models and control generations — verify against the manual for your own machine before programming with any code.
What it does

Macroprogram call, data calculation, data input to/output from a personal computer, data control, judgment, branching, and various other instructions can be used with variables commands to perform measurements and other operations. A macroprogram is a subprogram which is created using variables, calculation instructions, control instructions, etc. to have special control features. These special control features (macroprograms) can be used by calling them from the main program as required. These calls use macro call instructions.  When command G66 is entered, the designated user macro subprogram willbe called every time after execution of the move commands within a block until G67 (cancellation) is entered.  Command codes G66 and G67 must reside in the same programm in pairs. together with any one for the following functions (described in this chapter):  Hole machining pattern cycle  Compound fixed cycle  Hole machining fixed cycle  Subprogram control

G66.1 is modal (group 14) — it stays in effect until another code of the same group replaces it.

Address words
  • Note: In order that it may function correctly, do not give a command of macro call in one block
Notes & precautions
  • In order that it may function correctly, do not give a command of macro call in one block
Source

Mazak PROGRAMMING MANUAL for EIA/ISO PROGRAM, manual H747PB0030E, section 13-16 Macro Call Function: G65, G66, G66.1, G67, p. 3-11, 13-114. Reference and explanation only — not a reproduction of the manual.

Not sure how to use it? Ask the Mazatrol assistant →