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

    M950 and M581 issues

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    7
    439
    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.
    • toufou54undefined
      toufou54
      last edited by

      HI,

      I've just try to install a filament sensor on E0 stop, trying different configurations and finally got this :

      ; filament jam and run out switches
      M950 P3 C"e0stop"
      M581 P3 T1 S1 R0 ; Filament run-out sensor triggers a pause

      I've careful read the discussion here :
      https://forum.duet3d.com/topic/4952/inputs-for-a-simple-switch-filament-sensor/19

      and make adaptation for RFF 3.11 but it's not working

      Firstly I put E P0 but M950 P0 gave me this :
      M950 P0
      GPIO/servo port 0 pin (exp.heater3,exp.8) frequency 50Hz

      Now I have this with P3 :
      M950 P3
      GPIO/servo port 3 pin e0stop frequency 500Hz

      But nothing trigger (I want to pause) when a test (the led on the board is changing state when switch on and off, so my wiring appears to be good)

      And by the way, I don't understand the documentation here :
      https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_RepRapFirmware_3_01RC2_and_later

      It says "P Specify one or more input pin numbers that you created using M950 with the J parameter"

      What is this J parameters ???

      Thanks

      aidarundefined 1 Reply Last reply Reply Quote 0
      • aidarundefined
        aidar @toufou54
        last edited by

        @toufou54 said in M950 and M581 issues:

        It says "P Specify one or more input pin numbers that you created using M950 with the J parameter"
        What is this J parameters ???

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

        1 Reply Last reply Reply Quote 0
        • toufou54undefined
          toufou54
          last edited by

          Thanks I just found why I didn't see the informations, I was looking at new 3.0 firmware commands here :
          https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_M950_Create_heater_fan_or_GPIO_servo_port

          But that's not help me for what it doesn't work for me.

          Anybody help please ?
          -->
          ; filament jam and run out switches
          M950 P3 C"e0stop"
          M581 P3 T1 S1 R0 ; Filament run-out sensor triggers a pause

          Not pausing anything when switch change...

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

            @toufou54 said in M950 and M581 issues:

            M950 P3 C"e0stop"
            M581 P3 T1 S1 R0 ; Filament run-out sensor triggers a pause

            You need to use M950 J3 C"e0stop" in order to configure that pin as an GpIn. M950 P configures it as a GpOut.

            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

            1 Reply Last reply Reply Quote 0
            • toufou54undefined
              toufou54
              last edited by

              Thanks, it's working great now, except that when I resume after the test, when the nozzle came back to X and Y position, just when the Z go down the extruder begin to extrude before the Z final position !!!

              Andwhat about the :
              M582 T1 ; check if filament is present
              in the console I have no responses...

              In the meanwhile I've tested the M951 code, without success too :
              M591 D0 P2 C"e0stop"

              What I do wrong ?

              Thanks again for your quick answer

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

                @toufou54 said in M950 and M581 issues:

                Thanks, it's working great now, except that when I resume after the test, when the nozzle came back to X and Y position, just when the Z go down the extruder begin to extrude before the Z final position !!!

                What do you have in your resume.g file?

                Andwhat about the :

                M582 T1 ; check if filament is present

                in the console I have no responses...

                If you don't have a print from SD card in progress at the time, a pause command is ignored.

                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

                1 Reply Last reply Reply Quote 0
                • toufou54undefined
                  toufou54
                  last edited by

                  @dc42 said in M950 and M581 issues:

                  What do you have in your resume.g file?

                  Ok I understand now, I have this:
                  ; resume.g
                  ; called before a print from SD card is resumed
                  ;
                  ; generated by RepRapFirmware Configuration Tool v2.1.8 on Thu May 21 2020 00:01:33 GMT+0200 (heure d’été d’Europe centrale)
                  G1 R1 X0 Y0 Z5 F6000 ; go to 5mm above position of the last print move
                  G1 R1 X0 Y0 ; go back to the last print move
                  M83 ; relative extruder moves
                  G1 E10 F3600 ; extrude 10mm of filament

                  So I will remove or put the last line before moving...

                  Thanks

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