Gcode to set heater temp #164
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi Vitor,
I'd love to be able to have the ability to set the target ambient temp using custom Gcode. I print in many different materials, and It'd be very helpful to put a line in my starting Gcode for each one instead of manually setting the temp.
This feature is already implemented, you just need to enable g-code control under the advanced section and use the correct g-code commands:
https://github.com/vitormhenrique/OctoPrint-Enclosure/wiki/G-CODE-Control
So for example, let's say that you output for the heater has ID number 5 you could send
ENC O5 W0 S40To set the temperature to 40 and start printing right away, or sendingENC O5 W1 S40would set the temperature, wait the temperature to reach 40 and then start printing.by the way, you can use the same gcodes as new outputs and create UI buttons for automated tasks, and link to physical buttons for more automations, so you can have buttons on the enclosure to set temperatures, extrude filaments, move extruder around etc...