G-CODE PROGRAMMING CNC

Almost all CNC machine are controlled by a common programming language called G-code. Even though this standard language exists, not all machines can perform every G-code command. The list of G-code commands that our machine is capable of performing is located on the CNCMill wiki page. For simple parts it is not hard to manually write all of the G-code, but for complex parts, the number of lines of G-code can be in the millions. Fortunately, computer aid manufacturing (CAM) software can generate G-code based on a drawing or solid model eliminating the need to write the G-code manually. But, to further your understanding of CNC machining, you should review the G-code commands to get a sense for how the machine operates. Also, in some cases, the G-code generated by the CAM software is not perfect and has to be edited manually. This is particularly true for the canned drill commands.
Only a few commands are needed to make your logo. Please consult the CNC manual for all of the G codes available. An example G-Code program is listed below that cuts a square with an inscribed half circle shown as shown in Figure 1. The top of the part is assumed to be at a Z depth of 0.000in. The program will cut the shape 0.020in deep. Use notepad to write your G-Code and save it as a text file.

G-CODE PROGRAMMING CNC