Framing issues laser is always on despite the toggle switch being off!

When I frame a project lightburn always fires the laser so it leaves lines around the entire project. On the settings page I have the toggle for the laser to be off when framing selected however it still fires. If i frame a project in XCS for example, the laser is not on. I am sure its something simple but for the life of me I cant find the setting or how to fix it?

anyone any suggestions?

Can you provide the following:

  1. Screenshot of Edit->Device Settings
  2. Full screenshot of LightBurn with Move window in view


I don’t see anything that would necessarily cause the symptom you’re describing.

Can you try this:

  1. in Console window, enable “Show all” button.
  2. frame a job
  3. in Console window, copy all the generated output and then paste that into a reply here
1 Like

Waiting for connection…

ok

[xTool D1Pro:ver 40.31.006.01 B2]

ok

?

MPos:225.000000,153.250000,0.000000,0.000000

ok

Starting stream

G00 G17 G40 G21 G54

G90

G0 X129.405Y101.92

G1 X141.344S0F6000

G1 Y115.47

G1 X129.405

G1 Y101.92

G90

Stream completed in 0:00

ok

[MSG:Pgm End]

That’s interesting. There’s nothing in the code that should be firing the laser. I’m wondering now if you’re possibly having a firmware issue or hardware issue. Note that the XCS test isn’t directly comparable in this case because xTool include two distinct flavors of the firmware, one for use in XCS and one for use in 3rd party tools.

Try one thing. Run this command in Console before running the framing. Does the laser still fire?

M5

Yes the laser still fires

Can you check to see if there’s a firmware revision available for your machine?

What’s the history of the machine? Was this previously working correctly? If this is within the warranty or return period I’d suggest reaching out to xTool to see if they’ll replace any faulty components.

I didnt buy it brand new, i brought it when it only had about 6 hours run time on it a couple of months ago. It was working perfectly until the other day.
Ive updated the firmware on the laser and ensured everything is all up to date but alas the problem still occurs. I have emailed xtools so just waiting on a response from them now.

This implies a failure of some kind.

Can you try one more test?

Create a simple design in LightBurn, set layer power to 0%. Then run the job. Does the laser come on and burn the material?

The laser dont come on for that test

I didn’t expect that. Can you go to File->Save gcode for that test, save with .txt extension, and then upload here?

test.txt (11.7 KB)

Try this as a work around:

  1. Enable Fire button in Edit->Device Settings
  2. Enable “Fire on frame” in Edit->Device Settings
  3. Set Fire power to 0% in Move window

Then test framing. Does the laser fire?

If that works to disable the laser, try then disabling “Fire on frame”. Does that continue to work or does the behavior revert? If that works, then continue to disable Fire button entirely.

If it fails at any point, just revert to the last working state.

That fires the laser even when the fire power is at 0%

In that case a couple of more tests please.

  1. Using the same design that you confirmed no light at 0% power, enable “Constant Power Mode” in the layer settings. Then run the job. Do you see a light then?
  2. Issue this command in Console, then try framing. Do you see a light? Please disable Fire button in Edit->Device Settings before proceeding.
M106 S0

No Light then.

no light either then but when it finishes framing I get a very short burst ie about 1 second of laser

The second test demonstrates the major difference between framing and regular jobs being the M106 S0. This is included by xTool in their device .lbdev file as part of the “Start gcode” section.

I’m not certain how xTool uses M106 but in Marlin for 3d printing this is used for Fan Speed. It’s not clear to me how that affects laser behavior however.

In any case, you could potentially use that as an interim workaround but it’s a data point that you can provide to xTool. This sounds like either a firmware or hardware failure.

Is there a Gcode to turn the laser off but keep the crosshairs on, or to have the laser at say 0.5% when framing with the Gcode you sent me

M106 S0 turns the crosshairs and laser off and thats making framing very troublesome. I am still awaiting a response from Xtools support

Note that the command listed isn’t meant to turn anything off as far as I’m aware. Or perhaps it’s meant to set fan speed to 0.

I’d suggest enabling fire button and fire on when framing and try setting explicitly to 0.5% or lower. However, based on the earlier test I thought you were saying that doing at 0% was causing the same problems with burning. If that’s not the case then setting to a low value may work.