✓ Uygun fiyat, Yüksek Performans✓ Hızlı Teklif ve Bilgilendirme✓ Stoktan Hemen Teslim Makinalar
📅 2025-04-27

G and M Codes of CNC Machines

G and M Codes of CNC Machines

CNC (Computer Numerical Control) is a technology used to control machining tools through a computer-controlled system. The foundation of CNC lies in G-code and M-code. G-code controls the movement of the cutting tool, while M-code typically manages various functions of the machine.

Here are some commonly used basic G and M codes:

G Codes:

G00: Rapid positioning (Fast movement to a location)

G01: Linear movement (Linear interpolation)

G02: Circular interpolation in clockwise direction

G03: Circular interpolation in counterclockwise direction

G04: Dwell (pause or delay)

G17, G18, G19: Plane selection for XY, XZ, and YZ planes (Plane selection)

G20: Operation in inch mode

G21: Operation in millimeter mode

G28: Return to reference point (home)

G90: Absolute coordinate mode (Absolute programming)

G91: Incremental coordinate mode (Incremental programming)

M Codes:

M00: Program stop

M01: Optional stop

M03: Spindle on, clockwise rotation

M04: Spindle on, counterclockwise rotation

M05: Spindle stop

M06: Tool change

M08: Coolant on

M09: Coolant off

M30: Program end, rewind and reset

M98: Subprogram call

M99: Return from subprogram

These codes are widely used in CNC machining centers, though each CNC machine may have manufacturer-specific variations, so it is important to refer to the user manuals.

---

Note: The names SIFIR MAKINA, Wiesser, Fanuc, and Mitsubishi were preserved as requested.