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

    Mechanical filament sensor config

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    8
    348
    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.
    • Dad003undefined
      Dad003
      last edited by Dad003

      so i was looking to had a mechanical filament sensor using a simple switch , but on the wiki i couldn't find the line of code i will need to had to my Duet 3

      the example in the wiki show : M591 P3 C"e0_stop" S1 ; filament monitor connected to E0_stop

      I have 2 extruder so should my line of code look like this ?

      M591 P1 C"!io3.in"e0_stop" S1 ; filament monitor connected to E0_stop
      M591 P1 C"!io4.in"e1_stop" S1 ; filament monitor connected to E1_stop

      If not good, what should be the correct line just want to make sure i have the correct things.

      1 Reply Last reply Reply Quote 0
      • dhusoloundefined
        dhusolo
        last edited by

        This is something I'm actually working on getting setup. I'm using a simple NC mechanical end stop switch. This is my code in config.g

        M591 D0 P1 C"io3.in" S1
        

        If I run M591 D0 i Get the correct response if filament is present or not. I know on my Duet 2 Wifi I also had to configure M581 and M582 in config.g but I'm not sure if we need to do the same in RRF3

        Phaedruxundefined 1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator @dhusolo
          last edited by

          @dhusolo said in Mechanical filament sensor config:

          I know on my Duet 2 Wifi I also had to configure M581 and M582 in config.g but I'm not sure if we need to do the same in RRF3

          I don't think that's required anymore.

          https://duet3d.dozuki.com/Wiki/Gcode#Section_M591_RepRapFirmware_Num_3

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • Dad003undefined
            Dad003
            last edited by

            @Dad003 said in Mechanical filament sensor config:

            ; filament monitor connected to E0_stop

            THank you , i printed my part put the switch and inserted the Gcode line and it work , both extruder need to have filaments in them .

            IT there a way that one could had a line of code that would only check the switch of the current extruder in the job ? so that if extruder 2 is not used and has no filament that nothing pop up ? can duet do that or it asking too much .

            anyway it work so i dont have to keep watching when the spool it getting low !

            Phaedruxundefined maicolspazziniundefined 2 Replies Last reply Reply Quote 0
            • Dad003undefined
              Dad003
              last edited by

              here a picture

              alt text

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator @Dad003
                last edited by

                @Dad003 said in Mechanical filament sensor config:

                IT there a way that one could had a line of code that would only check the switch of the current extruder in the job ? so that if extruder 2 is not used and has no filament that nothing pop up ? can duet do that or it asking too much .

                I suppose you could have separate filament monitor gcode commands in the tool change files for either tool so that it enables or disables the monitor as the tools are changed by the slicer tool calls. Maybe. Not sure if that would work or not.

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 0
                • maicolspazziniundefined
                  maicolspazzini @Dad003
                  last edited by

                  @Dad003 said in Mechanical filament sensor config:

                  @Dad003 said in Mechanical filament sensor config:

                  ; filament monitor connected to E0_stop

                  THank you , i printed my part put the switch and inserted the Gcode line and it work , both extruder need to have filaments in them .

                  IT there a way that one could had a line of code that would only check the switch of the current extruder in the job ? so that if extruder 2 is not used and has no filament that nothing pop up ? can duet do that or it asking too much .

                  anyway it work so i dont have to keep watching when the spool it getting low !

                  Hi, what do you add on config.g? I Use
                  M591 D0 P1 C"e0stop" S1
                  M591 D1 P1 C"e1stop" S1

                  But during print there are some notifications ''bad command .... '' How can I resolve?

                  Phaedruxundefined 1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator @maicolspazzini
                    last edited by

                    @maicolspazzini said in Mechanical filament sensor config:

                    But during print there are some notifications ''bad command .... '' How can I resolve?

                    Please create a new thread with your issue and include as much detail as poissble.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA