
B–63172EN/01
11. PROGRAM CONFIGURATION
NC FUNCTION
63
When there are fixed sequences or frequently repeated patterns in a
program, programming can be simplified by entering these pattern as sub
programs to the memory. Sub program is called by M98, and M99
commands return from the sub program. The sub program can be nested
4 folds.
O0001 ;
M98P1000 ;
M30 ;
O3000 ;
M99 ;
O1000 ;
M98P2000 ;
M99 ;
O2000 ;
M98P3000 ;
M99 ;
O4000 ;
M99 ;
M98P4000 ;
M99 ;
1–loop nesting
Main program Sub program
Sub program Sub program Sub program
2–loop nesting 3–loop nesting 4–loop nesting
M98 P fff ffff ;
M99 ;
Sub program call
Return from sub program
If the number of repetitive calls is omitted, 1 is assumed.
Number of repetitive
calls
Subprogram number
Sequence number can be given in a 5–digit number after the address N at
the head of the program block.
The sequence number of the program under execution is always displayed
on the screen. The sequence number can also be searched in the program
by the sequence number search function.
Either the EIA or the ISO code can be used as tape code. The input
program code is distinguished with the first end of block code (EIA: CR,
ISO: LF). See the List of Tape Codes for tape codes used.
11.4
SUB PROGRAM
Format
11.5
SEQUENCE NUMBER
11.6
TAPE CODES