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

    [3.3-rc2/3] "Change filament" Does not work correctly

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    4
    23
    904
    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 @Diamondback
      last edited by

      @diamondback Thanks. Far as we know as of RC3 it should be working. @chrishamm will have to take a look at your files.

      Z-Bot CoreXY Build | Thingiverse Profile

      Diamondbackundefined 2 Replies Last reply Reply Quote 0
      • Diamondbackundefined
        Diamondback @Phaedrux
        last edited by

        @phaedrux Thank you, I will update to RC3 and see if things persist. 👍

        1 Reply Last reply Reply Quote 0
        • Diamondbackundefined
          Diamondback @Phaedrux
          last edited by

          @phaedrux Just had time to try again on RC3, same behavior as on RC2.

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

            Would you be able to share all of your macros that are called in the filament change load and unload macros? What's actually happening is buried in there.

            Z-Bot CoreXY Build | Thingiverse Profile

            Diamondbackundefined 1 Reply Last reply Reply Quote 0
            • Diamondbackundefined
              Diamondback @Phaedrux
              last edited by

              @phaedrux here you go (I replaced macro calls by the actual gcode to makes things easier to read)

              unload

              M42 P1 S255; lights on
              M109 S270
              M300 S300 P300
              G4 P300
              M300 S400 P300
              G4 P300
              M300 S500 P300
              M291 P"Pull out filament" R"Filament" S2
              M104 S0
              M300 S300 P300
              G4 P300
              M300 S400 P300
              G4 P300
              M300 S500 P300
              

              config

              M207 S0.3 F3000 Z0.0 	;firmware retraction settings for PETG
              M302 S250 R190      	;Cold extrusion settings
              

              load (this is using the "PebbleWiper" concept with a variable amount of pebbles being extruded depending on if it's a filament load or a toolchange, so don't be surprised by the servo calls etc)

              M42 P1 S255; lights on
              M291 P"Heating for purge" R"Filament" S0 T115
              if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed || !move.axes[3].homed
                M98 P"homeall.g"
              M109 S270
              M302 S250 R190
              M300 S300 P300
              G4 P300
              M300 S400 P300
              G4 P300
              M300 S500 P300
              M291 P"Insert new Nylon filament" R"Filament" S2
              M280 P0 S40
              
              if state.currentTool < 0
              	echo "Can't Prime & Brush, no tool selected!"
              	M99
              
              if heat.heaters[tools[state.currentTool].heaters[0]].current > heat.coldExtrudeTemperature
              	M564 S0
              	G90
              	G53 G1 X-148.7 Y70 F25000		; Move in front of brush at safe Y
              	G53 G1 Y149 F25000				; Quickly move in
              	;G53 G1 Y150 F3000				; Slowly approach final Y position
              
              	var primeRepeats = 1
              	if exists(var.R)
              		set var.primeRepeats = var.R
              
              	while iterations < var.primeRepeats
              		G4 P1000
              		M280 P0 S40
              		G4 P100
              		M83
              		;M280 P0 S85
              		G1 E20 F200
              		M106 S255
              		G4 P7000
              		G1 E-0.8 F2500
              		G4 P300
              
              		M280 P0 S180
              		M106 S0
              		G4 P200
              
              	G91
              	G1 Y-40 F20000 ; start of brush
              	
              	G1 Y35 F20000 ; start of brush
              	G1 Y-45 F20000
              	M280 P0 S40
              
              	G1 Y-40 F25000
              	G1 X10 F25000
              
              	G90
              	M564 S1
              else
              	echo "Skipping Prime & Brush due to unheated tool"
              M104 S0
              M300 S300 P300
              G4 P300
              M300 S400 P300
              G4 P300
              M300 S500 P300
              
              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                Note that M109/M104 may cause tool changes so it would be better to use G10 S/R + M116 instead, just to be safe
                the only reason why M701 could complain about a loaded filament is if M702 somehow deselected the tool

                Z-Bot CoreXY Build | Thingiverse Profile

                Diamondbackundefined 1 Reply Last reply Reply Quote 0
                • Diamondbackundefined
                  Diamondback @Phaedrux
                  last edited by

                  @phaedrux Thanks for the hint, will change that to be sure.
                  Just in case it got overlooked, this specific code worked fine on previous versions, as far as I know, RC2 was the first version to break.

                  1 Reply Last reply Reply Quote 0
                  • Diamondbackundefined
                    Diamondback
                    last edited by

                    Might have found the cause. As you can see, one of the last things my unload does is to display a blocking message that waits before the tool is allowed to cool down again.

                    The error appears in the console while the blocking message is still being displayed, ie before I confirmed it.

                    It reminds me of this issue: https://forum.duet3d.com/topic/23579/3-3rc3-tool-change-don-t-wait-on-m116-p/25

                    @dc42 is this possibly related?

                    1 Reply Last reply Reply Quote 1
                    • Diamondbackundefined
                      Diamondback
                      last edited by

                      Update, tested the RC3+7 from the linked thread, this does not solve the issue. Still sounds like a ver similar thing.

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

                        @diamondback Now that 3.3 final is available can you test with that?

                        Z-Bot CoreXY Build | Thingiverse Profile

                        Diamondbackundefined 2 Replies Last reply Reply Quote 0
                        • Diamondbackundefined
                          Diamondback @Phaedrux
                          last edited by Diamondback

                          @phaedrux Same thing as before, here's a screenshot showing the behavior I mentioned (error from load in the console while the dialog from unload is still being displayed)
                          2021-06-16_23-27-21.png

                          Will remove the dialog and re-test to confirm.

                          1 Reply Last reply Reply Quote 0
                          • Diamondbackundefined
                            Diamondback @Phaedrux
                            last edited by Diamondback

                            @phaedrux Ok, yea when I remove the M291 S2 from the unload script, it "works", as in it successfully executes unload and then load.
                            So looks like the blocking M291 is indeed the issue here due to M701 being executed while M702 is still "active" due to the blocking dialog.

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

                              Thanks. Will investigate.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              1 Reply Last reply Reply Quote 1
                              • Diamondbackundefined
                                Diamondback
                                last edited by Diamondback

                                @phaedrux Any news? This is still bugging my daily 😁

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

                                  @diamondback are you running in standalone or SBC mode?

                                  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

                                  Diamondbackundefined 1 Reply Last reply Reply Quote 0
                                  • Diamondbackundefined
                                    Diamondback @dc42
                                    last edited by

                                    @dc42 Standalone. (Duet 2 Wifi + Duex 5)

                                    1 Reply Last reply Reply Quote 0
                                    • Diamondbackundefined
                                      Diamondback
                                      last edited by

                                      Any news about this @dc42 ?

                                      1 Reply Last reply Reply Quote 0
                                      • Diamondbackundefined
                                        Diamondback
                                        last edited by

                                        Any news on this? Would love to get the "change" functionality back... @chrishamm @dc42

                                        1 Reply Last reply Reply Quote 0
                                        • Diamondbackundefined
                                          Diamondback
                                          last edited by

                                          I don't know when exactly this got solved, but starting with one of thhe 3.4 beta builds, this is no longer an issue and works fine again. 🙂

                                          1 Reply Last reply Reply Quote 1
                                          • Diamondbackundefined Diamondback has marked this topic as solved
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA