# Support for ezABL

**URL:** <https://marlin.crc.id.au/forum/t/support-for-ezabl/798>\
**Category:** Firmware Builder\
**Created:** [5 April 2022 19:31 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798 "2022-04-05T19:31:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffwb2u](https://marlin.crc.id.au/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jeffwb2u](https://marlin.crc.id.au/forum/u/jeffwb2u)\
**Post date:** [5 April 2022 19:31 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/1 "2022-04-05T19:31:44Z")

</div>

I have an Ender 3 Pro with the 4.2.7 Main board. I recently switched from the Z Stop Switch to the ezABL sensor from Th3D Studio. I also have the BTT Smart Filament Sensor. I can get either the Filament Sensor, or the Bed Leveling to work but not both. As far as I can see, I have made all the required changes in the Marlin fimrware files, but it doesn’t work. if I enable the filament sensor, it does an unload as soon as it starts to print. I cannot see a what to continue the print without disabling the filament sensor.

I am hoping that someone from this forum can tell me what Lines of Code the Firmware Builder inserts when you select the ezABL bed level and the Btt Smart Filament Sensor. Is there a way to see the Configuration files that the Firmware Builder generates to compile the firmware from? If I can get this, then perhaps I can determine why my BTT Smart Filament sensor is not working.

---

<div class="post-metadata">

**Author:** ![CRCinAU](https://marlin.crc.id.au/forum/user_avatar/marlin.crc.id.au/crcinau/32/1337_2.png) [@CRCinAU](https://marlin.crc.id.au/forum/u/CRCinAU)\
**Post date:** [6 April 2022 00:21 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/2 "2022-04-06T00:21:49Z")

</div>

I don’t have that hardware to test with - however, the Configuration files all start as:

> **[Configurations/config/examples/Creality at bugfix-2.0.x ·...](https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.0.x/config/examples/Creality)**
>
> bugfix-2.0.x/config/examples/Creality

Then the options are changed based on what you select in the builder.

If you want to debug, test with a normal Z-Stop and see if you see the same issues and try to narrow it down to a specific cause. Otherwise, you’ll only get vague guesses as to the problem.

---

<div class="post-metadata">

**Author:** ![jeffwb2u](https://marlin.crc.id.au/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jeffwb2u](https://marlin.crc.id.au/forum/u/jeffwb2u)\
**Post date:** [6 April 2022 15:41 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/3 "2022-04-06T15:41:12Z")

</div>

I think that my Problem isn’t in the Configuration.H of the Configuration\_adv.h. I think my issue is in the pins file located at \Firmware\Marlin\src\pins\stm32f1\pins\_CREALITY\_V4.h

I think my issue is that I have the Wrong Pin defined for the #define FIL\_RUNOUT\_PIN setting. Unfortunately, this file is not located on GITHub. Does the Firmware builder modify the pins file, or are you using the stock Marlin file? I have not been able to find a reliable source that will tell me what the pin definitions are on the 4.2.7 board.

---

<div class="post-metadata">

**Author:** ![CRCinAU](https://marlin.crc.id.au/forum/user_avatar/marlin.crc.id.au/crcinau/32/1337_2.png) [@CRCinAU](https://marlin.crc.id.au/forum/u/CRCinAU)\
**Post date:** [6 April 2022 15:54 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/4 "2022-04-06T15:54:09Z")

</div>

Close - the pins for the v4.2.7 board are here:

> <https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.0.x/Marlin/src/pins/stm32f1/pins_CREALITY_V427.h>

That does include the pins\_CREALITY\_V4 file as well though.

In that file, its defined as:

> <https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.0.x/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h#L87>

---

<div class="post-metadata">

**Author:** ![jeffwb2u](https://marlin.crc.id.au/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jeffwb2u](https://marlin.crc.id.au/forum/u/jeffwb2u)\
**Post date:** [11 April 2022 15:28 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/5 "2022-04-11T15:28:51Z")

</div>

That’s the Pin that I have defined in my Custom Marlin file. But that’s the default pin defined in Marlin. Does selecting the BTT Smart Filament Sensor in the Firmware Builder change this setting?

---

<div class="post-metadata">

**Author:** ![jeffwb2u](https://marlin.crc.id.au/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jeffwb2u](https://marlin.crc.id.au/forum/u/jeffwb2u)\
**Post date:** [11 April 2022 15:53 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/7 "2022-04-11T15:53:27Z")

</div>

These are the lines that I have defined in the Configuration.H

#define FILAMENT\_RUNOUT\_SENSOR

```
#define SPEAKER_KILL

```

#endif

#if ENABLED(ENDER3\_MAX\_V422\_BOARD) || ENABLED(ENDER3\_MAX\_V427\_BOARD)

```
#define FILAMENT_RUNOUT_SENSOR

```

#endif

#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 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.

#define FIL_RUNOUT_STATE LOW // Pin state indicating that filament is NOT present.

#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 8

#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
```

---

<div class="post-metadata">

**Author:** ![jeffwb2u](https://marlin.crc.id.au/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jeffwb2u](https://marlin.crc.id.au/forum/u/jeffwb2u)\
**Post date:** [11 April 2022 16:44 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/8 "2022-04-11T16:44:30Z")

</div>

I also have modified the Configuration\_Adv.h file, with the followign settings.

#define ADVANCED\_PAUSE\_FEATURE

#if ENABLED(ADVANCED\_PAUSE\_FEATURE)

#define PAUSE\_PARK\_RETRACT\_FEEDRATE 60 // (mm/s) Initial retract feedrate.

#define PAUSE\_PARK\_RETRACT\_LENGTH 2 // (mm) Initial retract.

```
                                              // This short retract is done immediately, before parking the nozzle.

```

#define FILAMENT\_CHANGE\_UNLOAD\_FEEDRATE 10 // (mm/s) Unload filament feedrate. This can be pretty fast.

#define FILAMENT\_CHANGE\_UNLOAD\_ACCEL 25 // (mm/s^2) Lower acceleration may allow a faster feedrate.

#if ENABLED(DIRECT\_DRIVE\_PRINTER)

```
#define FILAMENT_CHANGE_UNLOAD_LENGTH 20

```

#elif ENABLED(MOUNTED\_FILAMENT\_SENSOR)

```
#define FILAMENT_CHANGE_UNLOAD_LENGTH 10

```

#else

```
#define FILAMENT_CHANGE_UNLOAD_LENGTH 100

```

#endif

#define FILAMENT\_CHANGE\_SLOW\_LOAD\_FEEDRATE 6 // (mm/s) Slow move when starting load.

#define FILAMENT\_CHANGE\_SLOW\_LOAD\_LENGTH 0 // (mm) Slow length, to allow time to insert material.

```
                                              // 0 to disable start loading and skip to fast load only

```

#define FILAMENT\_CHANGE\_FAST\_LOAD\_FEEDRATE 6 // (mm/s) Load filament feedrate. This can be pretty fast.

#define FILAMENT\_CHANGE\_FAST\_LOAD\_ACCEL 25 // (mm/s^2) Lower acceleration may allow a faster feedrate.

#define FILAMENT\_CHANGE\_FAST\_LOAD\_LENGTH 0 // (mm) Load length of filament, from extruder gear to nozzle.

```
                                              // For Bowden, the full length of the tube and nozzle.

                                              // For direct drive, the full length of the nozzle.

```

//#define ADVANCED\_PAUSE\_CONTINUOUS\_PURGE // Purge continuously up to the purge length until interrupted.

#define ADVANCED\_PAUSE\_PURGE\_FEEDRATE 3 // (mm/s) Extrude feedrate (after loading). Should be slower than load feedrate.

#define ADVANCED\_PAUSE\_PURGE\_LENGTH 50 // (mm) Length to extrude after loading.

```
                                              // Set to 0 for manual extrusion.

                                              // Filament can be extruded repeatedly from the Filament Change menu

                                              // until extrusion is consistent, and to purge old filament.

```

#define ADVANCED\_PAUSE\_RESUME\_PRIME 0 // (mm) Extra distance to prime nozzle after returning from park.

//#define ADVANCED\_PAUSE\_FANS\_PAUSE // Turn off print-cooling fans while the machine is paused.

```
                                              // Filament Unload does a Retract, Delay, and Purge first:

```

#define FILAMENT\_UNLOAD\_PURGE\_RETRACT 13 // (mm) Unload initial retract length.

#define FILAMENT\_UNLOAD\_PURGE\_DELAY 5000 // (ms) Delay for the filament to cool after retract.

#define FILAMENT\_UNLOAD\_PURGE\_LENGTH 8 // (mm) An unretract is done, then this length is purged.

#define FILAMENT\_UNLOAD\_PURGE\_FEEDRATE 25 // (mm/s) feedrate to purge before unload

#define PAUSE\_PARK\_NOZZLE\_TIMEOUT 45 // (seconds) Time limit before the nozzle is turned off for safety.

#define FILAMENT\_CHANGE\_ALERT\_BEEPS 10 // Number of alert beeps to play when a response is needed.

#define PAUSE\_PARK\_NO\_STEPPER\_TIMEOUT // Enable for XYZ steppers to stay powered on during filament change.

#define PARK\_HEAD\_ON\_PAUSE // Park the nozzle during pause and filament change.

//#define HOME\_BEFORE\_FILAMENT\_CHANGE // If needed, home before parking for filament change

//#define FILAMENT\_LOAD\_UNLOAD\_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.

//#define FILAMENT\_UNLOAD\_ALL\_EXTRUDERS // Allow M702 to unload all extruders above a minimum target temp (as set by M302)

#endif

---

<div class="post-metadata">

**Author:** ![jeffwb2u](https://marlin.crc.id.au/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jeffwb2u](https://marlin.crc.id.au/forum/u/jeffwb2u)\
**Post date:** [11 April 2022 16:47 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/9 "2022-04-11T16:47:01Z")

</div>

But with all these chages which should work, if I enable my Runout sensor, the machine does an immediate Unload after bed leveling and I have to disable the Runout sensor to continue the print. I can’t see any reason that the two devices will not work together.

---

<div class="post-metadata">

**Author:** ![jmger](https://marlin.crc.id.au/forum/user_avatar/marlin.crc.id.au/jmger/32/776_2.png) [@jmger](https://marlin.crc.id.au/forum/u/jmger)\
**Post date:** [10 February 2023 21:33 UTC](https://marlin.crc.id.au/forum/t/support-for-ezabl/798/10 "2023-02-10T21:33:45Z")

</div>

Hi all, From the USA,  
I have the same setup. I have the BTT Octopus Pro board, EZABL SENSOR and BTT SMART FILAMENT runout Sensor. I have the same issue exactly. When the MENU comes up to continue to print after a Filament load I get the screen Purge More Filament and TURN OFF Filament sensor. As my only 2 options. When I click on Filament ON/OFF I get a second screen Purge more filament or Continue. I think that the first screen show not appear at all. Only this second screen which is again Purge More, Continue. So how do we get rid of the screen that says Purge More Filament, Runout sensor on/off. If this screen could be removed then I am thinking everything would work OK. I don’t think this is a conflict between the EZABL sensor and the RUNout sensor but I could be wrong. Also, same thing, If I then Reenable the Filament Runout Sensor then it start a M600 command and the loop continues. I hope we can find a fix. I recently reported this issue on GitHub. Maybe you should search for my issue/post in Github and add your comments. I am using Marlin 2.1.2.
