I’m certain I have to be doing something wrong so here is a simple test:
- Export the file from LightBurn and load to Luban Workspace to send to the device.
- Start the job in the device, enter the material height and move the crosshairs to the Front Left corner of the bed. Note: While the crosshair meets the edge on the X axis, it does not on the Y axis and the farthest it comes is 13mm north of the edge.
This is the code run:
; LightBurn 1.4.03
; GRBL-M3 (1.1e or earlier) device profile, absolute coords
; Bounds: X10 Y10 to X30 Y30
;USER START SCRIPT
M106 P0 S255 ;
G28 ;
G54 ;
G92 X4 Y421 Z353.8 ; THIS IS 419Z (HOME) - 65.2Z (BED TOUCH)
M8 ;
M3 S0 ;
;USER START SCRIPT
G00 G17 G40 G21 G54
G90
; Cut @ 6000 mm/min, 50% power
M8
M5
G0 X10Y10
G0 Z0
; Layer C00
M3
G1 Y30S127.5F6000
G1 X30
G1 Y10
G1 X10
M5
M9
G1 S0
G90
; return to user-defined finish pos
G0 X0 Y0
;USER END SCRIPT
M5
G0 Z400 F6000
G0 Y400
M9
G28
;USER END SCRIPT
M2
I would expect a square at Y10,X10 that measures 20x20. This is the actual result:
I know you mentioned that I might need to manually modify the file each time but I’m not seeing what I should change after we account for the offsets and what not.
The offset of the laser seems too much so it’s running off the edge. If it’s supposed to be a 20x20 it’s about 12.5mm off on X. So it appears the laser cannot actually reach the left side of the bed, disappointing. Changing your offset line to G92 X-8.5 Y421 Z353.8
should shift the cutout to the right by 12.5mm and make it finish the square where it lays (the left side of the square would fall where the left side of the cutout already is).
If you get something you can engrave, make it a 10x10 square and run it a few times, see if it actually lands directly on the previous or not. It might be homing too hard and not being fully accurate.
EDIT: Basically you need to find the location of where it actually is, obviously 10mm from the edge isn’t enough, so add a little more, do a 10mm square, 30mm off in both directions. then in then use G92 X0 Y406 Z353,8
Which should make your homed position, 0,0 (reverse for Y of course) Run it, then measure to the edge. Subtract 30 from the result. Post your results afterwards.
So after a 10 more tries and swapping to a material I could engrave to see the movement (thanks for the suggestion) I reached the following for my header which gives me the matching distances from the edges I have defined in the bed.
M106 P0 S255 ;
G28 ;
G54 ;
G92 X-22 Y404 Z353.8 ;
M8 ;
M3 S0 ;
That works great for me to just draw something in Lightburn and have it be set in the material based on the coordinates I give it. When it comes to the materials test, I have to add the G0 Z=material height so I can avoid it crashing into whatever material I have there.
This is my nc for the materials test I was running on slate:
; LightBurn 1.4.03
; GRBL-M3 (1.1e or earlier) device profile, absolute coords
; Bounds: X7.4 Y4.96 to X83.68 Y91.04
;USER START SCRIPT
M106 P0 S255 ;
G28 ;
G54 ;
G92 X-22 Y404 Z353.8 ; THIS IS 419Z (HOME) - 65.2Z (BED TOUCH)
M8 ;
M3 S0 ;
;USER START SCRIPT
G00 G17 G40 G21 G54
G90
; Cut @ 12000 mm/min, 20% power
M8
M5
G0 X38.227Y88.348
G0 Z8.8
; Layer
With that I’m able to keep the focus height as desired. Thanks @Skreelink as your help not only made me learn but got me closer to making this platform work for me.
You’re welcome, and hope it gets even better.
Since it seems the laser can’t actually reach the edge, once you have a defineable 0,0, you could carefully measure out some tape or actual barrier to make your lineup corner. Then you can always just slap it down and make it fully repeatable so you can just do a little math and get a perfectly positioned engrave every time. I always encourage people not to be scared to play with the gcode directly. Pop it open, ask the question “what does this do?” Figure it out and apply it, kinda like science.
EDIT: I actually took this knowledge and reversed it back to use on my 2.0. Reduced my header from this;
M106 P0 S255
M1010 S3 P100
M1010 S4 P100
G28
G90
G53
G0 Z30.0 F6000
G54
G92 Z0
G0 Z300
G53
G0 X5.8 Y-1.3 F6000
G54
G92 X0 Y0
M3 S0
To this;
M106 P0 S255
M1010 S3 P100
M1010 S4 P100
G28
G90
G54
G92 X-24.8 Y348.3 Z304
M3 S0
Just clicked home, and subtracted my offsets from the machine coords at home, then plunked them into the new G92
line. Boom, no need to move to 0,0,0 to apply the offsets, just apply reverse offsets to the current position.
While I knew this was plausible, I was always too lazy to actually do it. Since I went through it already helping you test, figured why not.
Managed to get partially to my goal in the material test. I can successfully create cut tests but utterly fail at engraving ones.
40W-PaperCut-v.1.nc (106.6 KB)
40W-PaperFill-v.1.nc (324.1 KB)
The right side is the cut test vs the left being the engrave one. As you can see the engrave test just cuts a horizontal line for some reason vs burning the squares (yup, paper not the best for this but it was my cheap alternative vs burning through coasters, lol).
I added both files to see if it makes any sense or if I’m just missing some setting in LightBurn.
On the hilarious side, you get to see what I did to set my guide on the X and Y axis. All I have to do is set the material on it and shoot. Thanks again!
Is there anyway to lock the z axis after you have it set in lightburn so you don’t accidentally move it to crash on bed and what causes the laser to continue to engrave after job is finished artisan 40w laser using grbl
Just for reference I’m engraving slate at 7% power at 5000 mm/min with the 40W on 2.0. I can’t say why your test grid isn’t displaying anything but honestly at those setting I’m surprised it’s not just ash. What are your settings for the legend/numbers?
Your end gcode should switch the laser off with M5 irrespective of how you have set up the machine
I’ve kept adjusting and right now this is the last test I tried a general engrave on (just proof that it would generate the darn filled in squares).
No matter what all I get is the dumb line under the numbers running to the left. Attaching the file if anyone wants to give it a go and see if it’s just my machine having the issue.
I’ll give it a go, later today
Just looking at your setting you have your speed set to 12000 within the edit material section although I don’t think this makes any difference as your have it correct in the generator itself. Also, I wouldn’t have air assist on for fill but I’ll try the settings as you have them
Grid on the left is your settings with a correction to the Edit Material Settings to 1200 rather than 12000. The 2nd grid was with that settings at 12000 just eliminate it as a variable. I manually stop both tests.
The other differences are I’m on a 2.0 and the material is 1.8mm thick. My initial settings for line are 8% at 3000. I hadn’t run a test grid for fill and this is what I got.
Could your issue be with fire / flame detection switching the laser off?
Huh… My laser actually stays on. It just makes horizontal lines to the left starting from the numbers on that edge.
Any chance you can share your GCode? I’d like to compare it against mine and try to see WTH may be causing the issue on my end.
UPDATE 1: In a weird turn of events, I decided to plug in the Artisan to my MAC and control it directly from Lightburn. THAT actually lets me get a test pattern on the material by clicking on Start directly in the Material Test box.
Sorry I must have missed that you were transferring the gcode. I ran mine with a direct connection.
I have an Artisan with the latest firmware and I’m unable to get a console session over USB serial working to Lightburn. I’ve tried other terminal software and always get gibberish. Luban console in Workspace to the Artisan controller is also broken via both USB and WiFi. Every command in Luban, regardless of what it is, echos “OK”.
Anyone having success getting Lightburn connected to Artisan via USB serial?
Do you have your com port settings at 115200,8,N,1?
Also Baud rate settings in Lightburn Device settings to 115,200?
Do you know where the baud rate setting is in lightburn?
Hello everyone
i bought a Snapmaker Artisan earlier this year, and just received my 40w laser module as well. also i loaded up Lightburn for the first time. I have been having a heck of a time getting it to work. i stumbled across this tread and have followed the instructions as best i can, however the machine does really weird stuff.
None of the devices i have tried work, except it will see the laser as the GRBL-M3 1.1e … I have managed to do some engraving with it, but after it finishes the job instead of turning off it sits in one spot with the laser burning at max power. and the image/text is backwards!
i have tried the settings, and gcode shown in this thread and get different results. when i try start a job, the machine first homes and then on the way back down it just keeps going and crashes into the bed.
I am still new to alot of this s not sure if im missing a critical set in the setup etc…
-D
Full Artisan support should be coming in Lightburn 1.15. However, for now, can you take a screenshot of your machine settings to verify them? Also to ensure the laser turns off, put an M5
in the end gcode section in device settings. Also do NOT use the firmware linked above, just make sure you’re on the latest Artisan firmware.