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

    Tool Change - Purge Sequence & M116

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    19
    3.1k
    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.
    • Syko_Symaticundefined
      Syko_Symatic
      last edited by

      When Tool 1 comes back it needs to be purged, then tool 2 select heated and primed.

      1 Reply Last reply Reply Quote 0
      • Syko_Symaticundefined
        Syko_Symatic
        last edited by

        So now I have this…. correct?

        [[language]]
        ; File: tfree1.g
        
        ; Retract
        G10
        
        ; Dock
        G1 X110 Y200
        G1 X110 Y222
        
        ; Pre-Prime Extruder
        G11
        
        ; Purge
        G1 E27 F400
        G1 E-14 F4000
        
        ; End
        
        
        [[language]]
        ; File: tpost1.g
        
        ; Wait For Print Temperature
        M116 P1				; Will wait for Hotend to reach print temp
        
        ; Prime
        G1 F200
        G1 E15 F200
        G1 F50
        G1 E5 F50
        G1 E-1.5 F3000
        
        ; Wipe
        G1 X110 Y200
        
        ;End
        
        

        Is the P1 correct in the M116 P1 line should it be P2 in the tpost1?

        Probably should add:
        G91
        G1 Z5 F1000
        in the tfree1.g

        These are obviously the same (but different for #2)

        tpre#.g is blank in both cases.

        1 Reply Last reply Reply Quote 0
        • T3P3Tonyundefined
          T3P3Tony administrators
          last edited by

          Looks about there (will be cool to see a video of the printer doing all this :D)

          The tool you are waiting for in Tpost1.g is P1, P2 should be in Tpost2.g

          You are starting from T1, rather than T0 so make sure that where you are referring to tools (for example in the slicing gcode) you have a T1 and T2 rather than a T0 and T1.

          If you use G91 then its a good idea to match it with a G90 once the relative move is done or else you will have a crash.

          also if you elevate the head/drop the bed then remember to put it back where it was one the move is complete.

          www.duet3d.com

          1 Reply Last reply Reply Quote 0
          • Syko_Symaticundefined
            Syko_Symatic
            last edited by

            Should I have it as tpost0.g and 1 then? I got the 1/2 combo from dc42 example. I currently have it set as T0 and T1 in the config.

            Yes I will remember to put tthem back and use a G90 otherwise that could yield some strange results!!

            1 Reply Last reply Reply Quote 0
            • T3P3Tonyundefined
              T3P3Tony administrators
              last edited by

              Yes, I use Txxx0.g and Txxx1.g

              www.duet3d.com

              1 Reply Last reply Reply Quote 0
              • Syko_Symaticundefined
                Syko_Symatic
                last edited by

                So thanks for the help I now have it working pretty well. It purges and primes perfectly. Now my only issue is currently I have the G10 P# S200 R160 code for both heads in my slicer startup. So it heats head one then tool changes (Inc the purge sequence) and heats head two. Then tool changes back to head one again to print. Is there a way of eliminating this extra change sequence?

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

                  I think that's down to your slicer, it's trying to make sure that both nozzles are heated and purged before printing.

                  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
                  • Syko_Symaticundefined
                    Syko_Symatic
                    last edited by

                    Yes it definitely pre-heats without my say so. I will have to research S3D. Can both nozzles be heated together through the Duet code?

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

                      You can heat both nozzles together, assuming your PSU can handle it. Here is an example:

                      1. Send G10 P1 S0 Rxxx (the R value should be the standby temperature you want), and G1 P0 Sxxx Rxxx with the correct active and standby temperatures.

                      2. Send T1 to select tool 1. Because the active temperature is 0, it won't wait to heat up even if you have M116 H1 in your tpost1.g file.

                      3. Send T0 to select tool 0. This will cause it to heat tool 0 to active temperature at the same time as heating tool 1 to standby temperature.

                      4. Send G10 P1 Sxxx to select the correct active temperature for tool 1.

                      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
                      • Syko_Symaticundefined
                        Syko_Symatic
                        last edited by

                        Apparently putting this line:

                        M104 S[extruder#_temperature] T#

                        In your startup script causes S3D to ignore its normal heat up process and follow your script for heating at startup. Setting the # to your respective tool numbers.

                        Thanks for all the help dc42 and T3P3Tony! I am almost there with the dual printing now.

                        I have to try and stop myself from buying another duetwifi board for the printer I'm building next!!

                        1 Reply Last reply Reply Quote 0
                        • T3P3Tonyundefined
                          T3P3Tony administrators
                          last edited by

                          don't try too hard ;D

                          www.duet3d.com

                          1 Reply Last reply Reply Quote 0
                          • joestefanoundefined
                            joestefano
                            last edited by

                            Syko, I have a 3 extruder printer with a Duet WiFi. I am using S3D. Until now I have been using the "start script" in S3D but I can't get it to move to the purge bin during a tool change. It works fine if I'm only using 1 extruder to print. I think I need to use tfree & tpost instead of S3D for tool changes. Can you share your code for the tfree & tpost and the changes you made to S3D?
                            Ultimately when I start multi Ex print, I want Ex0 (T0) to move from home to the purge bin , heat up and then purge 10mm then start the print. When Ex0 is done I want Ex1 (T1) to move to the purge bin, heat and purge, and continue print.
                            Thanks for your help

                            1 Reply Last reply Reply Quote 0
                            • Kulitorumundefined
                              Kulitorum
                              last edited by

                              I prefer to keep my slicer configuration as standard as possible and do parking, heating and unparking in free#.g and post#.g so it's easier to use different slicers.

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