Skip to content

Commit 63e7709

Browse files
committed
Add filament runout sensor support.
1 parent d712a0e commit 63e7709

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Marlin/Configuration.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@
824824
* For other boards you may need to define FIL_RUNOUT_PIN.
825825
* By default the firmware assumes HIGH = has filament, LOW = ran out
826826
*/
827-
//#define FILAMENT_RUNOUT_SENSOR
827+
#define FILAMENT_RUNOUT_SENSOR
828828
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
829-
#define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
829+
#define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.
830830
#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
831831
#define FILAMENT_RUNOUT_SCRIPT "M600"
832832
#endif
@@ -1164,11 +1164,11 @@
11641164
* P1 Raise the nozzle always to Z-park height.
11651165
* P2 Raise the nozzle by Z-park amount, limited to Z_MAX_POS.
11661166
*/
1167-
//#define NOZZLE_PARK_FEATURE
1167+
#define NOZZLE_PARK_FEATURE
11681168

11691169
#if ENABLED(NOZZLE_PARK_FEATURE)
11701170
// Specify a park position as { X, Y, Z }
1171-
#define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
1171+
#define NOZZLE_PARK_POINT { 40, 20, 20 }
11721172
#define NOZZLE_PARK_XY_FEEDRATE 100 // X and Y axes feedrate in mm/s (also used for delta printers Z axis)
11731173
#define NOZZLE_PARK_Z_FEEDRATE 5 // Z axis feedrate in mm/s (not used for delta printers)
11741174
#endif

Marlin/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,13 +876,13 @@
876876
* Requires NOZZLE_PARK_FEATURE.
877877
* This feature is required for the default FILAMENT_RUNOUT_SCRIPT.
878878
*/
879-
//#define ADVANCED_PAUSE_FEATURE
879+
#define ADVANCED_PAUSE_FEATURE
880880
#if ENABLED(ADVANCED_PAUSE_FEATURE)
881881
#define PAUSE_PARK_RETRACT_FEEDRATE 60 // Initial retract feedrate in mm/s
882882
#define PAUSE_PARK_RETRACT_LENGTH 2 // Initial retract in mm
883883
// It is a short retract used immediately after print interrupt before move to filament exchange position
884884
#define FILAMENT_CHANGE_UNLOAD_FEEDRATE 10 // Unload filament feedrate in mm/s - filament unloading can be fast
885-
#define FILAMENT_CHANGE_UNLOAD_LENGTH 100 // Unload filament length from hotend in mm
885+
#define FILAMENT_CHANGE_UNLOAD_LENGTH 0 // Unload filament length from hotend in mm
886886
// Longer length for bowden printers to unload filament from whole bowden tube,
887887
// shorter length for printers without bowden to unload filament from extruder only,
888888
// 0 to disable unloading for manual unloading

Marlin/pins_RAMPS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
#endif
253253

254254
// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
255-
#define FIL_RUNOUT_PIN 4
255+
#define FIL_RUNOUT_PIN 19
256256

257257
#ifndef PS_ON_PIN
258258
#define PS_ON_PIN 12

0 commit comments

Comments
 (0)