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

    Problem with m291

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    10
    566
    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.
    • schpongoundefined
      schpongo
      last edited by

      Hey guys,
      I'm having trouble using the m291 command.

      My setup is a Duet 3 6HC + a Duet 3HC expansion shield and a RPI setup as a SBC.

      I'd like to run the following macro, but when the message shows up and I click ok the code after the m291 command is not executed. The message then goes away but the printer says it's busy. The same happens when I click cancel.

      if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed
      	G28
      G1 Z350 F4000
      
      M291 P"The bed will home next. Remove all object from the bed!" R"Warning" S3
      G1 Z 300
      M98 P"homew.g"
      
      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        There have been some fixes to M291+SBC in RRF/DSF 3.2beta. @chrishamm has the details.

        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
        • schpongoundefined
          schpongo
          last edited by

          How does one go about updating the Duet 3 with a SBC to beta software? The getting started page does not mention anything about that.

          A Former User? 1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User @schpongo
            last edited by

            @schpongo said in Problem with m291:

            How does one go about updating the Duet 3 with a SBC to beta software? The getting started page does not mention anything about that.

            https://forum.duet3d.com/post/178813

            1 Reply Last reply Reply Quote 0
            • schpongoundefined
              schpongo
              last edited by

              Thanks for the quick reply, before I do that, I would also like to know what I need to do to go back to the stable branches?

              1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User
                last edited by

                same thing just replace unstable with stable on the first line.

                (presumably you can skip line #4 but it won't hurt either)

                1 Reply Last reply Reply Quote 0
                • schpongoundefined
                  schpongo
                  last edited by

                  Thanks for the quick answer.

                  1 Reply Last reply Reply Quote 0
                  • chrishammundefined
                    chrishamm administrators
                    last edited by

                    M291 did not work well before RRF 3.1 so I presume you're still on an old firmware/DSF version. Please update your Duet as described here: https://duet3d.dozuki.com/Wiki/SBC_Setup_for_Duet_3#Section_Connecting_via_SSH

                    @dc42 The M291 fixes from 3.2-b1 only affect PanelDue in SBC mode.

                    Duet software engineer

                    schpongoundefined 1 Reply Last reply Reply Quote 0
                    • schpongoundefined
                      schpongo @chrishamm
                      last edited by

                      @chrishamm Hmm.. I'm actually on 3.1.1. I did not yet do the update to the beta Version. Might there be something else that I'm doing wrong?

                      1 Reply Last reply Reply Quote 0
                      • schpongoundefined
                        schpongo
                        last edited by

                        I'm still on 3.1.1 and I'm still having issues with the the M291 command. Here is the macro I'm trying to run:

                        ; ToDo check Temp of bed and nozzle, so both are cold
                        ; Cancel any currently active mesh compensation 
                        M561
                        ; Set z-probe trigger height to 0
                        G31 Z0
                        G1 X0 Y0 Z200 F6000 
                        M291 P"Move to point were the z probe shall be calibrated." X1 Y1 S2
                        M291 P"Get a 0.1 mm thick metal spacer" S2
                        while iterations <= 5
                        	G1 Z50
                        	M291 P"Remove the z probe sensor if it is already or still attached" S2
                        	G1 Z5
                        	M291 P"Move FFF nozzle down until it just grabs a 0.1 mm thick metal spacer and then remove it." Z1 S2
                        	G92 Z0.1
                        	G1 Z50
                        	M291 P"Attach the z probe" S2
                        	G30 S-1
                        
                        M291 P"Now calculate the average of the test. The average is the z probe trigger height for that point. Set it the config.g with G31 Z{ave} " S2
                        

                        After I click OK from the first M291 in line 7 the machine just stays busy and the second window does not open.

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