Fill and line the line part not turning the laser on in some sections

Hi there,
So I have a gcode file when I run it the m3 is followed with a S “xx” and the laser turns on and burns the fill. But when it then goes to do the line portion of the fill and line after an M3 there is no S “xx” to turn the laser back on.
This only happens with the fill and line setup if I do fills only it works, if I do lines only it works. I have some screen shots of the settings for the fill and line options and I’ll attach the Gcode. In the Gcode if you look at lines 3779,3911,3926,3956,4015,4023,4034,4075,4116,4352 (good),5599,5924,5999 (good) Lines are run at 1200mm/minute fill is 1400mm/minute. Also is the lightburn file attached to look at.

FILL

LINE AFTER FILL

if you want to look at the code in note pad just do a search for the M3

LASER RADIATION SIGN.lbrn (100.0 KB)

LASER RADIATION SIGN.txt (219.6 KB)

Thanks
Glen

try a separate layer for the line, bigger hassle but might work for you.
Just a another user here chiming in.

1 Like

Hi yes I was thinking the same thing as a work around, but it would be best if I could figure out why lightburn is not creating the gcode with the s and power % after some of the M3 commands.

this is the item I’m working on the first operation is the frame around the edges that’s fine, then it does the fill around the “danger” it then starts to burn around the danger letter then M5 relocates M3 but no laser on command for the rest of the danger letters or the outside line of the oval.

Then it move to the laser beam image and fills it. then M5 relocates to the edge of the image. M3 but doesn’t turn on the laser…

Glen

I’ll have a look at this - it’s likely something we’ve broken while making other changes to the GCode generator.

1 Like

Which device profile did you use to make the GCode, and which version of LightBurn? All the comments have been stripped out so I can’t tell.

I’ve run a cut down version of your file (just one layer, the yellow one) with a small box, and the 2nd M3 command is emitted as expected.

Hi,
Im using 0.9.20 with GRBL-M3

I did as you did and generated a one layer Yellow and here is the code. The problem start at the third M3 command same problem for the forth one the fifth M3 is ok……
I highlight the lines with ------- to show you. This is just a snippet of the code. Below that is the entire new single layer yellow code is attached.

G1X25.98F2800S0

G1X0.5F1400S216.8

G1X0.09Y0.2S0

G1X-0.4S216.8

G1X-26.36F2800S0

G1X-0.38F1400S216.8

G1X-0.08Y0.2S0

G1X0.26S216.8

G1X26.75F2800S0

G1X0.3F1400S216.8

G1X0.08Y0.2S0

G1X-0.19S216.8

G1X-27.14F2800S0

G1X-0.11F1400S216.8

M5

G0X0.06Y0.05

; Layer C05

M3

G1X-0.04Y0.04F1200 ------------------------------------------------------------

G1X-0.05Y0.03

G1Y-0.04

G1X0.1Y-0.32

G1X0.13Y-0.31

G1X2.66Y-5.67

G1X2.65Y-5.67

G1X0.24Y-0.57

G1X0.18Y-0.59

G1X-0.01Y-0.04

G1X-0.51Y0.16

G1X-0.5Y0.2

G1X-3.39Y1.37

G1X-3.37Y1.41

G1X-1.72Y0.72

G1X-1.74Y0.68

test.txt (25.6 KB)

thanks
Glen

If the S value is the same as it was before, there’s no need to re-emit it - the state of the S parameter is persistent (or, it’s supposed to be) - what type of controller are you running the GCode on? Is it actually GRBL, or something else?

Hello,
Thanks so much for your help Oz! :slight_smile:
OK I have seen the light!!
My setup is completely DIY the table I made myself. Purchased all the parts and materials… installed and wired everything from scratch…
So it’s all my fault. My solid state relay that powers on the Laser M3 doesn’t do DC voltage on the output, so wasn’t energizing the laser. So I have temporarily bypassed the relay until I get a DC out put one. The laser and fan gets it power as soon as I power up the controller. Then fires once there is a S value. So what mister talented did :frowning: was I edited the Gcode to include a S0 after every M5, to turn the fire off while the laser is crossing white space to its next location. I made the mistake of assuming that the lightburn program would automatically put S values in after every M3 call (other software program’s Gcode add a S value after the M3). I’ll add S values to the code after an M3 to get it to fire. I get the new relay from Amazon in two days.
My controller is a standalone SMC5-5-N-N CNC router table controller, that uses Gcode .tap, .gc., .nc . The table is 4 foot X 4 foot.
The controller does not connect to a PC. I put the finished Gcode on a memory stick and then put the memory stick into the controller.

Thanks and sorry for the confusion!
Glen

LightBurn is used on a lot of hardware that has limited bandwidth, so I try to make the GCode as compact as possible by eliminating unneeded commands. That extra S0 would do it. :slight_smile:

nice looking rig you made there.

1 Like

Thanks!
I had fun building it. I’ve been running it as a CNC with the spindle for about 3 years. Just hooked up the laser to it this past week.

Glen

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