Skip to main content

G-CODE M-CODE

Geometry code & miscellaneous code


For CNC turning only

G-CODE

G00Move in a straight line at rapids speed.as well as height speed limit of machine
G01Move in a straight line at last speed commanded by a (F)Feedrate
G02Clockwise circular interpolation at (F)Feedrate
G03Counter-clockwise circular interpolation at (F)Feedrate
G04Dwell: Stop for a specified time. 
G05FADAL Non-Modal Rapids
G09Exact stop check
  
G10Programmable parameter input
G15Turn Polar Coordinates OFF, return to Cartesian Coordinates
G16Turn Polar Coordinates ON
G17Select X-Y plane
G18Select X-Z plane
G19Select Y-Z plane
G20Program coordinates are inches
G21Program coordinates are mm
G27Reference point return check
G28Return to home position
G29Return from the reference position
G30Return to the 2nd, 3rd, and 4th reference point
G32Constant lead threading (like G01 synchronized with spindle)
G40Tool cutter compensation off (radius comp.)
G41Tool cutter compensation left (radius comp.)
G42Tool cutter compensation right (radius comp.)
G43Apply tool length compensation (plus)
G44Apply tool length compensation (minus)
G49Tool length compensation cancel
G50Reset all scale factors to 1.0
G51Turn on scale factors
G52Local workshift for all coordinate systems: add XYZ offsets
G53Machine coordinate system (cancel work offsets)
G54Work coordinate system (1st Workpiece)
G55Work coordinate system (2nd Workpiece)
G56Work coordinate system (3rd Workpiece)
G57Work coordinate system (4th Workpiece)
G58Work coordinate system (5th Workpiece)
G59Work coordinate system (6th Workpiece)
G61Exact stop check mode
G62Automatic corner override
G63Tapping mode
G64Best speed path
G65Custom macro simple call
G68Coordinate System Rotation
G69Cancel Coordinate System Rotation
G73High speed drilling cycle (small retract)
G74/G75Left hand tapping cycle also can b used for drilling

G75- grooving cycle
G76threading cycle
80Cancel canned cycle
G81Simple drilling cycle
G82Drilling cycle with dwell (counterboring)
G83Peck drilling cycle (full retract)
G84Tapping cycle
G85Boring canned cycle, no dwell, feed out
G86Boring canned cycle, spindle stop, rapid out
G87Back boring canned cycle also can be use for side face groove cycle spoke
G88Boring canned cycle, spindle stop, manual out
G89Boring canned cycle, dwell, feed out
G90Absolute programming of XYZ (type B and C systems)
G90.1Absolute programming IJK (type B and C systems)
G91Incremental programming of XYZ (type B and C systems)
G91.1Incremental programming IJK (type B and C systems)
G92Offset coordinate system and save parameters
G92 (alternate)Clamp of maximum spindle speed
G92.1Cancel offset and zero parameters
G92.2Cancel offset and retain parameters
G92.3Offset coordinate system with saved parameters
G94Units per minute feed mode. Units in inches or mm.
G95Units per revolution feed mode. Units in inches or mm.
G96Constant surface speed
G97Cancel constant surface speed
G98Return to initial Z plane after canned cycle
G99Return to initial R plane after canned cycle
 


M-CODE



Code
Function
M00Program Stop (non-optional)
M01Optional Stop: Operator Selected to Enable
M02End of Program
M03Spindle ON (CW Rotation)
M04Spindle ON (CCW Rotation)
M05Spindle Stop
M06Tool Change
M07Mist Coolant ON
M08Flood Coolant ON
M09Coolant OFF
M17FADAL subroutine return
M29Rigid Tapping Mode on Fanuc Controls
M30End of Program, Rewind and Reset Modes
M97Haas-Style Subprogram Call
M98Subprogram Call
M99Return from Subprogram

 


 

Comments

Popular posts from this blog

Fanuc Face grooving using G74

Fundamentals:- The cycle G74 stands for longitudinal cutting process. Where we remove material from face ether performing as drilling cycle or face grooving, the cycle is beneficial to cut stubborn materials like stainless steels. Because of complete material removal motion. In G74 cycle we can cut through along with 'Z' axis as well as 'X' axis, also can use on turnmill operations while drilling off centre drills. Format of G74:- ________ G74 R G74 P Q X Z F ________ R- retraction amount. P- shifting value while cutting along X axis in micron. Q- Depth of cut in micron. X- Cutting last destinations along X axis. Z- Cutting last destinations along Z axis. F- Feed. Note:- shifting value 'P' should not exceed the width of grooving tool. If tool width is 4mm then shifting value should be 3.5mm. Example:-   G00 X40.0 Z2.0; G74 R0.5 (shifting value); G74 P3500( 3.4 shift value) Q500 (depth of cut) X52.0 Z-7.0 F0.07; G00 Z10.0

Fanuc grooving cycle G75

Fundamentals This cycle does a peck drilling operation for grooving or drilling perpendicular to the axis. The cycle can actually be used to cut multiple grooves, or (on a machine with a C-axis and live tools) drill multiple radial holes at various positions along the length, The explanation here is restricted to cutting a single groove. Structure ______ G75  R G75  X  P  F _______ R= Retreat amount after each peck, radial distance. X= X coordinate of groove bottom (Diameter to cut).  P= Peck depth, radial distance in micron. F= Feed rate. We can remove material performing single groove same as insert thickness as well as more than that. Example of single groove as insert thickness ________ G00 X54.0 Z-20.0; G75 R0.5; G75 X30.0 P1000 F0.1; G00 X100.0 Z50.0; _____ Example of Groove more than insert thickness Let the groove width is 5mm of the above drowning ________ G00 X54.0 Z-20.0;   (using 3mm insert thickness) G75 R0.5; G75 X30.0 Z-25.0 P1000 Q2500 ...

Fundamentals of G72 Cycle

Introduction to G72 cycle This cycle generates a part shape from a cylindrical raw material, with cuts perpendicular to the axis. The cycle definition has the part shape, depth of cut, finish allowance and couple of other parameters. Fanuc G72 Facing Cycle If you have spent some time on cnc machine with fanuc control in cnc machine workshop, then you might surely have used  G72 Canned Cycle Facing  and cnc turning cycle G71. Because cnc cycle programming in fanuc cnc control is just easy. Why do we use cnc cycles read  pros and cons of cnc programming cycles . In this post I am going to elaborate the use, and programming of the  G72 Canned Cycle Facing  on Fanuc cnc control. Fanuc cnc control is widely used, no doubt one of the most favorite cnc control of cnc programmers, due to its ease of programming and durability. Programming G72 W R G72 P Q U W Parameters First Block Parameter Description W Depth of cut. R Return value after a cut is complete. Second Blo...