
B–62444E–1/04
1. MACHINING PROGRAMS FOR
2–AXES (X AND Z AXIS) LATHES
TYPES OF MACHINING
PROGRAMS
371
(1) A subprogram must be created in the program area of the NC.
(2) No programs can be called from a subprogram.
(3) G–codes, address specification, NC format programs including
auxiliary functions, and custom macro instructions can be used.
However, subprogram calling (M98 ...) or subprogram calling using
an M–, T–, or G–code cannot be performed.
(4) Only when a custom macro function is provided, data 1 to data 4
specified in a process of calling subprograms can be read using
custom macro variables #20206 to #20209.
In sub–call process II, any subprograms stored in part program storage can
be called and up to 21 variables can be specified.
A called subprogram can call other subprograms with a nesting level of
up to seven (with a nesting level of four when using custom–macro call
G65, or with a nesting level of three when using subprogram call M98).
To use sub–call process II instead of the conventional sub–call process,
set bit 3 (CS2) of parameter No. 9771 to 1.
NOTE
The conventional sub–call process is not compatible with
sub–call process II. To use sub–call process II from a point
part–way through a program, any sub–call processes that
have already been created must be deleted.
To enter sub–call process II, press the [CA.SUB] soft key in the same way
as for a conventional sub–call.
PROC(02) HEAD PROGRAM DATA A DATA B DATA C DATA I
CALL SUB HEAD–L 5555
DATA J DATA K DATA D DATA E DATA F DATA H DATA M
1.10.3
Notes on Subprograms
1.10.4
Selecting the Type of
Machining
(For Sub–call II)