M98 AND M99 CODE EXAMPLE

Introduction Of M98 and M99 Code:-

free Cnc online classes, Cnc online classes
Description

M98 Code is used to call the Sub-Program.
M99 Code is used to call the Main Program.

The Main Program is the Default program that is you are using to do the main cutting procedure.

Drawings for Milling

Sub-Program(M98):-  

The Sub-Program is used in many types of situations like we can use these programs to copy and paste in other programs or if we want to repeat the work process again and again. With the use of an M98 code, we can call the Sub-Program through the Main Program. 
Suppose, we are on the main program. Now I want to run a cutting procedure Like I want to do drill in the workpiece. But this cutting procedure or Drilling procedure is already written in my machine with another name of a Program. So, to save my time I just call that Drilling Program through the Main Program With the use of M98 Code.

Method to write Sub-Program:-

M98.......P......

M98:- Sub-Program call.
P:- Program Number.
Like if I just want to call the O0098 Program in the Main Program. So it will be written as:-

M98P0098;

Main Program(M99):-

The Main Program is the Default program that is you are using to do the main cutting procedure. While you are using M98 Code, The program is calling the Sub-Program. After it completes the cutting procedure through Sub-Program, the program has to return to the Main program. To return the Sub Program to the Main Program we use the M99 Code.

Method to write Main Program:-

M99......P.......

M99:- Return to the Main Program.
P:- Program number.
Now we want to return to the Main Program. The number of Main Program is O0093. So, it will be written as:-

M99P0093;

M98 AND M99 CODE EXAMPLE:-

Main program:-

Cnc online course, free Cnc online course
M98 AND M99 CODE EXAMPLE


O0093
G17G21G54G90
M06T01
M08
M03S3180
G00X0Y0Z5F10176
G01Z-5
Y100
X100
Y0
X0
X5
Y95
X95
Y5
X5
G01Z20
M06T02
G00X100Y100Z5
M98P0098
G00X35Y100
M98P0098
G00X150Y100
M98P0098
G28Z0
M05M09
M30
%



free Cnc online course, Cnc online course
M98 AND M99 CODE EXAMPLE


Sub-Program:-

O0098
G90G54
G81Z-5R3F2544
G91X10Y0
X-10Y10
X-10Y-10
X10Y-10
G80G90G01Z20
M99P0093

%


free Cnc online course, Cnc online course
M98 AND M99 CODE EXAMPLE
Home


M98 AND M99 CODE EXAMPLE M98 AND M99 CODE EXAMPLE Reviewed by Avtar Jassal on November 29, 2018 Rating: 5

5 comments:

Powered by Blogger.