1
General Mach Discussion / Mach3, Lightburn and GRBL work arounds
« on: October 03, 2023, 02:50:42 PM »
So I have been using Mach 3 for control of my 10w diode laser for a few years now. I have PWM set up with M11/10 commands to turn the laser on and off. I have been using Lightburn with the GRBL M3 profile to generate code. The code needs to be modified to M11/10 commands to be compatible with my mach3 set up. This is easily done with edit/ find/replace all.
To work with the regular GRBL code you must add M10Px before every G0 move and M11Px Sxx after every G0 move. In GRBL G0 moves trigger the laser on and off with boards that are "compatible" with GRBL. The GRBL M3 does this for you but I am not able to get the M3 GRBL and Mach3 to play nice in controlling the power level. This profile only fires at 100% power for me as do the GRBL LCP and GRBL STM profiles. Regular GRBL is the only profile that I can get to fire at the given Sxx. command.
I usually cut thin wood veneers with my laser and this method works great as I am usually firing the laser at 100% power. Recently I discovered that no matter what Sxx command I put into my code, mach3 would ignore this and only fire at 100% power.
With some testing and manual edits as described above, I was able to get the regular GRBL profile in LB to give me code that mach3 would accept and fire the laser at the appropriate Sxx command. There are still a couple issues with this that I was hoping someone here might have an idea about.
Once I have a modified code that runs at the correct power output, if I REWIND this in mach3, it will go back to firing the laser at 100% power. Or if I add M30 to the end of the code and re-run it it also fires only at 100% power.
To work around this the only way to get it back to firing at the correct Sxx power level is to manually CLOSE G-CODE and LOAD G-CODE within mach3.
Does anyone here have an idea about why this might be happening?
I'm hoping that my discovery here might also help someone else and might even unlock pic engraving but I have not yet been able to test a code with different S commands in the same code yet.
Somewhere on this forum is my mach3 set up for PWM/M11/M10. I will try to find it and link to it just in case there are clues there.
To work with the regular GRBL code you must add M10Px before every G0 move and M11Px Sxx after every G0 move. In GRBL G0 moves trigger the laser on and off with boards that are "compatible" with GRBL. The GRBL M3 does this for you but I am not able to get the M3 GRBL and Mach3 to play nice in controlling the power level. This profile only fires at 100% power for me as do the GRBL LCP and GRBL STM profiles. Regular GRBL is the only profile that I can get to fire at the given Sxx. command.
I usually cut thin wood veneers with my laser and this method works great as I am usually firing the laser at 100% power. Recently I discovered that no matter what Sxx command I put into my code, mach3 would ignore this and only fire at 100% power.
With some testing and manual edits as described above, I was able to get the regular GRBL profile in LB to give me code that mach3 would accept and fire the laser at the appropriate Sxx command. There are still a couple issues with this that I was hoping someone here might have an idea about.
Once I have a modified code that runs at the correct power output, if I REWIND this in mach3, it will go back to firing the laser at 100% power. Or if I add M30 to the end of the code and re-run it it also fires only at 100% power.
To work around this the only way to get it back to firing at the correct Sxx power level is to manually CLOSE G-CODE and LOAD G-CODE within mach3.
Does anyone here have an idea about why this might be happening?
I'm hoping that my discovery here might also help someone else and might even unlock pic engraving but I have not yet been able to test a code with different S commands in the same code yet.
Somewhere on this forum is my mach3 set up for PWM/M11/M10. I will try to find it and link to it just in case there are clues there.