Simply put, G-code is a software programming language used to control a CNC machine. And, even with complex CNC machining, G-code is written in a straightforward, logical way. A “G” is followed by a number, which is a command to change geometry. For instance, “G00” is a command for rapid movement.