2.FOR Series 15-B
OPERATION
24 .
CALLING A SUBPROGRAM WITH Ml98
B-62694ENlOq
When the subprogram is called by Ml98 code in main
program stored in the memory of CNC, the CNC reads the
subprogram from the HDD.
Format of Ml98 code in the main program
M198P****L@@@@;
****
: the integer of four digits that expresses
the O-number
@@@@
: repeat time (from 1 to 9999). When it is
omitted, it is supposed to be 1.
The other item related to Ml98 code is based on “subprogram
call function” in external input/output devices.
Refer to the CNC’s manual in detail.
[Example]
Main program
Sub program
(the memory of CNC) (HDD of Data Server)
%;
OOOOl(MAIN PROGRAM);
M198P1234;
/
\
M30;
8
/
\
%;
01234(SuB PROGRAM);
M99;
%
NOTE
1 You must set “14” on the NC parameter of I/O Channel
(No.0022) in order to use this function.
2 You must set the NC parameter No.7616 #3(EXSC) to 1 in
order to operate this function.
3 You can not call the subprogram in the HDD again in the
called subprogram on this function, but you can call the
subprogram in the memory of CNC.
-134-