This list comes from the Mach3 usage manual in chapter 10 Mach2 G- and M Code Language Reference ( ). If you are writing your own g-code, Mach3 has an extensive list of g-codes and m-codes which is listed below. Depending on the CAM or CAD (with CAM support), there should be a post processor for Mach3 built-in. Mach3 is a widely used CNC control software.