Salamafet / ophom

Octoprint Philips Hue Outlet Manager
7 stars 1 forks source link

GCODE reading an option? #16

Closed Ranney1 closed 3 years ago

Ranney1 commented 3 years ago

As requested in Issue 12 I think that it can be great if the plugin can 'read' the current GCODE send to the printer en act on an 'M112'

Background: if a user want to terminate the printer instantly, they can also send the GCODE: 'M112' to the printer. It will turn itself off directly. (This can also be triggerd by an plugin). So my idea was:

I think that this can make 3D printing a little bit safer!

Salamafet commented 3 years ago

I have made some test with the M112 code.

When I send this code to my printer, the connection is immediately interrupted. Is it the same way for all printers ?

Ranney1 commented 3 years ago

Hi,

Yes. Al marlin based printers will: -if 'emergency parcer enabled' directly turn off the motors, heaters and it will disconnect to host. Only a reboot wil make printing possible again.

Ranney1 commented 3 years ago

A little bit more info: https://marlinfw.org/docs/gcode/M112.html

Salamafet commented 3 years ago

Ok thanks, I will add an option for cutting down power when the connection is interrupted.

Ranney1 commented 3 years ago

Great! 👍 Really happy with this option! 👌

Salamafet commented 3 years ago

New release with the lost connection and M112 shutdown option :) Please reopen this thread if you have an issue with this release.