Giter Site home page Giter Site logo

Comments (7)

fieldOfView avatar fieldOfView commented on June 16, 2024 1

Start G-Codes are not sent when using the preheat function.

from cura-octoprintplugin.

fieldOfView avatar fieldOfView commented on June 16, 2024

I am not quite sure where to fix this. Sure, I could add a checkmark in the Connect to OctoPrint screen to "turn on power before preheating", though that would be quite machine-specific, and it would not fix the same issue when you connect the printer directly via USB. It should be somehow implemented Cura-wide, for any connectiontype, instead of every connection-type ending up with a slew of fairly specific printer fixes.

Honestly I think it should really be fixed at the firmware level (teacup firmware apparently does this: http://reprap.org/wiki/G-code#M80:_ATX_Power_On)

from cura-octoprintplugin.

AlexAhrens avatar AlexAhrens commented on June 16, 2024

Try putting the comment in the Start-Gcodes in Cura. Right in the first line.

from cura-octoprintplugin.

blole avatar blole commented on June 16, 2024

Yes, you're right. I'm also thinking adding it in the firmware might be the best solution now.

from cura-octoprintplugin.

fieldOfView avatar fieldOfView commented on June 16, 2024

Or perhaps there should be more gcode sequences in the Machine Settings window in Cura, such as Pause/Resume/Abort print, Preheat/End Preheat, etc, similar to how OctoPrint already has these.

In the mean time, you could experiment with the following:
https://github.com/fieldOfView/OctoPrintPlugin/blob/2.5/OctoPrintOutputDevice.py#L449

    def _setTargetBedTemperature(self, temperature):
        Logger.log("d", "Setting bed temperature to %s", temperature)
        if temperature > 0 : 
            self._sendCommand("M80")
        self._sendCommand("M140 S%s" % temperature)

    def _setTargetHotendTemperature(self, index, temperature):
        Logger.log("d", "Setting hotend %s temperature to %s", index, temperature)
        if temperature > 0 : 
            self._sendCommand("M80")
        self._sendCommand("M104 T%s S%s" % (index, temperature))

from cura-octoprintplugin.

blole avatar blole commented on June 16, 2024

Yeah, that works :)

from cura-octoprintplugin.

Tollbringer avatar Tollbringer commented on June 16, 2024

Which file do I edit on a windows installation of Cura 4.0 to achieve this result?

from cura-octoprintplugin.

Related Issues (20)

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.