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

    Dumbfounded ! Firmware bug in 3.4 beta 6?

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    5
    27
    1.4k
    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.
    • GeneRisiundefined
      GeneRisi @Phaedrux
      last edited by

      @phaedrux I was restoring Z but not X and Y because the next G1 command would change the position of the tool anyway, so 1 line might not get drawn properly but the following lines should be ok as long as the G1 command included x and Y coordinates. Right?

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

        I'm not sure, but Putting G1 R1 X0 Y0 Z0 at the end of the tpost#.g file would fix that if it is the issue you're having.

        Z-Bot CoreXY Build | Thingiverse Profile

        GeneRisiundefined 3 Replies Last reply Reply Quote 0
        • GeneRisiundefined
          GeneRisi @Phaedrux
          last edited by

          @phaedrux I'll try it

          1 Reply Last reply Reply Quote 0
          • GeneRisiundefined
            GeneRisi @Phaedrux
            last edited by

            @phaedrux I think you meant to say R2 and not R1, correct?

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

              @generisi said in Dumbfounded ! Firmware bug in 3.4 beta 6?:

              @phaedrux I think you meant to say R2 and not R1, correct?

              Correct, it should be R2. The mistake is actually mine, not the fault of @Phaedrux !

              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
              • GeneRisiundefined
                GeneRisi @Phaedrux
                last edited by GeneRisi

                @phaedrux "G1 R2 ..." did not fix the problem. Maybe a firmware issue...

                I also tried starting with T3 and then using T0 and that worked correctly, so two sequences worked T0, T1 and T3,T0. T1,T0 does not work as expected.

                A Former User? T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
                • A Former User?
                  A Former User @GeneRisi
                  last edited by

                  @generisi
                  I have something similar but till now no idea what's wrong.
                  How about changing tool outside the print?

                  GeneRisiundefined 1 Reply Last reply Reply Quote 0
                  • GeneRisiundefined
                    GeneRisi @A Former User
                    last edited by

                    @gruna-studio It takes a fair amount of gcode to change the tools. Each tool has its own unique set of offsets from the system coordinates which the firmware manages.

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

                      @generisi said in Dumbfounded ! Firmware bug in 3.4 beta 6?:

                      two sequences worked T0, T1 and T3,T0. T1,T0 does not work as expected.

                      what are the differences between those free, pre and post files?

                      www.duet3d.com

                      GeneRisiundefined 1 Reply Last reply Reply Quote 0
                      • GeneRisiundefined
                        GeneRisi @T3P3Tony
                        last edited by

                        @t3p3tony Hi Tony - I have included those files in the post previously. I can't see a difference that would explain it.

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

                          @generisi said in Dumbfounded ! Firmware bug in 3.4 beta 6?:

                          G29 Q1

                          G29 Q2

                          These are wrong - Should be G29 S1/S2 - although i don't think that's the cause of the issue.

                          I assume you now have :

                          G1 R2 X0 Y0 Z2
                          G1 R2 Z0
                          

                          at the end of all the tpost#.g files?

                          @generisi said in Dumbfounded ! Firmware bug in 3.4 beta 6?:

                          two sequences worked T0, T1 and T3,T0. T1,T0 does not work as expected.

                          can i check T0 -> T1 works but T1 -> T0 does not work? What if you just command the tool changes through the console sending:
                          T-1
                          T0
                          G1 X100 Y100 Z0
                          T1
                          G1 X100 Y100 Z0
                          T0
                          G1 X100 Y100 Z0
                          ..etc

                          repeatedly does the pickup point or the position X100 Y100 Z0 differ between the tools?

                          www.duet3d.com

                          GeneRisiundefined 1 Reply Last reply Reply Quote 0
                          • GeneRisiundefined
                            GeneRisi @T3P3Tony
                            last edited by GeneRisi

                            @t3p3tony Hi Tony - I have my own "mesh.g" macro that allows me to also use "Q1" and "Q2" as inputs. I use the macro to check that the bed mesh in use has been created after the most recent system reset and is not being used if it was created some time before the most recent reset.

                            ; mesh.g
                            ;
                            ; Redefining G29 behavior
                            ; New parameter Q is used as a substitute for S so that this macro is called
                            ; 	no parms or Q0 means probe mesh, save it but don't load it now
                            ; 	Q1 means use mesh compensation if is fresh
                            ; 	Q2 means disable mesh compensation
                            ;       global.freshMesh set to false in config.g
                            ;
                            var qVal = 0
                            if exists(param.Q)
                            	set var.qVal = param.Q
                            if var.qVal = 0
                            	if !move.axes[0].homed | !move.axes[1].homed | !move.axes[2].homed
                            		abort "Home all axes before running mesh probes"
                            	else
                            		G91;
                            		G1 Z5 F500
                            		G90;
                            		G29 S2 ; make sure mesh compensations is off
                            		G1 X150 Y100 F3000
                            		G30 ;  get fresh Z=0 for current conditions
                            		set global.freshMesh = true
                            elif var.qVal = 1 & global.freshMesh = false
                            	abort "Trying to use old height map, that's not ok right now"
                            ;
                            echo "G29 S", {var.qVal}
                            G29 S{var.qVal}
                            ;
                            if var.qVal = 0
                            	G29 S2					; disable mesh compensation for now if no parms or mesh probed and saved
                            ;
                            ; finis
                            

                            Also, is there a reason why you did not combine the two "G1 R2 ..." commands into a single command?

                            I will try your suggestion. Thanks!

                            T3P3Tonyundefined GeneRisiundefined 2 Replies Last reply Reply Quote 0
                            • T3P3Tonyundefined
                              T3P3Tony administrators @GeneRisi
                              last edited by

                              @generisi said in Dumbfounded ! Firmware bug in 3.4 beta 6?:

                              I have my own "mesh.g" macro that allows me to also use "Q1" and "Q2" as inputs. I use the macro to check that the bed mesh in use has been created after the most recent system reset and is not being used if it was created some time before the most recent reset.

                              ok i did not realise that - nice use case!

                              @generisi said in Dumbfounded ! Firmware bug in 3.4 beta 6?:

                              is there a reason why you did not combine the two "G1 R2 ..." commands into a single command?

                              restoring it in the way I showed, with some Z lift first, is what we recommend for most use cases as it means the last axis to move into position will be Z, so there is less change of the tool dragging across the top of the print as the position is restored.

                              www.duet3d.com

                              1 Reply Last reply Reply Quote 0
                              • GeneRisiundefined
                                GeneRisi @GeneRisi
                                last edited by

                                @generisi There are either 2 or 3 contact spots checked very unscientifically with double stick tape on the bed when alternating T1, T0, T1, T0, ...
                                Inked20211201_092323_LI.jpg

                                1 Reply Last reply Reply Quote 0
                                • GeneRisiundefined
                                  GeneRisi
                                  last edited by

                                  @t3p3tony Here is a simple print file that demonstrates T1,T0,T1,T0:

                                  G90
                                  M83
                                  M117 Preheat & Level
                                  G28
                                  G10 P0 S242 R200; set extruder 0 active and standby temps
                                  G10 P1 S242 R200; set extruder 1 active and standby temps
                                  M190 S85 ; wait for bed temperature
                                  ;mesh gcode
                                  G29 Q0
                                  T1
                                  G1 E-0.8000 F3000
                                  ; feature skirt
                                  ; tool H0.200 W0.400
                                  G1 Z0.200 F360
                                  G1 X145.575 Y112.700 F9000
                                  G1 E0.8000 F3000
                                  G1 X139.600 Y106.725 E0.2810 F90
                                  G1 X137.300 Y104.425 E0.1082
                                  G1 X137.300 Y95.575 E0.2944
                                  G1 X145.575 Y87.300 E0.3892
                                  G1 X154.425 Y87.300 E0.2944
                                  G1 X156.725 Y89.600 E0.1082
                                  G1 X162.700 Y95.575 E0.2810
                                  G1 X162.700 Y104.425 E0.2944
                                  G1 X154.425 Y112.700 E0.3892
                                  G1 X145.575 Y112.700 E0.2944
                                  G1 E-0.8000 F3000
                                  ; feature cross - external single extrusion
                                  ; tool H0.200 W0.400
                                  G1 Z0.400 F360
                                  G1 X147.738 Y100.000 F9000
                                  G1 Z0.200 F360
                                  G1 E0.8000 F3000
                                  G1 X149.641 Y100.000 E0.0633 F45
                                  G1 X150.000 Y99.641 F9000
                                  G1 X150.000 Y97.738 E0.0633 F45
                                  G1 E-0.8000 F3000
                                  G1 Z0.400 F360
                                  G1 X152.262 Y100.000 F9000
                                  G1 Z0.200 F360
                                  G1 E0.8000 F3000
                                  G1 X150.279 Y100.000 E0.0659 F45
                                  G1 X150.200 Y100.000 E0.0026
                                  ; tool H0.200 W0.416
                                  G1 X150.117 Y100.000 E0.0029
                                  ; tool H0.200 W0.499
                                  G1 X150.000 Y100.000 E0.0049
                                  G1 X150.000 Y100.117 E0.0049
                                  ; tool H0.200 W0.416
                                  G1 X150.000 Y100.200 E0.0029
                                  ; tool H0.200 W0.400
                                  G1 X150.000 Y100.279 E0.0026
                                  G1 X150.000 Y102.262 E0.0659
                                  G1 E-0.8000 F3000
                                  ; layer end
                                  T0;
                                  G1 E-0.8000 F3000
                                  ; feature skirt
                                  ; tool H0.200 W0.400
                                  G1 Z0.200 F360
                                  G1 X145.575 Y112.700 F9000
                                  G1 E0.8000 F3000
                                  G1 X139.600 Y106.725 E0.2810 F90
                                  G1 X137.300 Y104.425 E0.1082
                                  G1 X137.300 Y95.575 E0.2944
                                  G1 X145.575 Y87.300 E0.3892
                                  G1 X154.425 Y87.300 E0.2944
                                  G1 X156.725 Y89.600 E0.1082
                                  G1 X162.700 Y95.575 E0.2810
                                  G1 X162.700 Y104.425 E0.2944
                                  G1 X154.425 Y112.700 E0.3892
                                  G1 X145.575 Y112.700 E0.2944
                                  G1 E-0.8000 F3000
                                  ; feature cross - external single extrusion
                                  ; tool H0.200 W0.400
                                  G1 Z0.400 F360
                                  G1 X147.738 Y100.000 F9000
                                  G1 Z0.200 F360
                                  G1 E0.8000 F3000
                                  G1 X149.641 Y100.000 E0.0633 F45
                                  G1 X150.000 Y99.641 F9000
                                  G1 X150.000 Y97.738 E0.0633 F45
                                  G1 E-0.8000 F3000
                                  G1 Z0.400 F360
                                  G1 X152.262 Y100.000 F9000
                                  G1 Z0.200 F360
                                  G1 E0.8000 F3000
                                  G1 X150.279 Y100.000 E0.0659 F45
                                  G1 X150.200 Y100.000 E0.0026
                                  ; tool H0.200 W0.416
                                  G1 X150.117 Y100.000 E0.0029
                                  ; tool H0.200 W0.499
                                  G1 X150.000 Y100.000 E0.0049
                                  G1 X150.000 Y100.117 E0.0049
                                  ; tool H0.200 W0.416
                                  G1 X150.000 Y100.200 E0.0029
                                  ; tool H0.200 W0.400
                                  G1 X150.000 Y100.279 E0.0026
                                  G1 X150.000 Y102.262 E0.0659
                                  G1 E-0.8000 F3000
                                  ; layer end
                                  ; pass 2
                                  T1
                                  G1 E-0.8000 F3000
                                  ; feature skirt
                                  ; tool H0.200 W0.400
                                  G1 Z0.200 F360
                                  G1 X145.575 Y112.700 F9000
                                  G1 E0.8000 F3000
                                  G1 X139.600 Y106.725 E0.2810 F90
                                  G1 X137.300 Y104.425 E0.1082
                                  G1 X137.300 Y95.575 E0.2944
                                  G1 X145.575 Y87.300 E0.3892
                                  G1 X154.425 Y87.300 E0.2944
                                  G1 X156.725 Y89.600 E0.1082
                                  G1 X162.700 Y95.575 E0.2810
                                  G1 X162.700 Y104.425 E0.2944
                                  G1 X154.425 Y112.700 E0.3892
                                  G1 X145.575 Y112.700 E0.2944
                                  G1 E-0.8000 F3000
                                  ; feature cross - external single extrusion
                                  ; tool H0.200 W0.400
                                  G1 Z0.400 F360
                                  G1 X147.738 Y100.000 F9000
                                  G1 Z0.200 F360
                                  G1 E0.8000 F3000
                                  G1 X149.641 Y100.000 E0.0633 F45
                                  G1 X150.000 Y99.641 F9000
                                  G1 X150.000 Y97.738 E0.0633 F45
                                  G1 E-0.8000 F3000
                                  G1 Z0.400 F360
                                  G1 X152.262 Y100.000 F9000
                                  G1 Z0.200 F360
                                  G1 E0.8000 F3000
                                  G1 X150.279 Y100.000 E0.0659 F45
                                  G1 X150.200 Y100.000 E0.0026
                                  ; tool H0.200 W0.416
                                  G1 X150.117 Y100.000 E0.0029
                                  ; tool H0.200 W0.499
                                  G1 X150.000 Y100.000 E0.0049
                                  G1 X150.000 Y100.117 E0.0049
                                  ; tool H0.200 W0.416
                                  G1 X150.000 Y100.200 E0.0029
                                  ; tool H0.200 W0.400
                                  G1 X150.000 Y100.279 E0.0026
                                  G1 X150.000 Y102.262 E0.0659
                                  G1 E-0.8000 F3000
                                  ; layer end
                                  T0;
                                  G1 E-0.8000 F3000
                                  ; feature skirt
                                  ; tool H0.200 W0.400
                                  G1 Z0.200 F360
                                  G1 X145.575 Y112.700 F9000
                                  G1 E0.8000 F3000
                                  G1 X139.600 Y106.725 E0.2810 F90
                                  G1 X137.300 Y104.425 E0.1082
                                  G1 X137.300 Y95.575 E0.2944
                                  G1 X145.575 Y87.300 E0.3892
                                  G1 X154.425 Y87.300 E0.2944
                                  G1 X156.725 Y89.600 E0.1082
                                  G1 X162.700 Y95.575 E0.2810
                                  G1 X162.700 Y104.425 E0.2944
                                  G1 X154.425 Y112.700 E0.3892
                                  G1 X145.575 Y112.700 E0.2944
                                  G1 E-0.8000 F3000
                                  ; feature cross - external single extrusion
                                  ; tool H0.200 W0.400
                                  G1 Z0.400 F360
                                  G1 X147.738 Y100.000 F9000
                                  G1 Z0.200 F360
                                  G1 E0.8000 F3000
                                  G1 X149.641 Y100.000 E0.0633 F45
                                  G1 X150.000 Y99.641 F9000
                                  G1 X150.000 Y97.738 E0.0633 F45
                                  G1 E-0.8000 F3000
                                  G1 Z0.400 F360
                                  G1 X152.262 Y100.000 F9000
                                  G1 Z0.200 F360
                                  G1 E0.8000 F3000
                                  G1 X150.279 Y100.000 E0.0659 F45
                                  G1 X150.200 Y100.000 E0.0026
                                  ; tool H0.200 W0.416
                                  G1 X150.117 Y100.000 E0.0029
                                  ; tool H0.200 W0.499
                                  G1 X150.000 Y100.000 E0.0049
                                  G1 X150.000 Y100.117 E0.0049
                                  ; tool H0.200 W0.416
                                  G1 X150.000 Y100.200 E0.0029
                                  ; tool H0.200 W0.400
                                  G1 X150.000 Y100.279 E0.0026
                                  G1 X150.000 Y102.262 E0.0659
                                  G1 E-0.8000 F3000
                                  ; layer end
                                  M117 Print Complete !
                                  T-1
                                  M999
                                  

                                  Simple_cross.jpg

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

                                    @generisi please post your tool change files again, because you have changed them since you posted them.

                                    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

                                    GeneRisiundefined 1 Reply Last reply Reply Quote 0
                                    • GeneRisiundefined
                                      GeneRisi @dc42
                                      last edited by GeneRisi

                                      @dc42 OK, I will now

                                      ; tpost0.g
                                      ; called after tool 0 has been selected
                                      
                                      ;heatup
                                      M116 P0
                                      
                                      ;prime nozzle
                                      ;M98 Pprime.g
                                      
                                      ;mesh levelling on
                                      G29 Q1
                                      
                                      ;PCF fan on
                                      ;M106 P2 S255
                                      
                                      G1 R2 X0 Y0 Z2
                                      G1 R2 Z0 F360
                                      
                                      ; tpost1.g
                                      ; called after tool 1 has been selected
                                      
                                      ;heatup
                                      M116 P1
                                      
                                      ;prime nozzle
                                      ;M98 Pprime.g
                                      
                                      ;mesh levelling on
                                      G29 Q1
                                      
                                      ;PCF fan on
                                      ;M106 P4 S255
                                      G1 R2 X0 Y0 Z2
                                      G1 R2 Z0 F360
                                      

                                      The Free and pre files have not changed.

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

                                        @generisi with the image with the two cross prints you showed. Do you mean that T0 and T1 printed one of the crosses perfectly aligned and then the next time T1 was used it printed the miss aligned cross?

                                        www.duet3d.com

                                        GeneRisiundefined 1 Reply Last reply Reply Quote 0
                                        • GeneRisiundefined
                                          GeneRisi @T3P3Tony
                                          last edited by GeneRisi

                                          @t3p3tony Hi Tony, T1 printed the cross in one location and T0 printed the cross in the other location. Even when repeating the sequence a second time, T1 prints in one location and T0 in the other location.

                                          If the order is switched, so that T0 is used first, then T1, the crosses align as expected. This is also true if the sequence is T0, T1, T0, T1.

                                          FWIW, many years ago, I used to be a programmer and when I think about this, uninitialized values that are referenced comes to mind... FWIW

                                          @dc42 , is there some level of debugging I can turn on that might provide you some helpful information?

                                          dc42undefined 1 Reply Last reply Reply Quote 0
                                          • Phaedruxundefined Phaedrux marked this topic as a question
                                          • dc42undefined
                                            dc42 administrators @GeneRisi
                                            last edited by

                                            @generisi I have a theory about what us happening. Tool offsets are usually ignored in system macro files. So I think the G1 R2 X0 Y0 Z0 command at the end of config.g is ignoring the tool offsets. This obviously isn't wanted in this case.

                                            I will do some tests to confirm or refute this theory.

                                            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

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