Search This Blog

Execute M Code in CNC machine

How to execute M - Code In CNC machine ?

1. Write a Tool Change Program

1.1 Tool name T0

1.2 Press EOB key

1.3 Input Tool Change Cycle Command  M06

1.4 Press EOB key 

1.5 Press Insert key  

1.6 Press  Cycle start key / Cycle start push button 

Program : 

T0 ; M06 ; %

2. Write a program  for Spindle  ON CW ( Clockwise ) direction 

2.1 Spindle speed S500


2.2 Input Spindle  ON CW  Command M03


2.3 Press EOB key 


2.4 Press Insert key  


2.5 Press  Cycle start key / Cycle start push button 

Program :

S500M03 ; %

3. Write a program  for Spindle  ON CWW ( Anticlockwise ) direction 


3.1 Spindle speed S500



3.2 Input Spindle ON CWW  Command M04



3.3 Press EOB key 



3.4 Press Insert key  



3.5 Press  Cycle start key / Cycle start push button 


Program :


S500M04 ; %