G Code Viewer in Lightburn?

Is there a native G-code viewer in Lightburn? Like a preview in “save Gcode” command where you can look through the actual g-code that will be saved and where to save it?

Any use of g-code in LighBurn is basically just-in-time and short-lived. So it exists when you save g-code or send it to the laser.

LightBurn doesn’t “think” in g-code.

Is there something specific you’re trying to do? You can save g-code in the Preview simulation if you use the “Start here” feature.

Thanks for the quick reply. “start here” is greyed out in my setup for some reason. I have used Cimco Edit as well as open source gcode editors like NC Viewer in the manufacturing industry (this question is in regards to my laser hobby) and was wondering if the “save Gcode” command that currenly exists within Lightburn could offer something like that in the future.

Start Here is only available if the slider is not at the end of the job. Move all the way to the beginning to capture all expected g-code or anywhere in between to capture g-code from that point forward.

The Preview simulator is very powerful and will show you the laser path of the planned job including traversal moves.

I see, “Start from here” seems great for saving g-code from a point in the program, but it does not let you examine (or “copy”) the code, which can, of course, be done in a separate program after it is saved from Lightburn (e.g., notepad or Candle), but it would be great if there was a ‘console window’ below the slider that showed the g-code commands highlighted as it moved through the simulation (like in Candle). Maybe not a lot of you are familiar with g-code, but I see it in my sleep :wink:

1 Like

There was another recent post hoping for something similar:

I personally wouldn’t mind having something like this as well as a way of setting both the start end end of the g-code save feature.

There are a number of feature requests that already cover similar functionality. I suggest you check those out and vote for those accordingly.

Some that I found:
See Gcode before cutting · LightBurn (fider.io)
save / resume or restart from a particular point in the stream / gcode file · LightBurn (fider.io)

Those posts are similar, but different. Since Candle is open source, can’t the gcode interpreter portion of the code be ‘used with public license’ and used in the “Preview” module? Just sayin…

Not sure how what you’re saying is different but this part of the post sounded the same as what you’re proposing:

This problem, lightburn, could easily solve it, the only thing that would be necessary is that in the preview screen, where we can start the work from a certain point, it includes the information of the gcode line of code, making it coincide with the images of the work, it would still be intuitive and manual, but we would have the precision that now does not have and solve the problem of starting a job half done due to an unwanted interruption.

Anything is possible. But Oz has expressed in the past that he doesn’t view LightBurn as a general purpose gcode viewer. So this would be something that the team wants to implement from a design perspective and seen as valuable enough from a community perspective.

Candle specifically I suspect would be ineligible for inclusion since it’s GPL and wouldn’t fit the LightBurn commercial model.

It seems the preview feature already does what is in this post which is great. The one thing that I would add is a window into what the program would output at this point. The preview is taking into consideration the “post processor” that is selected, so you should be able to see the machine code. I have attached a pic for reference. I do see your point about Candle though.

I’d love to see the “simulation” screen while i’m running the actual job.
Mostly because I’m still waiting for my laser to arrive but i have an arduino UNO with CNC shield i’m playing with in the meanwhile :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.