,cnc machinist,cnc manufacturing,cnc mechanic,cnc mill,cnc milling center,cnc milling companies,cnc milling tools,cnc parts,cnc plasma cutter,cnc plasma cutting,cnc plasma table,cnc production,cnc router table,cnc screw machine,cnc service,cnc swiss,cnc turning,cnc turning center,cnc turning centers,cnc vertical lathe,horizontal cnc,how to cnc machine,machining cnc,manufacturing cnc machines,okuma cnc,plasma cnc machine,production cnc machining,troubleshooting cnc machines,used cnc machine tools,used cnc milling machines,vertical cnc lathe,what can a cnc machine make
Subprogram Call: M98, M99
Function and Purpose
Fixed sequences or repeatedly used program can be stored in the memory as subprograms which can then be called from the main program when required.M98 serves to call sub programs and M99 serves to return from the subprogram. Furthermore, it is possible to call other subprograms from particular subprograms and the nesting depth can include as many as 8 levels.
Programming Format:-
Subprogram call
M98 P__ Q__ L__ ;
P = program number
Q = sequence number in subprogram to be called
L = number of sub program repetitions
Return to Main Program from Subprogram:-
M99 P__ L__ ;
P = sequence number of return destination
L = number of times after repetition number has been changed
Example:-
O1234 ;
0000000;
;
;
M99;
%
Notes:-
Main programs can be used during memory and tape operation but subprograms must have been entered in the memory.
The following commands are not the object of subprograms nesting and can be called even beyond the 8th nesting level
Subprogram Execution
M98 : subprogram call command
M99 : subprogram return command