
12. PROGRAM CONFIGURATION
12.1 Main Program and Subprogram
Main program Sub program .
Sub program
1 -loop nesting
02000;
M98p3000;
24oop nesting
A call command can call a subprogram repeatedly. A call command can specify
up to 999 repeations of a subprogram.
(a) Preparation of subprogram
A subprogram is prepared in the following format:
O(:)o Cl II 0 ; Subprogram number
. . . . . . . . . . . . . . . ’
I
. . . . . . . . . l .**.m.
9
0
0
0
. . . . . . . . . . . . w.0.
9
Subprogram
M99;
At the top of subprogram, a subprogram No. identifying the subprogram is
specified after ” 0” (EIA) or ” :” (ISO). Specify M99 at the end of a sub-
program. Subprogram end command “M99” need not be specified in a block
by itself.
Example) X . . . . . M99 ;
For how to enter subprograms into memory, see Chapter 11-9.
l-39