I recently built a small CNC machine so I am now learning gcode. I have been to various tutorials and feel like I am getting it down, just not mastered.
I learn best by seeing examples of the several ways others to do things.
What I would ask is for you to post "your" gcode doing an engraving of a game of TIC-TAC-TOE in a 6”x6” grid. (That size should fit most machines)
The order you do it in does not matter, draw the grid (2 vertical and 2 horizontal lines) and fill it in with XOX,XOO,OXX. Make it 1/4“ depth with the deepest pass being 1/8” (2 passes). Cutter rotation is clock wise with a 1/8” bit. Last step is raising the bit. No need to home it.
Choose 1 of 2 goals:
1. Do it using the least lines of code. (don’t worry about tear out or up milling)
2. Make it the most efficient. (Clean cuts and least amount of machine movement)
Please use a lot of comments to describe what/why you are doing with the code. This will assist with learning. Comments don’t count as lines of code. If calling a sub program make sure that is included as well.
I want to see how others efficiently do things like repeat lines, call subroutines, use parameters and other gcode processes.
There are no prizes, just a chance to show off your skills. I am sure others can learn from this exercise as well.
I learn best by seeing examples of the several ways others to do things.
What I would ask is for you to post "your" gcode doing an engraving of a game of TIC-TAC-TOE in a 6”x6” grid. (That size should fit most machines)
The order you do it in does not matter, draw the grid (2 vertical and 2 horizontal lines) and fill it in with XOX,XOO,OXX. Make it 1/4“ depth with the deepest pass being 1/8” (2 passes). Cutter rotation is clock wise with a 1/8” bit. Last step is raising the bit. No need to home it.
Choose 1 of 2 goals:
1. Do it using the least lines of code. (don’t worry about tear out or up milling)
2. Make it the most efficient. (Clean cuts and least amount of machine movement)
Please use a lot of comments to describe what/why you are doing with the code. This will assist with learning. Comments don’t count as lines of code. If calling a sub program make sure that is included as well.
I want to see how others efficiently do things like repeat lines, call subroutines, use parameters and other gcode processes.
There are no prizes, just a chance to show off your skills. I am sure others can learn from this exercise as well.

