System information
SECTION FIVE - MISCELLANEOUS FUNCTIONS (M CODES)
When the main program calls a subprogram, it is regarded as a one loop nest. A two loop nesting
can be executed as shown below.
When used with an L___ command, an M98 command can call a subprogram repeatedly. An
L___ command can specify up to 999 repetitions of a subprogram.
Nesting with up to 50 loops is allowed.
M2 can be used instead of M99. If a subprogram ends without an M2 or M99 it will return to the
calling program as if an M2 or M99 was encountered.
Preparation of subprogram
A subprogram is the same as any other program.
Specifying M99 at the end of a subprogram is optional. If the program was called by an M98, an
M02, M30 or M99 will return. Subprograms are entered into memory in the same fashion as
normal programs.
318










