vitormhenrique / OctoPrint-Enclosure

OctoPrint Enclosure Plugin
GNU General Public License v3.0
396 stars 202 forks source link

g-code command does not work in Cura "End g-code" #267

Open Vertigo1206 opened 4 years ago

Vertigo1206 commented 4 years ago

I am using this plugin for controlling an external fan with a Rasperry Output. Switching on/off via navbar works well, also when I send the gcode "ENC O1 S1" via Terminal, but I get the response "echo:unknown command"

Bildschirmfoto 2019-10-19 um 10 24 32

But when I include the gcode in Cura, it does not work:

Bildschirmfoto 2019-10-19 um 10 26 16 Bildschirmfoto 2019-10-19 um 10 36 04

Is this because the printer is still busy with cooling? In the Octopi log is nothing.

Using the Option "auto shutdown" with inverted output will work, but then I have to turn off the fan manually

danioki commented 4 years ago

leaving a comment here because I have the same problem but with the neopixel format of the G-code, the "ENC O2 R100 G100 B100" just send me the unknown command error.

vitormhenrique commented 4 years ago

Do you have a gcode waiting for something before? for example cooling? have you tried removing that?

KriLL3 commented 4 years ago

I can't get the g-code control feature to work either, I can control an analog RGB LED strip using a driver connected to I2C with the color selector in enclose plugin tab, but putting "ENC O1 R255 G0 B0" in the terminal tab or in the starting g-code in prusa slicer, or entirely on it's own in an otherwise empty .gocde file does nothing beyond "Recv: echo:Unknown command: "ENC O1 R255 G0 B0"" I guess O1 is correct if the output is ID1?: https://i.imgur.com/0wv7dnB.png

SM-26 commented 3 years ago

Same here as well. I'm trying to use G-code to change color of my LED strip, but I get an unknown command.

xl0rnx commented 3 years ago

Go to Enclosure Plugin Settings -> Scroll down an expand Advanced Settings -> Activate gCode Control -> Should fix your Problems ;)

image

ChristophDerndorfer commented 3 years ago

As far as I understand it the "ENC" commands are custom commands by the Enclosure plugin and not part of the official gcode set that the Marlin Firmware supports. Hence why the printer returns the "unknown command" message when OctoPrint sends it to the printer. Yet the Enclosure plugin listens for them and executes the corresponding actions.

And at least for me with the Neopixel Jewel everything works as expected.

akoirium commented 3 years ago

Same problem for me ... Gcode command not work in cura or other slicer but also directly on octoprint and the terminal... Why ???