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

    M571 Proper Use + Question

    Scheduled Pinned Locked Moved Unsolved
    Firmware wishlist
    4
    7
    476
    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.
    • HebigTundefined
      HebigT
      last edited by HebigT

      Firmware: 3.2.2
      Duet 2 Ethernet + Duex5

      I have a few questions related to M571 (set output on extrude):

      1). Is it necessary to first use M950 & C"nil" to free the desired pin?

      I tried these in the following order but DWC replies that "e0heat is not free":

      M950 e0heat C"nil"
      M571 P"e0heat" S1
      

      2). How many instances of M571 does RRF allow? I have a pair of relays that i'd like to switch on when extrusion is active (both relays activated by a unique M571 command)

      3). Last one is an issue I can't seem to solve related to M950 - I found that disabling any heater make my bed heater disappear from DWC.

      For example:

      M950 e0heat C"nil"
      M950 P0 C"e0heat" F10
      

      replacing e0heat with any other heater makes my bed heater go away.

      alankilianundefined dc42undefined HebigTundefined 3 Replies Last reply Reply Quote 0
      • alankilianundefined
        alankilian @HebigT
        last edited by

        @hebigt

        You don't have any parameter identifier before the e0_heat name.

        Maybe M950 H0 C"nil"

        Reference: https://duet3d.dozuki.com/Wiki/Gcode#Section_M950_Create_heater_fan_spindle_or_GPIO_servo_pin

        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

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

          Can you share your full config?

          Also might want to update to 3.3.

          https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/Duet2and3Firmware-3.3.zip

          Upload to the system tab.

          I don't think you need to use M950 at all. There are no default bindings for pins after 3.0, so no need to use "nil" unless it's already been defined previously.

          Z-Bot CoreXY Build | Thingiverse Profile

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

            @hebigt said in M571 Proper Use + Question:

            How many instances of M571 does RRF allow?

            Only one.

            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 1
            • HebigTundefined
              HebigT @HebigT
              last edited by

              @alankilian

              Thank you all for the help.

              I used M571 "e0heat" Qxx Sxx and it's working now. Also upgraded to 3.3 as @Phaedrux recommended.

              @dc42 I'll admit, I have a specific use case that requires multiple components to turn on when extrusion (syringe) is active. No idea if it's feasible, but I would love to see multiple M571 commands supported so that each external component can have a dedicated output.

              For now, my workaround is to define a M571 in tpreX.g for each tool. All my external components use 24v input, so I'll just connect all of them to the needed output and turn them on simultaneously.

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

                Perhaps I'll move to the wishlist forum then.

                Z-Bot CoreXY Build | Thingiverse Profile

                HebigTundefined 1 Reply Last reply Reply Quote 1
                • HebigTundefined
                  HebigT @Phaedrux
                  last edited by

                  @phaedrux Thanks!

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