Hi all,ive an arduino uno running gbrl 1.1f,every time i send an m7 command i get the error msg:unsupported or invalid g-code command found in block.streaming has been paused,says its error 20,it does it with laser mode both enabled and dissabled,min spindle speed is set to 250 and max 1000,can anyone give me a clue why im getting this?,cheers Paul.
M7 is disabled by default in grbl. You need to enable it in config.h and reflash the arduino. Check out the grbl wiki: gnea/grbl For my own education here, why do you want mist control with a laser?
Ok. M7 command is disabled (wont work) in the default grbl config. You need to compile a custom config. The link I sent you has directions to do this using the Arduino IDE. You will need to uncomment the the following line in config.h to make M7 work and not throw errors: Code: #define ENABLE_M7 // Disabled by default. Uncomment to enable. To uncomment that line, all you need to do is remove the # from the beginning of the line. This part of the instructions is important "Most users are just fine with Grbl's default build, but you can customize Grbl by editing the config.h file. It is extremely important to edit the files inside the Arduino library folder not the folder you imported the library from. This file enables or disables all of Grbl's additional compile-time options. There are descriptions in the file that explains what they all do. Once edited and saved, just follow the steps above to flash your custom Grbl build!"
M8 is enabled though.. That might be what you were actually looking for? M8=coolant on, M9=coolant off
Or are you trying to turn on the laser? M3 S1000 = enable laser with 100% power, but not on yet) G1 X10 (10mm move with laser on) M5 = disable laser