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

    Filament sensor

    Scheduled Pinned Locked Moved
    Filament Monitor
    6
    13
    1.7k
    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.
    • Phaedruxundefined
      Phaedrux Moderator @Deluxe 600
      last edited by Phaedrux

      @deluxe-600 said in Filament sensor:

      Error: Bad command: man.

      M551 inman. ; Machine password

      Put quotes around your password.

      https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M551_Set_Password

      Quotation marks around the password are mandatory in RRF3, but discretionary in earlier firmware versions.

      @deluxe-600 said in Filament sensor:

      Error: Z axis maximum must be greater than minimum

      ; Axis Limits
      M208 X0 Y0 Z0 S0 ; Set axis minima
      M208 X545 Y545 Z675 S0 ; Set axis maxima

      Do you notice anything wrong with your axis minima and maxima? You have S0 for both. Maximum should be S1.

      https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M208_Set_axis_max_travel

      @deluxe-600 said in Filament sensor:

      G31 X0 Y0 Z0.9

      You're missing the X Y offset for your probe.

      https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe#Section_Measuring_Probe_X_Y_Offset

      @deluxe-600 said in Filament sensor:

      ;Filament Runout Sensor M591 P1 C"e0stop" S1 D0 ; filament monitor connected to E0 endstop

      Are you sure you're actually connected to the e0stop pin?
      If you insert and remove the filament to trigger the endstop, does the endstop LED on the board go on and off?
      Are you sure the switch triggers on high?

      M591 P1 or P2
      1=simple sensor (high signal when filament present)
      2=simple sensor (low signal when filament present)

      What kind of filament runout switch is it? Photo? Link?

      @deluxe-600 said in Filament sensor:

      I would like the sensor when it detects no filament to run the "filament-change.g" macro i have created for it.

      I don't think this will be possible.

      https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M591_RepRapFirmware_Num_3

      The action on a filament error is to pause the print and advise you that there has been a filament error.

      Filament-change.g is used by M600.

      https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M600_Filament_change_pause

      This command behaves like M226 except that if macro file filament-change.g exists in /sys on the SD card, it is run in preference to pause.g.

      If you want the switch to do something specific, use this method described here https://duet3d.dozuki.com/Wiki/Connecting_and_configuring_filament-out_sensors#Section_Firmware_1_18_and_earlier

      To make the firmware run a script when the filament runs out, use M581 to associate the endstop you chose with a "trigger". Trigger 0 is an emergency stop (probably not what you want), trigger 1 pauses the print (running pause.g), and otherwise trigger n runs the file triggern.g., which you can write yourself.

      Finally, the trigger only happens when the endstop changes state. If you try to start a print with the filament out, the trigger won't happen. So add M582 to the start of your prints to check the filament state and run the trigger if there's no filament.

      https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M581_RepRapFirmware_3_01_and_later

      Z-Bot CoreXY Build | Thingiverse Profile

      Deluxe 600undefined 1 Reply Last reply Reply Quote 0
      • Deluxe 600undefined
        Deluxe 600 @Phaedrux
        last edited by

        @phaedrux Thank you for the reply.
        I am using filament sensor from Prusa MINI because i had it laying around.
        Its a optical gate acting like a normal switch.
        26c53922-79d0-46e6-ab71-159663d27ece-image.png
        The sensor works as the print stops and the light on the board turns on.

        I understand i need the filament runout to send M600 command but i dont know how to do it.

        dc42undefined 1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @Deluxe 600
          last edited by

          @deluxe-600 in RRF3.3 if you configure a filament monitor using M591, when it reports no filament RRF will try to run filament-error#.g where # is the extruder number, or failing that filament-error.g. If neither of those is found then it runs pause.g.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          KipKundefined Deluxe 600undefined 2 Replies Last reply Reply Quote 1
          • KipKundefined
            KipK @dc42
            last edited by

            @dc42
            Sorry to hijack this thread, but I don't want to create a new one for this.
            I've heard somewhere in the wiki that the filament sensor needs to be on the same board than the extruder it's watching to.
            Is it still the case with 3.3+?
            I'm about to switch to Duet 3 with 1LC toolboard, my filament sensor is outside the carriage, on the main board.

            kb58undefined 1 Reply Last reply Reply Quote 0
            • Deluxe 600undefined
              Deluxe 600 @dc42
              last edited by

              @dc42
              So if i understand it correctly. I need to find or make filament-error#.g and put the contents of
              filament-change.g in it? Or how should i do it correctly?

              Or maybe delete the filament-error#.g or filament-error.g for it to run pause.g?

              Best would be if i could somehow run filament-change.g as a result of no fillament trigger.

              dc42undefined 1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators @Deluxe 600
                last edited by dc42

                @deluxe-600 just copy filament-change.g to filament-error.g; or have filament-error.g call filament-change.g using M98.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                Deluxe 600undefined 2 Replies Last reply Reply Quote 0
                • Deluxe 600undefined
                  Deluxe 600 @dc42
                  last edited by

                  @dc42 Thanks, i will try that and let you know.

                  1 Reply Last reply Reply Quote 0
                  • kb58undefined
                    kb58 @KipK
                    last edited by kb58

                    @kipk said in Filament sensor:

                    @dc42
                    Sorry to hijack this thread, but I don't want to create a new one for this.
                    I've heard somewhere in the wiki that the filament sensor needs to be on the same board than the extruder it's watching to.
                    Is it still the case with 3.3+?
                    I'm about to switch to Duet 3 with 1LC toolboard, my filament sensor is outside the carriage, on the main board.

                    I have a very similar situation. I'm about to add a filament sensor and have two questions:

                    1. The question above that was already asked, must the detector be connected to the same (tool) board that's running the extruder?

                    2. If I'm using a tool board, in the M591 configuration, Is the correct parameter "D121.0" since the extruder is run from the tool board, or just "E0"?

                    Thanks

                    Scratch-built 350mmx350mm coreXY, linear rails, ballscrews, 3 Z axis, Duet3 6HC, v3.3, Tool Board v1.1, BondTech LGX + Mosquito hot end

                    medicusdkfzundefined 1 Reply Last reply Reply Quote 0
                    • Deluxe 600undefined
                      Deluxe 600 @dc42
                      last edited by

                      @dc42 After a bit of trial and error i figured it out .
                      For some reason adding just M98 P"pause.g" in the filament-error does nothing.
                      So i just copied everything from pause.g to filament-error.g but then i wanted the tool to be put in stand by. After a few tries i figured out it needs to be writen is specific order to work.
                      So here is my final version of filament-error.g that actualy does what its suposed to.

                      G10 P0 R20 ; Set standby temp of tool 0 to 20*
                      M83 ; relative extruder moves
                      G1 E-50 F2000 ; retract 10mm of filament
                      G91 ; relative moves
                      G1 Z5 F500 ; raise nozzle 5mm
                      G90 ; absolute moves
                      G1 X20 Y525 F6000 ; go to X=20 Y=525
                      T-1 ; Deselect tool

                      Thank you for the help guys, have a great day.

                      1 Reply Last reply Reply Quote 1
                      • medicusdkfzundefined
                        medicusdkfz @kb58
                        last edited by

                        @kb58 said in Filament sensor:

                        I have a very similar situation. I'm about to add a filament sensor and have two questions:

                        The question above that was already asked, must the detector be connected to the same (tool) board that's running the extruder?

                        If I'm using a tool board, in the M591 configuration, Is the correct parameter "D121.0" since the extruder is run from the tool board, or just "E0"?

                        I know, the thread is a little bit old. But I had the same questions, nobody has been answered and maybe it will help other users with Filament sensor and 1LC...

                        1. Yes, it have to...
                        2. D0 is ok. Here's my config.
                        ; Filament sensor (Duet)
                        M591 D0 P3 C"121.io1.in" S1 R70:130 L24.8 E3.0 ; Duet3D rotating magnet sensor for extruder drive 0 is connected to E0 endstop input, enabled, sensitivity 24.8mm.rev, 70% to 130% tolerance, 3mm detection length
                        
                        M591 D0 ; display filament sensor parameters for extruder drive 0
                        
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA