A20M - runout sensor not working with marlin 2.0 - pls. help

Post Reply
alfvv12
Posts: 29
Joined: Sun Jul 12, 2020 6:06 pm

A20M - runout sensor not working with marlin 2.0 - pls. help

Post by alfvv12 » 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:
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

alfvv12
Posts: 29
Joined: Sun Jul 12, 2020 6:06 pm

Re: A20M - runout sensor not working with marlin 2.0 - pls. help

Post by alfvv12 » Sun Mar 14, 2021 6:45 pm

hi.

i testes several tipps and suggestions about this issue.

but without success.

in all marlin versions 2.0..... the runout sensor is not working.

has any user a marlin 2.0 with correct settings?

or geeetech? i think this problem is known.

thx in advance.

alfvv12
Posts: 29
Joined: Sun Jul 12, 2020 6:06 pm

Re: A20M - runout sensor not working with marlin 2.0 - pls. help

Post by alfvv12 » Mon Mar 15, 2021 9:34 pm

hi.

nobody using marlin 2.0????

strange.

localhorst
Posts: 3
Joined: Thu Apr 01, 2021 7:45 pm

Re: A20M - runout sensor not working with marlin 2.0 - pls. help

Post by localhorst » Thu Apr 01, 2021 8:03 pm

Hi Alf,

i've the same issue with A10T and Verts Marlin 2.0.x bugfix version. Looking for solutiuon, too.

Haste schon was Neues rausgefunden?

Grüße,
Chris.

localhorst
Posts: 3
Joined: Thu Apr 01, 2021 7:45 pm

Re: A20M - runout sensor not working with marlin 2.0 - pls. help

Post by localhorst » Fri Apr 02, 2021 5:08 am

With enabled PINS_DEBUGGING... M43 gives me something confusing...

Code: Select all

>>>M43
SENDING:M43
PIN:   0   Port: E0        RXD0                                   protected
.                          FIL_RUNOUT3_PIN                        protected
PIN:   1   Port: E1        TXD0                                   protected
PIN:   2   Port: E4        HEATER_2_PIN                           Output = 0    TIMER3B   PWM:     0    WGM: 1    COM3B: 1    CS: 3    TCCR3A: 1    TCCR3B: 3    TIMSK3: 0
PIN:   3   Port: E5        HEATER_1_PIN                           Output = 0    TIMER3C   PWM:     0    WGM: 1    COM3C: 0    CS: 3    TCCR3A: 1    TCCR3B: 3    TIMSK3: 0
PIN:   4   Port: G5        FIL_RUNOUT_PIN                         protected
.                          HEATER_BED_PIN                         protected
PIN:   5   Port: E3        FIL_RUNOUT2_PIN                        Output = 1    TIMER3A   PWM:     0    WGM: 1    COM3A: 1    CS: 3    TCCR3A: 1    TCCR3B: 3    TIMSK3: 0
PIN:   6   Port: H3        <unused/unknown>                       Input  = 1                           TIMER4A   PWM:     0    WGM: 1    COM4A: 1    CS: 3    TCCR4A: 1    TCCR4B: 3    TIMSK4: 0
PIN:   7   Port: H4        FAN2_PIN                               protected
PIN:   8   Port: H5        FAN1_PIN                               protected
PIN:   9   Port: H6        FAN_PIN                                protected
PIN:  10   Port: B4        HEATER_0_PIN                           protected
PIN:  11   Port: B5        SERVO0_PIN                             Input  = 1    TIMER1A   PWM:   423    WGM: 4    COM1A: 0    CS: 2    TCCR1A: 0    TCCR1B: 10    TIMSK1: 2   non-standard PWM mode   compare interrupt enabled
PIN:  12   Port: B6        E0_ENABLE_PIN                          protected
PIN:  13   Port: B7        LED_PIN                                Input  = 1    TIMER0A   PWM:     0    WGM: 3    COM0A: 3    CS: 3    TCCR0A: 3    TCCR0B: 3    TIMSK0: 5   overflow interrupt enabled
 .                  TIMER1C is also tied to this pin                  TIMER1C   PWM:     0    WGM: 4    COM1C: 0    CS: 2    TCCR1A: 0    TCCR1B: 10    TIMSK1: 2   non-standard PWM mode
PIN:  14   Port: J1        <unused/unknown>                       Input  = 1
PIN:  15   Port: J0        <unused/unknown>                       Input  = 1
PIN:  16   Port: H1        BTN_EN1                                Input  = 0
PIN:  17   Port: H0        BTN_EN2                                Input  = 1
PIN:  18   Port: D3        BEEPER_PIN                             Output = 0
PIN:  19   Port: D2        BTN_ENC                                Input  = 1
PIN:  20   Port: D1        <unused/unknown>                       Input  = 1
PIN:  21   Port: D0        <unused/unknown>                       Output = 1
PIN:  22   Port: A0        <unused/unknown>                       Input  = 0
PIN:  23   Port: A1        Z_DIR_PIN                              protected
PIN:  24   Port: A2        X_MIN_PIN                              protected
.                          X_STOP_PIN                             protected
PIN:  25   Port: A3        Z_STEP_PIN                             protected
PIN:  26   Port: A4        <unused/unknown>                       Input  = 1
PIN:  27   Port: A5        Z_ENABLE_PIN                           protected
PIN:  28   Port: A6        Y_MIN_PIN                              protected
.                          Y_STOP_PIN                             protected
PIN:  29   Port: A7        Y_ENABLE_PIN                           protected
PIN:  30   Port: C7        Z_MIN_PIN                              protected
.                          Z_STOP_PIN                             protected
PIN:  31   Port: C6        Y_STEP_PIN                             protected
PIN:  32   Port: C5        <unused/unknown>                       Input  = 1
PIN:  33   Port: C4        Y_DIR_PIN                              protected
PIN:  34   Port: C3        <unused/unknown>                       Input  = 1
PIN:  35   Port: C2        X_ENABLE_PIN                           protected
PIN:  36   Port: C1        <unused/unknown>                       Output = 0
PIN:  37   Port: C0        X_STEP_PIN                             protected
PIN:  38   Port: D7        SD_DETECT_PIN                          Input  = 0
PIN:  39   Port: G2        X_DIR_PIN                              protected
PIN:  40   Port: G1        <unused/unknown>                       Input  = 1
PIN:  41   Port: G0        E2_ENABLE_PIN                          protected
PIN:  42   Port: L7        <unused/unknown>                       Input  = 1
PIN:  43   Port: L6        E2_STEP_PIN                            protected
PIN:  44   Port: L5        E0_DIR_PIN                             protected
PIN:  45   Port: L4        E2_DIR_PIN                             protected
PIN:  46   Port: L3        E0_STEP_PIN                            protected
PIN:  47   Port: L2        E1_DIR_PIN                             protected
PIN:  48   Port: L1        E1_ENABLE_PIN                          protected
PIN:  49   Port: L0        E1_STEP_PIN                            protected
PIN:  50   Port: B3        AVR_MISO_PIN                           Input  = 1
PIN:  51   Port: B2        AVR_MOSI_PIN                           Output = 1
PIN:  52   Port: B1        AVR_SCK_PIN                            Output = 0
PIN:  53   Port: B0        AVR_SS_PIN                             Output = 1
.                          SDSS                                   Output = 1
PIN:  54   Port: F0 (A 0)  <unused/unknown>   Analog in =     4   Input  = 0
PIN:  55   Port: F1 (A 1)  <unused/unknown>   Analog in =   187   Input  = 0
PIN:  56   Port: F2 (A 2)  <unused/unknown>   Analog in =   369   Input  = 0
PIN:  57   Port: F3 (A 3)  <unused/unknown>   Analog in =   554   Input  = 1
PIN:  58   Port: F4 (A 4)  <unused/unknown>   Analog in =    84   Input  = 0
PIN:  59   Port: F5 (A 5)  <unused/unknown>   Analog in =   682   Input  = 1
PIN:  60   Port: F6 (A 6)  <unused/unknown>   Analog in =   641   Input  = 1
PIN:  61   Port: F7 (A 7)  <unused/unknown>   Analog in =   694   Input  = 1
PIN:  62   Port: K0 (A 8)  TEMP_2_PIN                             Analog in =  1023
PIN:  63   Port: K1 (A 9)  TEMP_1_PIN                             Analog in =  1023
PIN:  64   Port: K2 (A10)  TEMP_BED_PIN                           protected
PIN:  65   Port: K3 (A11)  TEMP_0_PIN                             protected
PIN:  66   Port: K4 (A12)  <unused/unknown>   Analog in =     5   Input  = 0
PIN:  67   Port: K5 (A13)  <unused/unknown>   Analog in =     5   Input  = 0
PIN:  68   Port: K6 (A14)  <unused/unknown>   Analog in =   235   Input  = 0
PIN:  69   Port: K7 (A15)  POWER_LOSS_PIN                         Input  = 1

#define FIL_RUNOUT_PIN 66 //PK4
#define FIL_RUNOUT2_PIN 67 //PK5
#define FIL_RUNOUT3_PIN 54 //PF0 - Wrong: 68 (for A10T only)

Why do the FIL_RUNOUT*_PIN's appear under pin 4,5 and 0 instead of 66, 67 and 54?!?! :x Where is this defined?!?

alfvv12
Posts: 29
Joined: Sun Jul 12, 2020 6:06 pm

Re: A20M - runout sensor not working with marlin 2.0 - pls. help

Post by alfvv12 » Fri Apr 02, 2021 9:22 pm

hi.
no success.....
runout sensors not working with marlin 2.0.... with A20M and A20T and A10T

und niemand scheints zu interessieren.... sollte doch nicht so schwer sein für leute die dauernd damit arbeiten....

vg.

alf26540
Posts: 4
Joined: Thu Mar 04, 2021 3:25 pm

Re: A20M - runout sensor not working with marlin 2.0 - pls. help

Post by alf26540 » Fri Apr 30, 2021 3:51 pm

Hello
for information I use an A20M with TMC 2209 and BLTOUCH in Marlin 2.0.7 on a GT2560 V4.0 card everything works perfectly well the configuration.h files, adv.h configuration and version.h are on the forum section A20M marlin 2.0 for GT2560V4
If that can help you

Post Reply