G-CODEEIA/ISO · one-shot
G109

Single program multi-process control

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

When machining of different processes are performed by respective systems on a machine with two systems of headstock (HD1 and HD2), or turret (TR1 and TR 2), the two systems can be The program section from “G109L;” to “%” or to “G109L*;” is used for controlling the -system. The system number is to be specified by a value following the address L. 1. Even if a value following L includes a decimal point or negative sign (–), it is ignored. 2. In the mode of single-block operation, the stop can be performed after execution of G109 block. However, when the number specified by L belongs to the other system such as L2 in HD1 operation, the single-block stop does not occur. 3. G109 can be specified in the same block as G-codes other than of group 0. When specified in the same block as another G-code of group 0, the G-code specified later is effective. 4. The section from the head of a program to the place where G109 is commanded is common % Common to HD1 and HD2 (or TR1 and TR2) 5. One block including more than 128 characters causes an alarm (807 ILLEGAL FORMAT). 6. […]

G109 is one-shot (group 00) — it is valid only in the block where it is entered.

Programming format
G109 L_;
L = 1 : HD1 (or TR1)
2 : HD2 (or TR2)
The system number is to be specified by a value following the address L.
3. Notes
1. Even if a value following L includes a decimal point or negative sign (–), it is ignored.
2. In the mode of single-block operation, the stop can be performed after execution of G109
block. However, when the number specified by L belongs to the other system such as L2 in
HD1 operation, the single-block stop does not occur.
3. G109 can be specified in the same block as G-codes other than of group 0. When specified
in the same block as another G-code of group 0, the G-code specified later is effective.
4. […]
Address words
  • Example: G28 X Z; Common to HD1 and HD2 (or TR1 and TR2)
  • G109 L1;
  •  HD1 (or TR1)
  • M30;
  • G109 L2;
  •  HD2 (or TR2)
  • M30;
  • % Common to HD1 and HD2 (or TR1 and TR2)
  • 5. One block including more than 128 characters causes an alarm (807 ILLEGAL FORMAT).
  • 6. In the remainder of this chapter, “HD1” and “HD2” generally refer to “TR1” and “TR2”,
  • respectively, at once.
  • 7. The surface speed (cutting speed) of the respective turning spindles is to be specified, with
  • reference to the G109 condition, as follows:
  • G96S__R1 ............ to specify the surface speed for the 1st spindle under “G109L1”
Source

Mazak PROGRAMMING MANUAL for EIA/ISO PROGRAM, manual H747PB0030E, section 18-1 Two-Process Control by One Program: G109, p. 3-11, 18-1, 18-2. Reference and explanation only — not a reproduction of the manual.

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