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

    G92 not working for E axis

    Scheduled Pinned Locked Moved
    General Discussion
    g92code gcode absolute positioning extruder drive homing setting zero setting position setting absolute position marlin
    4
    14
    2.8k
    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.
    • Guyarosundefined
      Guyaros
      last edited by Guyaros

      I'm also familiar with a bug that G92 Ennn doesn't change the E-axis coordinate.

      As a workaround, I always use relative extrusion moves.
      (you should set "Relative extrusion" checkbox in the slicer).

      You could try to replace E-axis with W-axis, and this may also be a workaround.

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

        @guyaros said in G92 not working for E axis:

        I'm also familiar with a bug that G92 Ennn doesn't change the E-axis coordinate.

        I don't recall anyone ever having reported that. G92 E0 certainly works, and the code is written to handle general E-values.

        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

        Guyarosundefined 1 Reply Last reply Reply Quote 0
        • Guyarosundefined
          Guyaros @dc42
          last edited by Guyaros

          Hi David,

          How would you explain this behavior?
          0_1524839086009_G92 Enn Bug.jpg

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

            The extruder values reported by M114 are actual extrusion amounts since the print started. They are not affected by G92 E commands. How they relate to the E values in successive G1 commands depends on the extrusion factor set by M221 and by any tool mixing that is in effect.

            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

            Guyarosundefined 1 Reply Last reply Reply Quote 0
            • wcj97undefined
              wcj97 @dc42
              last edited by

              @dc42 said in G92 not working for E axis:

              It would still help to see the GCode file. There may be something in it that is resetting the extruder coordinate. Editing the G92 E command into the GCode file immediately before the first printing move should work.

              I will try that, and if that does not work I will come back here with a copy of my code.

              Original Prusa i3 MK2
              Hephaestus (Custom Duet based large format FFF)
              Aeon (Custom belt printer)
              Elegoo Mars

              1 Reply Last reply Reply Quote 0
              • Guyarosundefined
                Guyaros @dc42
                last edited by

                @dc42 said in G92 not working for E axis:

                The extruder values reported by M114 are actual extrusion amounts since the print started. They are not affected by G92 E commands. How they relate to the E values in successive G1 commands depends on the extrusion factor set by M221 and by any tool mixing that is in effect.

                Thanks for clarifying that, I thought its a bug.

                Nevertheless, I don't understand how could I check that G92 Ennn.nn does make an effect.
                I thought E is just an Axis that has coordinate, so by typing G92 E1234.5 the E coordinate should be changed accordingly.
                So basically E is not treated as a regular axis like X,Y,Z,W?

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

                  No, E is not a regular axis, it is a "virtual extruder position", used only when the GCode file uses absolute extruder coordinates. In the early days of 3D printing, absolute extruder coordinates made some sort of sense, because the absolute extruder coordinate multiplied by the E steps/mm was the number of steps the motor had moved since the start of extrusion. Now that we have M221 to adjust the extrusion amount, pressure advance, nonlinear extrusion, and mixing extruders, the firmware has to convert the requested extrusion to relative, adjust it for the M221 correction, adjust it for mixing, adjust it for nonlinear extrusion, adjust it for pressure advance, and convert it to a step profile for that move. So absolute extruder coordinates make no sense now. But they compicate the firmware, because whenever the print stream is interrupted (for a simple pause, power failure etc.), the virtual extruder position has to be saved and then restored at the appropriate moment. This means that the virtual extruder position has to be included in every move descriptor, which increases the memory requirement.

                  It would be much simpler if everyone used relative extruder coordinates.

                  We could include the virtual extruder position in the M114 report, but it isn't as useful as reporting the filament actually consumed since the start of the print.

                  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

                  Guyarosundefined 1 Reply Last reply Reply Quote 1
                  • Guyarosundefined
                    Guyaros @dc42
                    last edited by

                    @dc42

                    Thanks for the very informative reply, now it makes sense to me.
                    Personally, I don't need the extruder position in M114, but it may be useful for others.

                    When I had the need to control the extrusion absolute position - for example for a "syringe extruder" which has maximum travel (syringe max stroke), I configure W-axis that act as an extruder.

                    1 Reply Last reply Reply Quote 0
                    • botanic2000undefined
                      botanic2000
                      last edited by botanic2000

                      Has run into same issue with E-axis today. Was trying to set up print resuming after power loss and found out that RRF is ignoring G92 command in the "resurrect.g" file.
                      Basically, what happens is when I resume printing after power down the print head goes over the print and then it starts extruding all the way from 0 to the value that has been stored in "resurrect.g".

                      What am I doing wrong here?

                      Firmware Version: 2.01(RTOS) (2018-07-26b2)

                      1_1537273182573_resurrect-prologue.g 0_1537273182573_resurrect.g

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

                        @botanic2000 said in G92 not working for E axis:

                        Has run into same issue with E-axis today. Was trying to set up print resuming after power loss and found out that RRF is ignoring G92 command in the "resurrect.g" file.
                        Basically, what happens is when I resume printing after power down the print head goes over the print and then it starts extruding all the way from 0 to the value that has been stored in "resurrect.g".

                        What am I doing wrong here?

                        Firmware Version: 2.01(RTOS) (2018-07-26b2)

                        1_1537273182573_resurrect-prologue.g 0_1537273182573_resurrect.g

                        Please post the ResTest.gcode file too, or put it on a file sharing site so that I can download it.

                        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
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA