Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Filament monitor still not working... Any clue

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    8
    320
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • koreandiundefined
      koreandi
      last edited by

      Re: DUET magnetic filament monitor; No calibration Data

      Hi there,
      I already started an attemp to get my sensor running. I was these days again on Site where the printer is based.
      I changed my IO fomr 5 to 6 just to check if there was anything wrong.
      The Sensor blinks 3 x green and if oushing filament through, you can see the green light flashing.
      I get responce from the console but always: no calibration Data.
      When starting a print, the print pauses everytime on the same area. When finishing the print, there is still no calibration data.

      I guess I crooked something in my general settings.
      The printer has two physical extruder gears with eacht their own extruder (Drive 3 and 4).
      Could it be that I set something wrong?
      Also I am not sure if this might be correct:

      M568 P0 S0                                      ; enable mixing for tool 0
      M567 P0 E0.5:0.5                                ; set mixing ratios for tool 0
      

      This would be my complete config.g:

      ; Configuration file for Duet 3 Mini 5+ (firmware version 3.3)https://docs.duet3d.com/en/User_manual/Reference/Gcodes
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.3.10 on Tue Jul 05 2022 08:21:28 GMT+0200 (Mitteleuropäische Sommerzeit)
      
      ;logTemps (Daemon.g)
      if !exists(global.logTemps)
        global logTemps = false
      else
        set global.logTemps = false
      
      ; General preferences
      M575 P1 S1 B57600                               ; enable support for PanelDue
      G90                                             ; send absolute coordinates...
      M83                                             ; ...but relative extruder moves
      M550 P"MH-Professional"                         ; set printer name
      M669 K1                                         ; select CoreXY mode
      
      ; Network
      M552 S1                                         ; enable network
      M586 P0 S1                                      ; enable HTTP
      M586 P1 S0                                      ; disable FTP
      M586 P2 S0                                      ; disable Telnet
      M587 S"xxx" P"yyy"			; Wlan LoginDaten
      
      ; Drives
      M569 P0 S0                                    ; physical drive 0.0 goes forwards
      M569 P1 S0                                    ; physical drive 0.1 goes forwards
      M569 P2 S1                                    ; physical drive 0.2 goes forwards
      M569 P3 S0                                    ; physical drive 0.3 goes forwards
      M569 P4 S1                                    ; physical drive 0.4 goes forwards
      M584 X0 Y1 Z2 E3:4                 		  ; set drive mapping M584 X0 Y1 Z2 E3:4   
      M350 X16 Y16 Z16 E16:16 I1                    ; configure microstepping with interpolation 16
      M92 X80 Y80 Z400 E157:157                		; set steps per mm 154,5; 230,6; 192,2; 183,0; 179,4; 181,2; 177,7; 169,2; 154;156; 163
      M566 X900 Y900 Z60 E120:120                  ; set maximum instantaneous speed changes (mm/min)
      M203 X6000 Y6000 Z360 E1200:1200              ; set maximum speeds (mm/min); Z180
      M201 X500 Y500 Z20 E250:250                  ; set accelerations (mm/s^2)
      M906 X800 Y800 Z800 E1000:1000 I30              ; set motor currents (mA) and motor idle factor in per cent :1000
      M84 S30                                       ; Set idle timeout
      
      ; Axis Limits
      M208 X0 Y-34 Z0 S1                                ; set axis minima ;M208 X0 Y-10 Z0 S1   
      M208 X126 Y180 Z165 S0                          ; set axis maxima ;M208 X160 Y180 Z165 S0
      
      ; Endstops
      M574 X2 S1 P"!io2.in"                             ; configure active-high endstop for low end on X via pin xstop
      M574 Y1 S1 P"!io3.in"                             ; configure active-high endstop for low end on Y via pin ystop
      
      ; Z-Probe
      M574 Z1 S2                                      ; Set endstops controlled by probe
      M558 P5 C"io4.in" H1.5 F300 S0.1 T12000            ; set Z probe type to switch and the dive height + speeds   ;M558 P5 C"io4.in" H5 F120 S0.1 T6000
      M557 X10:110 Y10:110 P4:4                      ; define mesh grid
      G31 X0 Y35 Z0.65					           ;Alt 0,55; 0,58 ;0,6 --> Wenn Z Wert größer wird, ist die Düse Näher am Bett
      
      ; filament diameter sensor
      ;M591 D0 P3 C"io5.in" S1 ;E0.5 L25.13 R99:101					; filament monitor connected to IO_5 magnetic sensor P3 
      												;Sn 0 = disable filament monitoring (default), 1 = enable filament monitoring when printing from SD card. Filament monitors accumulate calibration data (where applicable) even when filament monitoring is disabled.
      												;Raa:bb Allow the filament movement reported by the sensor to be between aa% and bb% of the commanded values; if it is outside these values and filament monitoring is enabled, the print will be paused; without given values the allowed span is from 60 to 160 %  
      ; Fans
      M950 F1 C"out3" Q500							; Wasserkühlung-Steuerung
      M106 P1 C"Hotend" S1 H1 T50                    ; set fan 1 name and value. Thermostatic control is turned on
      
      M950 F0 C"out6" Q500                            ; create fan 0 on pin out6 and set its frequency
      M106 P0 C"Partcooling" S0 H-1 L255 X255                   ; set fan 0 name and value. Thermostatic control is turned off. low speed=max=255=high speed
      
      ; Heaters
      ; Bed
      M308 S0 P"temp0" Y"thermistor" A"Plattenheizung" T100000 B4138    ; configure sensor 0 as thermistor on pin temp0
      M950 H0 C"out0" T0                              ; create bed heater output on out0 and map it to sensor 0
      M307 H0 B0 R0.961 C279.1 D5.93 S1.00 V24.2      ; PID-tuning bed 
      M140 H0                                         ; map heated bed to heater 0
      M143 H0 S100                                    ; set temperature limit for heater 0 to 100C
      ; Hotend
      M302 S100										; cold extrusion temperature to 100C
      M308 S1 P"temp1" Y"thermistor" A"Düsenheizung" T100000 B4138    ; configure sensor 1 as thermistor on pin temp1
      M950 H1 C"out1" T1                              ; create nozzle heater output on out1 and map it to sensor 1
      M307 H1 B0 R3.025 C139.2 D2.87 S1.00 V24.3		; PID-tuning Phaetus Dragon watercooled 	Altes HF Hotend Lüfter AUS H1 B0 R2.282 C279.9 D5.03 S1.00 V24.3	Neues SF Hotend Lüfter AUS M307 H1 B0 R2.748 C262.2 D3.74 S1.00 V24.3
      M143 H1 S220                                    ; set temperature limit for heater 1 to 220C
      
      ; Tools
      M563 P0 D0:1 H1 F0 S"Hotend"                             ; define tool 0  M563 P0 D0:1 H1 F0 S"Hotend" 
      G10 P0 X0 Y0 Z0                                 ; set tool 0 axis offsets
      G10 P0 R0 S0                                    ; set initial tool 0 active and standby temperatures to 0C
      M568 P0 S0                                      ; enable mixing for tool 0
      M567 P0 E0.5:0.5                                ; set mixing ratios for tool 0
      
      ;Paneldue
      M575 P1 S1 B57600
      :T0
      

      Some questions from my site:

      1. Drivermapping and Name

      X0 Y1 Z2 E3:4  
      

      This calls out physical drive 3 and 4 for the E-axis. Will 3 be automatically be "extruder drive 0" and 4 "extruder drive 1"?

      2. Is the tool declaration correct?

      M563 P0 D0:1 H1 F0 S"Hotend"
      

      The heater didn´t work with only D0.

      3. Value D in M591

      M591 D0 P3 C"io5.in" S1 ;E0.5 L25.13 R99:101
      

      Is D0 refferring to what?! Is this assigned to my tool or extruder, or physical drive?

      4. Rotaion of the dual-E-drives
      Could it be that the Filament sensor has problems with the dual driven extruder (turning the stepper in different directions)?

      I used temporary only one of the stepper drivers and dissabled all the references to physical drive 4 (second extruder motor). After that the sensor showed some values an behaved a little more like it should. 🙂
      But I was not able to output any consitent materialflow.

      I hope someone coul dlook over my config.g.
      I am happy for any hints and help and will try to test the system as soon as I can access via remote.

      Greetings
      Andreas

      soare0undefined 1 Reply Last reply Reply Quote 0
      • soare0undefined
        soare0 @koreandi
        last edited by

        @koreandi said in Filament monitor still not working... Any clue:

        M591 D0 P3 C"io5.in" S1 ;E0.5 L25.13 R99:101

        First, you should not work with R99:101, but with larger interval. I even used R20:200, or 10:200.
        Second, E should be greater. I mean, it depends on your setup, but, I would advice, for start, to use at least 10 or even 25mm, and not 0.5mm.
        L25.13... I do not know right now the value. I did not even set it, as I hoped P3 would take care of it. Maybe I was wrong, but it worked... mostly.

        I am using now an Orthus, because my self made enclosure was not ok, and indeed, for it I had to set L parameter, but for DUET, besides the problems had, it worked well for hours in a row with the default setting for L, whatever it would be it.

        I would suggest, if you can, to put the sensor VERY, VERY near to extruder input, if direct extruder, or... well, I do not know, maybe there too, for a bowden setup. I have direct extruder. The thing is that DUET filament sensor is very sensitive, too sensitive, and you may have false readings otherwise.

        koreandiundefined 1 Reply Last reply Reply Quote 0
        • koreandiundefined
          koreandi @soare0
          last edited by

          @soare0
          Thanks for your reply.
          The E / L / R values are commented out. I tried to change those values to get any other responce, but after it doesn´t even get any calibration-data it was commented out.
          To not get any interrupts the complete line is actually commented out.

          The sensor is as close as possible to the extruder.

          Extruder is a selfmade dual-drive extruder with one nema for each drivegear.
          I think the problem is either the dual-motor-setup.
          Or the fact that the two motor spin in opposite directions.

          And I am not sure if I have to call:

          M591 D0...
          

          or

          M591 D0:1...
          

          Both variants doesn´t really works.

          I only got any usable data when changing firmware to have only one motor for my extruder.

          Does the mixing ration in

          M567 P0 E0.5:0.5 
          

          Changes anything with the steps/mm? I have read that the numbers don´t have to match up to 1. So it could be also:

          M567 P0 E1:1 
          

          without any different in behaviour?

          Greetings
          Andreas

          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators @koreandi
            last edited by

            @koreandi to be clear, you have two motors driving the filament in this extruder, and you are using them both next to each other, one to drive each hobbed gear?

            I have not see than use before. Its probably better to specify the mixing ration as 1:1, and adjust the step/mm accordingly. In that case it will then look like a "push pull" type setup (where you have one motor on the extruder and one by the spool maybe). In that case you would setup the filament monitor for one of the extruders.

            Also I would start it with more relaxed parameters, e.g. R40:140 and E3

            You can tighten up the R parameter later if everything is mechanically tight enough to allow it.

            www.duet3d.com

            koreandiundefined 1 Reply Last reply Reply Quote 0
            • koreandiundefined
              koreandi @T3P3Tony
              last edited by

              @T3P3Tony
              Yes, you are right. Each motor drives a gear. To be more specific it drives a belt driven by this gear.

              I will change the ratio to 1:1.

              Anyway if trying to get any calibration data with this setup there are no datas collected.

              I once got values back when disableing one motor completely in the firmware. I´ve gone through the settings several times.
              Hardware works as the LED indicates correct. Also mag and agc are in the right range.

              Without setting any further setting, the print pauses regulary (evertime at the same spot). And when reading the values after a print it is:

              • no calibration data
              • min and max flow 100 %
              soare0undefined 1 Reply Last reply Reply Quote 0
              • soare0undefined
                soare0 @koreandi
                last edited by soare0

                @koreandi How is M563 line? You mean that the stuff works only when you have M563 D0, and not M563 D0:1 for T...0 maybe? M563 is specified for a tool, if I understand right, you so need to specify both motors for that tool, to be able to specify mix ratio... I think.
                But: does M591 works with D0:1?
                If it would be possible for your board, I would use external drivers for this, if this does not work in any other way.

                koreandiundefined 1 Reply Last reply Reply Quote 0
                • koreandiundefined
                  koreandi @soare0
                  last edited by

                  @soare0
                  If I only do M563 D0 the Tool does does not show on the Display, nor anything heats up.
                  If doing M563 D0 the Tool only shows if I comment out the second drive in all previous M-lines.

                  I would say both motors are defined:

                  M569 P4 S1  
                  M584 X0 Y1 Z2 E3:4
                  
                  soare0undefined 1 Reply Last reply Reply Quote 0
                  • soare0undefined
                    soare0 @koreandi
                    last edited by

                    @koreandi My understanding of a tool changed pretty much with this approach, of ... gcodes.
                    A tool is a complex thing, and allows many items to be associated, for working in sync. For example, you need to start many items at once, and stop them at once, when start printing and stop printing.

                    Because of this, you need to associate to a tool the heaters, the fans, the motors, etc. However, there are limitations and cautions to this... as I learned too. For example, you usually do not want to associate with the tool all thermostatic fans, always, etc.

                    Because of this, you may need to associate both your motors to that tool, AFTER defining them, of course.
                    I only have one though:

                    M563 P0 S"E0" D0 H1                        ; define tool 0, one motor, one heater
                    ; or
                    M563 P0 S"E0" D0 H1:2                        ; define tool 0, 1 motor two heaters
                    ;or
                    M563 P0 S"E0" D0:1 H1                        ; define tool 0, two motors, one heaters
                    ; but this one idin not tested if it works, even if it is in plan
                    
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA