Laser stays on during framin

Using repetier host on arduino DUE board.

When framing laser is on, also when retuning to home position manually “go to origin”
Tried to set “laser on when framing” to zero in settings but thats not working.
In start g-code I set G5 (supposed to switch laser off) but thats also not working.

Any solutions?
Can I set this somewhere ( chatgps suggestion) : Option 1 – Force M5 before framing

Add this to LightBurn’s “Start From → Framing GCode” (if your version allows per-frame gcode), or into Start GCode: M5

thanks for your feedback

Not familiar with your controller, so forgive the questions with obvious answers.

Are you using some flavor of GRBL feeding the controller?

When Show All is checked in the Console window, does the Console window list the GCodes sent when you Run the program?

Frame is just a simple box program. Lightburn has a couple of switches to control the laser beam during Framing. Does the laser light up even though those switches are off?

Can you issue GCode commands using the Console? Enter $$ in the Console window andcsee if it returns a list of $nn parameters.

Issue a G00 command with some X & Y travel (like G0 x20 Y30 S10) and see in the laser comes on. Does it?

The G5 command controls a cubic spline, which likely has nothing to do with laser control.

The M5 command shuts off the spindle in a CNC machine, so that’s most likely what you should use.

I think the device must be set up as Custom G-Code, rather than straight GRBL, to get detailed control over all the motions.

Its M5 youre right, my error.
Setting up in straight GRBL might me a solution ill try that
thanks

thanks, ill try some of your suggestions

1 Like

Tried a few things, finally made a custom profile based on marlin.
Only 1 issue left.

When framing laser head only used x-axis, not y
So where are the custom settings for framing?
Anyone?

Thanks