| 
                       CNC G-Code and CNC M-code are instructions to the varius CNC machine tools (CNC Mills, CNC Lathes, CNC Routers etc). 
                      G-code (also RS-274) 
                          is used in computer-aided manufacturing (CAM-systems) to control CNC equipment. 
                      G-code and M-codes 
                          instructions are provided to a computer numerical control machine controller 
                          (pre-read in the interpreter) that controls the stepper motors or servo motors.. 
                       
                      These are the common G-codes and M-codes for machining.  
                        
                       G-codes (Preparatory Functions) 
                     
                          
 
 
                        
                      M-codes (Miscellaneous Functions) 
                      
                           
                              
                                  |  M00 | 
                                  
                                       
                                      Automatic stop (CNC program end). 
                                      Read more. 
                                       
                                   | 
                               
                              
                                  |    
                                      M01  | 
                                  
                                       
                                      Optional stop (Sleep). 
                                      Read more. 
                                       
                                   | 
                               
                              
                                  |    
                                      M02 | 
                                  
                                       
                                      End of CNC program. 
                                      Read more. 
                                       
                                   | 
                               
                              
                                  |    
                                      M03 | 
                                  
                                       
                                      Spindle on clockwise. 
                                      Read more. 
                                       | 
                               
                              
                                  |    
                                      M04 | 
                                  
                                       
                                      Spindle on counterclockwise. 
                                      Read more. 
                                       | 
                               
                              
                                  |    M05  | 
                                  
                                       
                                      Spindle off. 
                                       | 
                               
                              
                                  |    M06  | 
                                  
                                       
                                      Tool change. 
                                       | 
                               
                              
                                  |    M07  | 
                                  
                                       
                                      Coolant A on (mist). 
                                       | 
                               
                              
                                  |    M08 | 
                                  
                                       
                                      Coolant B on (flood). 
                                       | 
                               
                              
                                  |    M09 | 
                                  
                                       
                                      All coolant off. 
                                       | 
                               
                              
                                  |    M10 | 
                                  
                                       
                                      Pallet clamp (Vacuum) on. 
                                       | 
                               
                               
                                  |    M11 | 
                                  
                                       
                                      Pallet clamp (Vacuum) off. 
                                       | 
                               
 
                                  |    
                                      M30 | 
                                  
                                       
                                      End of tape (End of CNC program, with return to CNC program top). 
                                      Read more. 
                                       
                                       | 
                               
                           
                      
                        
                      
                          Useful links: 
                      
                          1. Free online G-code generators for a various geometric shapes.  
                          2. Free online G-code generators for facing.       
                          3. Free online G-code generators for drilling.       
                          4. Free online G-code generators for engraving.      
                          5. Offline Windows program - Intuwiz G-code Generator. 
 
                      
                          
                            
                       
 
                   |