Git Product home page Git Product logo

octoprint-setandwait's People

Contributors

kantlivelong avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

buskun

octoprint-setandwait's Issues

Causes communication errors

What were you doing?

  1. Run gcode using M190 with SetAndWait enabled

What did you expect to happen?

All gcode being executed with M190 substituted appropriately

What happened instead?

A communication error

Version of OctoPrint-SetAndWait

0.0.1

Operating System running OctoPrint

OctoPi 0.17.0

Printer model & used firmware incl. version

Prusa MK3S with MMU2S, firmware version 3.9.0 and 1.0.6, respectively

Link to octoprint.log with octoprnt.plugins.setandwait set to DEBUG

https://gist.github.com/rafl/fc671ea57e25db04e5bac8c9bc7ad355

Cannot override temperature via UI or manual commands during wait

My initial reason for wanting this plugin was to be able to override the temperature during a wait like I could do from Marlin UI on printer, for example lowering bed temp from 60 to 40 for a print that doesn't really need a hot bed for adhesion, to get the print to start right away, and for making overrides for printing an existing sliced file with different material (e.g. switching from PLA temps to PETG or ABS temps). But it hangs everything just like the firmware handling M109 or M190 would, and does not allow any commands until the heating completes; the only advantage I've found is that job cancellation works.

Can the plugin be modified not to block the logical gcode queue going to the printer, but instead just block advancement in the file being printed, while waiting for heating? And to use new values from any M104, M140, M109, or M190 commands received as the new wait targets, so that raising/lowering the temp can truncate/extend the wait, and so M108 terminates the wait?

Waits forever with highly-stable PID loop

The condition to end the heating wait is "current_temp >= requested_temp", which is easily hit with a PID loop that oscillates around the requested temp, but may never be hit with a highly stable loop that holds temp, for example, between 39.94 and 39.99 when 40 was requested. The condition should probably be current_temp >= requested_temp - 0.5 so that it accepts anything that rounds (with no decimal places, typical printer UI display) to the requested temperature.

Should support G4 wait command as well?

Should this support the G4 wait command as well?

This blocking call also stops cancelling from happening, and stops polling of temperatures (at least on my model printer). For example I have to implement long waits in this way:

G4 S60
M105
G4 S60
M105
G4 S60
M105
G4 S60
M105
G4 S60
M105

So that I can cancel and get feedback. If the G4 command could be processed locally, then the printer would continue to be responsive during the period.

Sets temperature of the wrong tool (single extruder, multiple filament = MMU2)

It seems like the gcode change by SetAndWait adds the tool that's used, but without checking if it's a single extruder system.


Send: M190 S85
Send: N124 M104 S250.0 T4*59
Send: M109 S250
Send: N125 G28 W*98
Recv: ok
Send: N126 M105*34
Recv: echo:M104 Invalid extruder 4
T4 reported as invalid, reverting to T3
Recv: ok
Not queuing T3, that tool doesn't exist according to the printer profile or was reported as invalid by the firmware
Send: N127 G80*21

Original gcode is "M104 S250.0" without the Tx.

The effect is OctoPrint removing filament switches after this trigger.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.