Format of Subprogram
A subprogram is a section of machining command codes which can be called repeatedly.
Description
It must begin with the address word O and subprogram No. as the first line and end with M17 as the last line. In principle, commands like M30 and M17 are not allowed to appear among the subprogram, but nested subprogram is acceptable.
Programming Example
O9999
G91 G1X100
Y50
X-100
Y-50
G90
M17