CNC/VMC M - Code

CNC/VMC  Machine M - Code




M00 - Program stop Unconditionaliy

M01 - Optional programme stop conditionally

M02 - End of programme

M03 - Spindle on (Clockwise)

M04 - Spindle on (Anti - clockwise)

M05 - Spindle stop

M06 - Programme stop (Manually tool change)

M08 - Coolant on

M09 - Coolant off

M17 - Spindle off/Coolant off

M19 - Oriented spindle stop

M21 - Mirror imaging about the X-axis

M22 - Mirror imaging about the Y-axis

M23 - Mirror imaging cancel

M30 - End of programme


M38 - Door close

M39 - Door open

M48 - Override cancel off

M49 - Override cancel on

M98 - Transfer control to a sub routine

M99 - Return from a sub routine

G- Code for cnc/vmc machine -
https://www.cncrules.com/2018/05/blog-post_25.html

CNC Lathe Machine Programme -- Step Turning Operation

CNC Lathe Machine Programme -- Step Turning Operation




N01 G54G71G90G94

N02  T1D1

N03  M03F1000S50

N04  G00X5Z0

N05  G01X-10

N06  G01Z-500

N07  G00X50

N08  G00Z0

N09  G01X-20

N10  G01Z-400

N11  G00X50

N12  G00Z0

N13  G01X-30

N14  G01Z-300


N15  G00X50

N16  G00Z0

N17  G01Z0

N18  G01Z-200

N19  G00X50

N20  M05

N21  G75X0Z0

N22  M02





Click for explanation and practical of above cnc lathe machine programmme--





Simple CNC Drilling Operation Programme

Simple CNC Drilling Operation Programme -





Drilling operation programme is as below 

N01 G17G40G54G71G90G94
N02 T1D1
N03 M03S1000F50       
N04 G00X50Y50Z10
N05 G01Z-10
N06 G00Z10
N07 M05
N08 G75X0Y0Z0
N09 M30



Simulation of above programme with working offsetting and tool setting -




CNC/VMC - G Code

Important CNC/VMC - G Code


VMC G- Code


G01 - Rapid Motion

G02 - Linear Interpolation

G03 - Circular interpolation Clockwise

G04 - Circular interpolation Counter Clockwise

G17 - For XY Plane

G18 - For XZ Plane

G19- For YZ Plane

G40 - Tool Nose Radius Offset Cancel

G41 - Tool Nose Radius Offset Left

G42 - Tool Nose Radius Offset Right

G54 - G59 - Work Coordinate Offset


G70- Inch Input (G20 - Inch Input For Faunc)

G71 - Metric Input (G21 - Metric Input For Faunc)

G75 -  Home Position (G28- For faunc)

G90 - Absolute Coordinate System

G91 - Incremental Coordinate System

G94 - For Feed in mm/min

G95 - For Feed in mm/rev

M-code for cnc/vmc machine -
https://www.cncrules.com/2018/05/blog-post.html


For More details for G code and understand visit following video--





CNC Drilling Operation Programme

CNC Drilling Operation Programme






Drilling operation programme is as below



N01 G17G40G54G71G90G94
N02 T1D1
N03 M03S1000F50                        
N04 G00X10Y10Z10                                                           
N05 G01Z-5
N06 G00Z10
N07 G00Y35
N08 GO1Z-5
N09 G00Z10
N10 G00X30Y15
N11 G01Z-5
N12 GOOZ10
N13 G00Y35
N14 G01Z-5
N15 G00Z10
N16 M05
N17 G75X0Y0Z0  (FOR FAUNS USE G28)
N18 M30



For Explanation of above programme see this video...






















See Practically Work  Video of above Programme...