What are G-codes for CNC programming and machining?
Publish Time: 2025-07-02 Origin: Site
What is G-code?
G-code is the most common CNC programming language used in CAM (Computer Aided Manufacturing) software to control automatic machine tools, also known as RS-274.
G code is the instruction in CNC program, or G instruction for short. Using G code, you can realize CNC machining functions such as fast positioning, reverse arc interpolation, parallel arc interpolation, midpoint arc interpolation, radius programming, and skip machining.
What is G code interpreter?
G code interpreter is an important module of digital controller software. CNC machine tools usually use G-code to decribe the machine's machining information, such as tool paths, coordinate selection, coolant turn-on, etc. The G-code is interpreted into the CNC system. Interpreting G code into data blocks that can be recognized by the CNC system is the main function of the G code interpreter.The openness of the G code interpreter is also an issue that must be considered in the design and implementation.
In he G code interpreter, the keyword decomposition of the G code is the skeleton, and the grouping of the code is the basis for syntax checking.
The G code interpreter reads the G code and interprets it into G intermediate code, then interpolation and position control processing, and finally the output module calls the driver to output to the PCI or ISA card of the CNC machine tool.
What does the G code stand for?
G00 Stands for quick positioning.
G01 Stands for linear interpolation.
G02 Stands for clockwise circular interpolation.
G03 Stands for counterclockwise circular interpolation.
G04 Stands for timed pause.
G05 Represents arc interpolation through the center point.
G06 Represents parabolic interpolation.
G07 Represents Z-spline interpolation.
G08 Represents feed acceleration.
G09 Represents feed deceleration.
G10 Represents data setting.
G16 Represents polar programming.
G17 Represents machining XY plane.
G18 Represents machining the XZ plane.
G19 Represents machining the YZ plane.
G20 Represents Inch Dimensions (Frank System).
G21 Represents metric dimensions (Frank System).
G22 Represents the programmed radius size.
G220 Represents for system operator interface.
G23 Represents the diameter size programmable.
G230 Represents used in the system operator interface.
G24 Represents end of subroutine.
G25 Represents jump machining.
G26 Represents cycle machining.
G30 Represents magnification write-off.
G31 Represents magnification resolution.
G32 Is for equal-pitch thread cutting, inch.
G33 Represents equal-pitch thread cutting, metric.
G34 Represents increased pitch thread cutting.
G35 Represents reduced pitch thread cutting.
G40 Represents tool offset/tool offset cancellation.
G41 For Tool Compensation-Left.
G42 For Tool Compensation-Right.
G43 For Tool Offset-Positive.
G44 For tool offset - negative.
G45 For Tool Offset +/-.
G46 For Tool Offset +/-.
G47 For Tool Offset -/-.
G48 For tool offset -/+.
G49 For tool offset 0/+.
G50 For tool offset 0/-.
G51 For tool offset +/0.
G52 For tool offset -/0.
G53 Represents a linear offset, write-off.
G54 For Linear Offset X.
G55 Represents linear offset Y.
G56 Represents linear offset Z.
G57 Represents linear offset XY.
G58 Represents linear offset XZ.
G59 Represents linear offset YZ.
G60 Represents Precise Path mode (Fine).
G61 Represents Precise Path Mode (Intermediate).
G62 Represents Precise Path Mode (Rough).
G63 For Tapping.
G68 Represents tool offset, inside corner.
G69 Represents tool offset, outside corner.
G70 Represents inch sizes.
G71 For Metric Dimensions.
G74 Represents return to reference point (machine zero).
G75 Represents return to programmed coordinate zero.
G76 For Threaded Compound Loop.
G80 Represents a fixed cycle cancel.
G81 Represents external fixed cycle.
G331 Represents threaded fixed loop.
G90 Represents absolute dimensions.
G91 Represents relative dimensions.
G92 Represents prefabricated coordinates.
G93 Represents countdown, feed rate.
G94 Represents feed rate, feeds per minute.
G95 Represents feed rate, feeds per revolution.
G96 Represents constant linear speed control.
G97 Represents cancel constant linear speed control.