CNC Lathe G codes G codes numbered between g00 – G99 are used in chip removal operations CNC is one of the most humid codes in the writing of programs.
G codes numbered between g00 – G99 are used in chip removal operations CNC is one of the most humid codes in the writing of programs.
goo – go : fast progress at idle, fast movement of the cutting tool at idle without removing chips
GO1 G1: the movement of the cutting tool in contact with the work par-ace, removing the sawdust
GO2-G2: curvilinear interpolation in the clockwise direction of rotation (CW)
G03 – G3: curvilinear interpolation in the opposite direction of clock rotation (CCW)
G04 – G4: making temporary standby
G17: making X-Y plane selection
G18: making X-Z plane selection
G19: making a Y-Z plane selection
G20: introduction to inch measurement system
G21: introduction to Metric measurement system
G27: return control to bench reference point
G28: sending CNC machine to zero Point
G31: line jump command
G32: threading command
G34: Variable-step threading command
G40: Cutting tool tip radius compensation cancellation
G41: Cutting tool tip radius compensation (left)
G42: Cutting tool tip radius compensation (right)
G50: Maximum machine spindle speed limit
G54:Workpiece zero point
G55 - G59:Selection of different reference points of workpiece
G70: Finish turning cycle
G71: Automatic rough external turning parallel to the Z axis
G72: Automatic rough external turning parallel to the X axis
G73: External diameter turning cycle according to Profile
G74: Drilling cycle on Z axis
G75: Grooving and cutting cycle on X axis
G76: Multi-pass automatic threading cycle
G80: Cancellation of cycles
G83: Gradual drilling cycle
G84: Threading (tapping) cycles
G90: Cylindrical outer diameter/inner diameter turning cycle (single pass)
G92: Threading cycle
G94:Face turning cycle parallel to X axis
G96: Constant surface cutting speed
G97: Fixed revs
G98: Advance (mm / min)
G99: Advance (mm / rpm)
CNC Lathe m codes (Mnn)
M codes are auxiliary function codes used in writing CNC Turning programs. These codes are codes that facilitate the cutting process, and two M codes are not used in the same line. It consists of the letter M and the 2-digit digits that follow it.
M00 – M0 :Program stop. When this command is read, the program stops. The Cycle Start button is pressed to continue.
M01 – M1 : optional stop (the program stops if the Optional Stop Switch is active). The Cycle Start button is pressed to continue.
M02 – M2 : End of Program (in one part manufacturing)
M03 – M3 : Rotate the workbench Clockwise (CW)
M04 – M4 : Counterclockwise (CCW) rotation of the workbench
M05 – M5 : Stop machine shaft
M06 – M6 :Change cutting tool
M08 – M8 : Opening coolant
M09 – M9 : Turning off coolant
M18: Mirror decoding (c axis cancellation)
M19: Mirror locking (c axis mode)
M30: End the program and return to the program again
M98: Calling subroutines
M99: End of subroutine (return to main program)
In the writing of CNC programs, there is no obligation to write Zero (0) numbers to the left of the G and M codes. Writing or not writing these zero digits is not considered an error in program format maintenance.
M0, during program execution, the CNC machine stops and waits, regardless of the position of the Optional Stop Switch, when this MO line of the program is reached. The standby time is until you press the Cycle Start button again. When Cycle Start is pressed, the program resumes from where it left off..
The M0 command is especially preferred for measuring control, or for processing workpieces that will be processed with the same program on both sides. After the first end of the workpiece is processed, the CNC machine that sees the M0 command stops. The part is dissolved and reconnected from the machined part. The Cycle Start button is pressed, and this time the previously unprocessed end of the workpiece is processed. Here, it is not necessary that the programs to be processed at both ends are the same. The only important point is that the clamping diameters must be close to each other. In this way, there is no need to re-adjust the mirror legs.
The M0 command is sometimes also used in drilling deep holes. Especially when drilling soft materials, the material can clog drill channels. In such cases, the drill is taken out of the workpiece and the CNC machine is stopped with the M0 command. After the end of the drill is cleaned, the drilling process is continued by pressing the Cycle Start button again.
M1 is an optional stop / stop command. During running the program, when this M1 line of the program is on, if the Optional Stop Switch is in position, the machine stops. In order to continue the process from the Left place, you need to press the Cycle Start button again. In other words, even if we have written the M1 command in the CNC program, the Optional Stop Switch button on the control unit must be in position ten for the machine to stop. If the Switch is in the OFF position, the machine continues to process as soon as it stops.