KREMEN Реклама
KREMEN Реклама

Датчики окончания филамента в прошивке.

ANTIS
Идет загрузка
Загрузка
24.11.2021
2773
2
Вопросы и ответы

У меня стоит два датчика окончания филамента.

Что не так у меня прописано в прошивке?

Configuration.h

#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_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.

  #define WATCH_ALL_RUNOUT_SENSORS // Execute runout script on any triggering sensor, not only for the active extruder.

                                          // This is automatically enabled for MIXING_EXTRUDERs.

  // Override individually if the runout sensors vary

  #define FIL_RUNOUT1_STATE LOW

  #define FIL_RUNOUT1_PULLUP

  #define FIL_RUNOUT1_PULLDOWN

 

pins_BTT_SKR_V1_3.h

// Filament Runout Sensor

//

#ifndef FIL_RUNOUT_PIN

  #define FIL_RUNOUT_PIN P1_28

#endif

#ifndef FIL_RUNOUT1_PIN

  #define FIL_RUNOUT1_PIN P1_27

#endif

 

Ошибка при компиляции:

In file included from Marlin\src\HAL\LPC1768\../../inc/../pins/pins.h:788,

                 from Marlin\src\HAL\LPC1768\../../inc/MarlinConfig.h:34,

                 from Marlin\src\HAL\LPC1768\HAL.cpp:24:

Marlin\src\HAL\LPC1768\../../inc/../pins/pins_postprocess.h:480: warning: "FIL_RUNOUT1_PIN" redefined

  480 | #define FIL_RUNOUT1_PIN FIL_RUNOUT_PIN

      |

In file included from Marlin\src\HAL\LPC1768\../../inc/../pins/pins.h:383,

                 from Marlin\src\HAL\LPC1768\../../inc/MarlinConfig.h:34,

                 from Marlin\src\HAL\LPC1768\HAL.cpp:24:

Marlin\src\HAL\LPC1768\../../inc/../pins/lpc1768/pins_BTT_SKR_V1_3.h:98: note: this is the location of the previous definition

   98 | #define FIL_RUNOUT1_PIN P1_27

      |

In file included from Marlin\src\HAL\LPC1768\../../inc/MarlinConfig.h:49,

                 from Marlin\src\HAL\LPC1768\HAL.cpp:24:

Marlin\src\HAL\LPC1768\../../inc/SanityCheck.h:682:4: error: #error "Enable only one of FIL_RUNOUT_PULLUP or FIL_RUNOUT_PULLDOWN."

  682 | #error "Enable only one of FIL_RUNOUT_PULLUP or FIL_RUNOUT_PULLDOWN."

      | ^~~~~

Marlin\src\HAL\LPC1768\../../inc/SanityCheck.h:854:6: error: #error "You can't enable FIL_RUNOUT1_PULLUP and FIL_RUNOUT1_PULLDOWN at the same time."

  854 | #error "You can't enable FIL_RUNOUT1_PULLUP and FIL_RUNOUT1_PULLDOWN at the same time."

      | ^~~~~

*** [.pio\build\LPC1768\src\src\HAL\LPC1768\HAL.cpp.o] Error 1

Ответы на вопросы