Lightburn, raise z for traversal moves?

When cutting a shape, the z will raise then lower between shapes.
When filling a shape, if the shape has cutouts, the z remains fixed during traversal moves. Is there a way to force a z up then down during traversal moves in a fill?

Look at what happened to my beautiful unofficial SmashMouth tribute banner… Who will make it right? :sob:

Looks more like laser didn’t shut off between moves.

It’s a pen plotter. It keeps the pen pressed during traversal.

You need to tell it to raise the pen. There must be a way to do it or you couldn’t mark something as simple as a group of single characters…

I don’t have a pen plotter, so I’m just guessing.

:smile_cat:

The issue is with the fill mode. When doing lines it behaves properly.
There are very few fill-mode settings, definitely nothing along the lines of "home and reset z between traversals.

There is no way at present to tell it to raise the Z during traversals with a fill.

1 Like

Looks like I’ve been rolled. Somebody once told me this would happen.

@LightBurn is there any scope for this? Currently my workflow is to manually fill the shape using tiny rectangles and Boolean tools! It isn’t very efficient… If anyone has any other ideas, I am all ears!

Cheers,

If you used custom GCode you might be able to make all “raster” moves emit a “go to Z”, do the move, then Z up"

Like:

G0 Z{z}   ; drop to the proper Z
G1 [X]{x}[Y]{y}[S]{power}[F]{speed}
G0 Z5     ; lift the Z back up

This is untested, but it’s feasible. The custom GCode emitter is pretty flexible.

2 Likes

This user did something similar to get it to work with a paintbrush:

Great success using Lightburn on a DIY Brush-Painting Machine - Finished Creations - LightBurn Software Forum

… though I think in his case he altered Rapid Move to do the lift and drop, whereas I’m doing drop + lift in the raster move. I imagine either approach would work.

1 Like

Thank you firstly for the fast replies!

Secondly, I hadn’t even considered custom G codes for the operation, forgot Lightburn could do that!

Would it make sense to use the “laser on” command to lift/lower the axis?

Thanks again!

That would likely work too, but you said it was only fills that were an issue, so I was focused on fixing it only for that mode.

Correct! And thank you for the sample, I will work on it!

Is there a method for adding custom gcode commands to “standard” laser configurations? I had a quick look at the settings page, for where custom G code usually is, and had to create a new machine specificying custom G code firmware.

Although, I am sure I will figure it out! Thank you for the product, and for the support!

No, you have to create a Custom GCode profile, and just choose the flavor of controller it is to start with (GRBL, Marlin, Smoothie, etc). The firmware specific devices use hard-wired internal code generators, and the custom GCode generator was written to be able to supplant them, but we didn’t want to break anything by replacing them completely.

2 Likes

Understood, well, at least parts of it are understood!

Thanks again for the help!

In fact, my modification to the custom gcode in the “Rapid Move” only solves the issue when choosing Offset Fill. For the rastering, i havent found a solution, only external script to modify the gcode.

1 Like

Interesting, have you tried adding the line to the “laser on” command? Surely that would do the trick, because every time the laser fires, it would (should haha) lift, every time the laser turns off, it should lower. It becomes a similar operator to the “air assist” function, but instead moving the Z.

Yes, I tried many things. but the gcode generated uses the spindle command to turn on and off the laser. the other options in the custom gcode do pretty much nothing, with all the experiments i tried.

i have many other ways to create gcode, but lightburn would be great and very easy to use to get startet for the upcoming workshop. offsetFill will do the trick for now…

Looked a bit more into the raster fix… It’s very easy to run an external script over the gcode generated to add the z-moves whenever the spindle changes.

Here is a fast vibe coded version in python:

It just adds all the z-moves….
I was wondering why the raster / “fill” in lightburn switches from absolute to relative moves, not absolute… @Aaron.F ? it’ doesnt matter so much. just my brain works differently.

;Custom GCode device profile, absolute coords
;Bounds: X29.95 Y34.1 to X90.08 Y94.94
G00 G17 G40 G21 G54
G90
M3
G1 Z10 F1500
;Scan @ 1500 mm/min, 100% power

M8
G0 Z4.8F1500
G0 X67.543Y34.764Z4.8
G1 Z0F1500
;Layer Green
G91
G0 Z2 F1000
G1 X2.35Y0.855Z0S0F1500
G0 Z-2 F1000
G1 X10.055Y3.659Z0S1000F1500
G0 Z2 F1000
G1 X2.349Y0.855Z0S0F1500
G1 X2.261Y1.888Z0F1500
G1 X-2.349Y-0.855Z0F1500
G0 Z-2 F1000
G1 X-16.674Y-6.069Z0S1000F1500
G0 Z2 F1000

I will add this to my collection of gcode python scripts in this webapi. slow loading time, sorry, it’s a free service, to make it most user-friendly.

https://brushograph-lb2gcode.onrender.com/

1 Like

Cheers for uploading the script, I am away for now, but will do some more playing when I return!

In the meantime, I wonder why that hasn’t worked, seems very strange to me!