A20M - runout sensor not working with marlin 2.0 - pls. help
Posted: Fri Mar 12, 2021 12:46 am
hello.
- marlin 2.0.bugfix on A20M. why 2.0? because i have tmx 2208 on XYZ axis and want to compile with andruino.
- configuration - runout sensor ON
problem: no message on display if filament is empty.
with old marlin image from here filament out is shown properly.
why? knows anybody where is the mistake?
in Configuration.h i have this entries:
- marlin 2.0.bugfix on A20M. why 2.0? because i have tmx 2208 on XYZ axis and want to compile with andruino.
- configuration - runout sensor ON
problem: no message on display if filament is empty.
with old marlin image from here filament out is shown properly.
why? knows anybody where is the mistake?
in Configuration.h i have this entries:
define GTA20M // A10M & Variants
//#define TOUCHPROBE // Enable Touch Type Probe (Bltouch / 3Dtouch)
#define PLR // Enabled power loss resume - Only functions from SDcard
#define RUNOUT // Enable filament runout sensor - Only If you have them and want to use them
#define LINADV // Enable linear advance.Once Linear Advance is properly tuned, bleeding edges and rough solid infill should be nearly eliminated.
#define FILAMENT_RUNOUT_SENSOR
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.
#define NUM_RUNOUT_SENSORS 2 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
#define FIL_RUNOUT_PIN 66
#define FIL_RUNOUT2_PIN 67
#define FIL_RUNOUT_STATE HIGH // Pin state indicating that filament is NOT present.
// #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor. alf 2021-03 zum testen
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
// Set one or more commands to execute on filament runout.
// (After 'M412 H' Marlin will ask the host to handle the process.)
#define FILAMENT_RUNOUT_SCRIPT "M600"
// After a runout is detected, continue printing this length of filament
// before executing the runout script. Useful for a sensor at the end of
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
#define FILAMENT_RUNOUT_DISTANCE_MM 45 //alf 2021-03- damit filament weiterläuft
#ifdef FILAMENT_RUNOUT_DISTANCE_MM
// Enable this option to use an encoder disc that toggles the runout pin
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
// large enough to avoid false positives.)
//#define FILAMENT_MOTION_SENSOR
#endif
#endif