
1. MACHINING PROGRAMS FOR
2–AXES (X AND Z AXIS) LATHES
B–62444E–1/04
TYPES OF MACHINING
PROGRAMS
376
The operation at the end of a machining program can be specified.
When the cursor is at a machining type item after a new process is created,
pressing the [END] soft key selects the program end process.
PROC(01) RETURN RETURN–X RETURN–Z RETURN–C END–M LOOP
END G00 100.000 80.000 0.000 M02 10
RETURN : Type of a return to be made at the end of
machining program execution
Select the desired code of RETURN from the
[G00], [G28] and [G30] soft key.
G28 : Return to the machine zero point.
G30 : Return to the second zero point (tool change
position).
RETURN–X, Z, C, F : Absolute coordinates of individual axis return
positions when G00 is selected on the above
menu.
The machine is moved only along the axis for
which a return position is entered.
END–M : M code indicating the end of a machining
program
Select one of [M02], [M30], or [M99].
When M02 is selected, M02 is output and the
program is terminated.
When M30 is selected, M30 is output and the
program is terminated.
When M99 is selected, the program is repeated
until it is forcibly reset by an external reset or
other factor.
LOOP : A program is repeated the specified number of
times. At the end of repetition, the specified
end M code, M02 or M30, is output. When
M99 is selected as an end M code, M02 is
output.
NOTE
When a program end process is not specified, program
termination can be specified with the following parameters.
(1) Bit 2 (EDM) of parameter No. 9772
0: M02 is output when the program is terminated.
1: M30 is output when the program is terminated.
(2) Bit 3 (280) of parameter No. 9774
0: T0;G28 U0 W0; is executed at the end of the program,
after which the program is terminated.
1: The program is terminated without T0;G28 U0 W0;
being executed at the end of the program.
1.12.2
Program End Process