rhapsodyv / Marlin

Optimized firmware for RepRap 3D printers based on the Arduino platform.
http://marlinfw.org
GNU General Public License v3.0
82 stars 427 forks source link

Filament Runout Not Working #19

Open chucky3456 opened 3 years ago

chucky3456 commented 3 years ago

CXY-V6-191017

Filament Runout Sensor not pausing print when filament runs out (not a critical issue).

Steps: 1. Start print with limited filament

  1. Let filament run out
  2. Print continues
Eliminateur commented 3 years ago

¿Have you checked the sensor state with M119 first?

m0uh85 commented 3 years ago

Checked M119 Sensor states are OK but same issue for me the printer is still working after run out of filament.

Eliminateur commented 3 years ago

¿are we talking printing from the SD card or from octoprint/host via USB?

m0uh85 commented 3 years ago

Octoprint... I saw something in the config:

is this the reason when I start printing from Octoprint? Marlin didn't get one of these informations?

Eliminateur commented 3 years ago

octoprint does not support filament runout sensors connected to the board itself, as apparently there's no gcode or response than marlin can provide to octoprint that the runout sensor has stopped. From what i researched when i wanted to make this work as well, you need to connect the runout sensor to the rpi GPIO ports, and run the runout detection on the rpi itself with a octoprint plugin.

I find that a kludge at best and very daft, and i don't plan on doing it in the least, specially since there's no clean way to do it on tronxy printers with the ribbon cable going straight to the board.

Edit: i've found this https://community.octoprint.org/t/filament-runout-sensor-connection-rpi-gpio-versus-printer-board/29725 that apparently enabling host action commands in marlin would make marlin send a command about the runout, i haven't tried it yet

m0uh85 commented 3 years ago

octoprint does not support filament runout sensors connected to the board itself, as apparently there's no gcode or response than marlin can provide to octoprint that the runout sensor has stopped. From what i researched when i wanted to make this work as well, you need to connect the runout sensor to the rpi GPIO ports, and run the runout detection on the rpi itself with a octoprint plugin.

I find that a kludge at best and very daft, and i don't plan on doing it in the least, specially since there's no clean way to do it on tronxy printers with the ribbon cable going straight to the board.

Edit: i've found this https://community.octoprint.org/t/filament-runout-sensor-connection-rpi-gpio-versus-printer-board/29725 that apparently enabling host action commands in marlin would make marlin send a command about the runout, i haven't tried it yet

Make senses... Thanks!