The Virtual Machine Shop

subprogram call

This is action in a CNC program requests that the main program jump to a sub program and run its code. It is usally coded as an M98

N300 M98 P7001 (tells the main program to jump to propgram O7001)

%
O7001 (SUBPROGRAM)
N010...
N020...
N030 M99 (tells the subprogram to go back to the main program and continue)
%