
5.PROGRAM INPUT NC FUNCTION B-63942EN/02
- 208 -
- Sub program call
- When a sub program with a 4-digit or shorter program
number is called
M98 Pxxxx xxxx ;
Sub program number
Number of times the sub program is called repeatedly
- When a sub program with a 5-digit or longer program
number is called
M98 Pxxxxxxxx Lxxxxxxxx ;
Sub program number
Number of times the sub program is called repeatedly
- When a sub program is called by file name
M98 <xxxx> Lxxxxxxxx ;
Sub program file name
Number of times the sub program is called repeatedly
NOTE
1 When a sub program with a sub program number shorter
than 4 digits is called, the length of the sub program number
must be adjusted to 4 digits by adding 0(s) to the beginning
of the program number.
Example)
P100100: Call sub program No. 100 ten times.
P50001: Call sub program No. 1 five times.
2 If the number of times the sub program is called repeatedly
is omitted when a sub program with a 4-digit or shorter
program number is called, the sub program is called just
once.
In this case, it is not necessary to adjust the sub program
number length to 4 digits as described in Item 1 above.
3 When calling a sub program with a 4-digit or shorter program
number, do not specify address L in the same block.
4 When calling a sub program with a 5-digit or longer program
number, do not omit the specification of the number of
repeats.
5 When calling a sub program by file name, be sure to specify
the file name immediately after M98.
- Return from a sub program
M99 ;
M99 need not be specified in a block that specifies no other
commands.