G-code, formally known as RS-274, is the most prevalent programming language for controlling CNC machines. It consists of sequential commands that instruct the machine on positioning, speed, and specific actions. Commands begin with a letter address; ‘G’ denotes preparatory commands for motion (e.g., G01 for linear feed), while ‘M’ signifies miscellaneous functions (e.g., M03 for spindle start).
