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

Change mix ratio without delay?

Scheduled Pinned Locked Moved
Tuning and tweaking
3
11
400
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.
  • undefined
    CJ.BRAVO
    last edited by 1 Jun 2020, 06:42

    Hey there,

    here's my code:

    T0
    M567 P0 E1:0:1:0:1
    g1 x100 y0 z1.8
    g1 Y30 E50 F15000
    M567 P0 E1:1:1:1:1
    g1 Y150 E200
    M567 P0 E0:1:1:0:1
    g1 Y250 E100

    I want to change the mix ratio of tool 0 in the middle of a Y movement.

    I wish to have the Y movement run smoothly without stops.

    Is that possible?

    Cheers!

    undefined undefined 2 Replies Last reply 1 Jun 2020, 08:17 Reply Quote 0
    • undefined
      deckingman @CJ.BRAVO
      last edited by 1 Jun 2020, 08:17

      @CJ-BRAVO Quick answer - no. Longer answer gcode commands are carried out sequentially so you can only run an M567 between G1 moves.

      Ian
      https://somei3deas.wordpress.com/
      https://www.youtube.com/@deckingman

      1 Reply Last reply Reply Quote 0
      • undefined
        dc42 administrators @CJ.BRAVO
        last edited by dc42 6 Jan 2020, 11:44 1 Jun 2020, 08:32

        @CJ-BRAVO said in Change mix ratio without delay?:

        Hey there,

        here's my code:

        T0
        M567 P0 E1:0:1:0:1
        g1 x100 y0 z1.8
        g1 Y30 E50 F15000
        M567 P0 E1:1:1:1:1
        g1 Y150 E200
        M567 P0 E0:1:1:0:1
        g1 Y250 E100

        I want to change the mix ratio of tool 0 in the middle of a Y movement.

        I wish to have the Y movement run smoothly without stops.

        Is that possible?

        Cheers!

        For that sequence of commands, the movement should be smooth if the extruder jerk is set high enough so that the extrusion mix ratio changes you command can be done instantaneously, without having to accelerate and decelerate the extruders.

        If it's a mixing extruder, in normal use you should keep the total of the 5 E values in the M567 command equal to 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
        • undefined
          CJ.BRAVO
          last edited by 1 Jun 2020, 09:52

          my jerk:

          M566 X500 Y500 Z50 U500 E800:800:800:800:800    ;
          

          how high should I go?
          you say the the extruder jerk affects the smoothness of the Y movement?

          " 5 E values in the M567 command equal to 1" - what happens if it isn't? how will it affect the movement?

          I want to use M567 pretty often with each movement. I really want to turn on/off of the extruders.

          I thought of just using E:0:1:0:1 and/or e:1:1:1:1

          Should I rethink it and go like this:

          E0 : 0.5 : 0 : 0.5
          or
          E0 : 0.33 : 0.33 : 0.33 ?

          thanks

          undefined 1 Reply Last reply 1 Jun 2020, 10:29 Reply Quote 0
          • undefined
            deckingman @CJ.BRAVO
            last edited by 1 Jun 2020, 10:29

            @CJ-BRAVO It would help to know exactly what it is that you are trying to do. The E values should equal 1 if you are using a mixing hot end and have multiple extruders feeding a single nozzle. If that is not the case, the the sum of the E values does not matter. One way to "turn on/off extruders" would be to assign extruders to tools, then you can change which extruders are active by changing tools. But without knowing a bit more about the application and what it is you are trying to achieve, it's difficult to advise.

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

            1 Reply Last reply Reply Quote 0
            • undefined
              CJ.BRAVO
              last edited by 1 Jun 2020, 10:52

              "if that is not the case, the the sum of the E values does not matter" - right.
              I am using several extruders with independent properties which aren't feeding a single nozzle.

              I am trying an experimental tool which has to act as a single tool with multiple drivers that can be turned on/off.

              the best way I found is using the mixing ratio.

              if returning to the first question - I want to use the M567 "seamlessly" while moving in the Y direction.

              From a quick test I noticed that the tool decelerates and accelerates at the M567 change.

              by changing the jerk settings, is it possible to mitigate the effect?

              undefined 1 Reply Last reply 1 Jun 2020, 11:23 Reply Quote 0
              • undefined
                deckingman @CJ.BRAVO
                last edited by 1 Jun 2020, 11:23

                @CJ-BRAVO said in Change mix ratio without delay?:

                "if that is not the case, the the sum of the E values does not matter" - right.
                I am using several extruders with independent properties which aren't feeding a single nozzle.

                I am trying an experimental tool which has to act as a single tool with multiple drivers that can be turned on/off.

                the best way I found is using the mixing ratio.

                if returning to the first question - I want to use the M567 "seamlessly" while moving in the Y direction.

                From a quick test I noticed that the tool decelerates and accelerates at the M567 change.

                by changing the jerk settings, is it possible to mitigate the effect?

                OK, now I understand a bit more. In theory, when one Y move follows another without any change of direction, then Y jerk should not apply, at least according to this from the Wiki:

                "The default jerk policy is 0, which replicates the behaviour of earlier versions of RRF (jerk is only applied between two printing moves, or between two travel moves, and only if they both involve XY movement or neither does). Changing the jerk policy to 1 allows jerk to be applied between any pair of moves."

                So as long as you have the policy set to 0, then the only thing that can cause the gantry to slow down would be extruder jerk (which is what DC said). But according to DC, the extruders need to change speed instantaneously (or maintain the speed). An instantaneous change in speed is physically impossible and would require an infinitely high jerk speed. But you could get close by using a very high E jerk setting. Try 3600 and see if that does the trick - I use that value on my machine for other reasons, but I can testify that it does no harm.

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                1 Reply Last reply Reply Quote 0
                • undefined
                  CJ.BRAVO
                  last edited by 1 Jun 2020, 11:55

                  @deckingman said in Change mix ratio without delay?:

                  So as long as you have the policy set to 0

                  How do I do that?

                  undefined 1 Reply Last reply 1 Jun 2020, 12:18 Reply Quote 0
                  • undefined
                    deckingman @CJ.BRAVO
                    last edited by 1 Jun 2020, 12:18

                    @CJ-BRAVO said in Change mix ratio without delay?:

                    @deckingman said in Change mix ratio without delay?:

                    So as long as you have the policy set to 0

                    How do I do that?

                    The default is 0 so if you have no "P" parameter in your M566, then do nothing. But if you have P1 at in your M566, change it to P0.

                    https://duet3d.dozuki.com/Wiki/Gcode#Section_M566_Set_allowable_instantaneous_speed_change

                    Ian
                    https://somei3deas.wordpress.com/
                    https://www.youtube.com/@deckingman

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      CJ.BRAVO
                      last edited by 1 Jun 2020, 13:22

                      can my XYZ and U axis work smoothly without a jerk setting?

                      undefined 1 Reply Last reply 1 Jun 2020, 13:45 Reply Quote 0
                      • undefined
                        deckingman @CJ.BRAVO
                        last edited by 1 Jun 2020, 13:45

                        @CJ-BRAVO said in Change mix ratio without delay?:

                        can my XYZ and U axis work smoothly without a jerk setting?

                        Not sure what you mean. If there was no instantaneous speed threshold (otherwise known as jerk), then every move would start from a speed of zero, accelerate up to the demand speed, maintain that speed (if the move is long enough to do so), then decelerate back down to zero speed. When jerk (instantaneous speed change) is applied, one move will slow down to the jerk speed instead of zero, and the next move will commence at that same speed.

                        So with zero jerk, the gantry will work smoothly but very slowly, especially for things like arcs or curves which are made up from a lot of very short straight moves. Each individual move would start at zero speed, then accelerate but probably never attain the desired speed before it's time to decelerate down to zero speed again prior to the next move. Conversely, if the jerk limit was set to the same as the print speed or higher, then there would be no change in overall carriage speed between moves, but if there is a sharp change in direction, say 90 degrees from pure X to pure Y, then there would be an instantaneous change in speed for each axis, which might be quite violent to watch and not what you would call "smooth".

                        In summary, the lower the jerk setting, the smoother moves will appear to be, but overal motion might be too slow. Thus the jerk setting will always be a compromise between "smoothness" and print speed.

                        Ian
                        https://somei3deas.wordpress.com/
                        https://www.youtube.com/@deckingman

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