Is there a way to toggle the Spindle / Laser setting in gcode, like with an otherwise unused M directive?
My code comes from Carbide Create. I added two special tools coded T980 and T990.
- Creates new files with “MOD” in the filename and inserts extra check comments in code naming the tools
- In addition to making a modified master file, it creates an extra file per tool in case I want to re-run only part of the file.
- T990 for the laser. When it sees this tool it sets the height and suppresses Z movements; the laser settings which are substituted are at set at start of the code.
- T980 which causes the section for that tool to be skipped in the main output file.
Written in bash for Mac OSX. It processes the most recent file with a .nc extension that resides in the same directory as the executable. Works for me for making my work more reliable, but requires some understanding of coding to use wisely.
cnc.command.txt (2.4 KB)