synman / Octoprint-Bettergrblsupport

Better Grbl Support Plugin for Octoprint based (loosely) on the original Grbl Support plugin developed by mic159
https://github.com/synman/Octoprint-Bettergrblsupport/wiki
64 stars 19 forks source link

Auto Cooling #79

Closed championwescott closed 1 year ago

championwescott commented 2 years ago

LaserGRBL implemented an "Auto Cooling" feature a few years ago. It sends a Feed Hold and Cycle Resume command on a timer. This helps to prevent the laser from getting too hot while in continuous operation.

Would BGS be able to implement something similar?

I can always run the laser at a lower power, but having a timed shutoff would be convenient

https://github.com/arkypita/LaserGRBL/issues/658

synman commented 2 years ago

More than happy to take this on.

championwescott commented 2 years ago

More than happy to take this on.

Awesome!

I did some quick checks by saving gcode files in LaserGRBL with the feature enabled and not enabled, but there was no change to the code. So it appears to be implemented in the software itself.

Thanks!

synman commented 2 years ago

It could be just as simple as triggering a "pause" in Octoprint followed by capturing the current S value and sending an S0 to shut down the laser.

When the timer is up, all that would then be required is reseting S to the last S value and resuming the job.

championwescott commented 2 years ago

Yeah, that could certainly do it.

Obviously, making sure the laser turns off is the biggest thing, there, so it doesn't burn a hole.

Would it be better to use S0, or an M5 command? I don't know that it would make a difference in this instance.

synman commented 1 year ago

M5 would probably be safer and I wouldn't have to keep track of what the prior S value was

synman commented 1 year ago

This will be included in 2.2.2 when it releases in a week or so

Screenshot 2022-11-11 at 4 23 06 PM
championwescott commented 1 year ago

Thanks!

On Fri, Nov 11, 2022 at 4:24 PM Shell M. Shrader @.***> wrote:

This will be included in 2.2.2 when it releases in a week or so

[image: Screenshot 2022-11-11 at 4 23 06 PM] https://user-images.githubusercontent.com/1299716/201432797-c59e5a53-029f-4dcc-a78b-a07e912751b7.png

— Reply to this email directly, view it on GitHub https://github.com/synman/Octoprint-Bettergrblsupport/issues/79#issuecomment-1312202407, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQPTOXAOJGXIAEHSLUYMAP3WH22P5ANCNFSM5PCNUKBA . You are receiving this because you authored the thread.Message ID: @.***>

-- Brian Champion-Wescott