I have to print on both sides of an object and want to pause the laser so I can turn the object over to print the second side.
I have Lightburn 1.7.08 running on Windows 11 and a Snapmaker 2 A350T. I currently use Lightburn and transfer the design to Luban, then modify the .nc file in Visual Studio Code to add a pause using M76.
Can Lightburn run a gcode generated in the program that has been modified in VSC to have a pause, load the file into LB, and then pause the job until resumed.
A more “logical” approach would be to divide the project into two layers, front and back. This is how I make two-sided projects like awards or small key chain pendants, etc. Only the side/layer that is selected will be processed at a time.
First, you can also export the gcode in LB, if that’s the only task you use Luban for.
The best process would be like Bernd suggested, make two tasks out of it. That’s like “everyone else” does it.
You can also try to add your device as custom gcode device and add manual codes:
I never tested this, so i don’t know if it helps in your case.
Thanks for the reply. The current job is a simple text on both sides and then a cutout of the shape. I adjust the cutout in LB and then export as a DFX and load into Luban where I add the text. I then save the .nc file and modify in Visual Studio and reload into Luban. I transfer the .nc file via Wi-Fi to my Snapmaker 2 laser from Luban. The machine pauses at the M76 command and then I press resume after turning over the part. I have saved the LB .nc file and then loaded into Luban to transfer. However, I am currently out of material and will try using a modified LB .nc file. Luban produces a Gcode file whereas LB produces a grbl file. Both seem to work on the laser, but I am not sure the M76 will pause the laser. Will try soon. Again thanks.
It’s possible I don’t understand your approach, but why does it have to be so complicated?, can’t it really be done in LB?? If your machine can handle lbrn2 files then I don’t understand why you’re fiddling with gcode.
Thanks, I wanted to do the entire process in one job file to eliminate having to go through the multi-step start process on SM. It appears that isn’t possible with LB. As you said earlier, “do as others do” . I design in my office and the machine is in the garage. Thus, I transfer the file to the SM via Wi-Fi and run from the machine console. Thanks
A GRBL file is also the GCode format. You should be able to do the entire process from Lightburn, including sending it via WIFI.
Thanks for the input. I probably misspoke some. Yes, I understand grbl is a gcode file. The Snapmaker machine is a multipurpose machine that is a 3D printer, laser, and CNC machine. It runs on a modified version of Marlin gcode. I am not sure of the differences. Unfortunately Snapmaker tech support says their communications protocol doesn’t work with LB. Thus, I need to have the computer connected or transfer to a USB stick.
This information puts your request in a different light and makes it more understandable to me.
In this case, it is appropriate/possible to add a stop in the code by simply modifying the gcode, as @misken suggested.
I currently add the Pause via the M76 command in the Gcode. Thus, the machine pauses, I then can take any amount of time to turn the object over or add a new object and hit resume. Thanks for all the input