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

    Extrusion value for any XYZ coordinate within a move?

    Scheduled Pinned Locked Moved
    General Discussion
    4
    6
    315
    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.
    • jazbaatbadalgayeundefined
      jazbaatbadalgaye
      last edited by

      Let us assume that we start at 0,0,0. When I give G0 X5 Y5 command via YAT, I can see the total extrusion value for that move through the DDA debug output. Now what I am interested in is the extrusion value at any arbitrary coordinate within that move. i.e. what would be the extrusion value when, say x = 3 y = 4. How can I get that value?

      alankilianundefined 1 Reply Last reply Reply Quote 0
      • alankilianundefined
        alankilian @jazbaatbadalgaye
        last edited by alankilian

        @jazbaatbadalgaye I don't think your extruder should ever get to x=3,y=4 during that move, but anyway...

        I think the extrusion is linear for the entire move, so if you have a move that's 20 units long, and you are 5 units into the move, you've extruded (5/20=0.25) of the whole amount of extrusion.

        So you can calculate the total move distance and the distance traveled to your point and make a fraction.

        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

        jazbaatbadalgayeundefined 1 Reply Last reply Reply Quote 0
        • jazbaatbadalgayeundefined
          jazbaatbadalgaye @alankilian
          last edited by

          @alankilian That makes sense but shouldn't the extrusion be more while acceleration, linear during the constant speed phase and less during the deceleration phase, to get uniform extrusion throughout the move? If its linear during accel. and decel wouldn't it cause under-extrusion and over-extrusion respectively? Hope I am making sense.

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

            @jazbaatbadalgaye extrusion is linear with respect to distance moved, not linear in time. The extrusion speed accelerates and decelerates in step with the movement speed.

            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

            engikeneerundefined 1 Reply Last reply Reply Quote 1
            • engikeneerundefined
              engikeneer @dc42
              last edited by

              @dc42 is that still true when pressure advance is used?

              E3D TC with D3Mini and Toolboards.
              Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
              i3 clone with a bunch of mods

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

                @engikeneer said in Extrusion value for any XYZ coordinate within a move?:

                @dc42 is that still true when pressure advance is used?

                No, the commanded extrusion is modified when pressure advance is used in order to get the actual extrusion closer to being linear in distance moved.

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