SUPPLEMENT 5
5-9
K. Macro call function
1. Command
G65 <Program Name> Ll <Argument>
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.
Possible
(own program will be repeated)
Program Name
(included characters (A to Z)
or any symbols)
Possible
(own program will be repeated)
The value is to be delivered to
the user macro subprogram
as a local variable,
(A_ B_ C_ …. X_ Y_ Z_)
L. Selection between diameter and radius data input
1. Command
The G10.9 command allows changeover between diameter data input and radius data
input, facilitating the creation of the turning section in a compound machining program.
The axis motion command on the X-axis is switched
between radius data input and diameter data input.
X0: Radius data input
X1: Diameter data input
2. Notes
Give the G10.9 command in a single-command block.
M. Two-process control by one program
1. Command
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 controlled by a single program.
The program section from “G109Ll;” to “%” or to “G109L*;” is used for controlling the l-system.
2. Sample program
G28 X Z
G109 L1
:
M30
G109 L2
:
M30
Common to HD1 and HD2 (or TR1 and TR2)
HD1 (or TR1)
HD2 (or TR2)
Serial No. 294060
Copyright (c) 2013 YAMAZAKI MAZAK CORPORATION. All rights reserved.