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

    Induce Control delay and latency?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    5
    330
    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.
    • likevviiundefined
      likevvii
      last edited by likevvii

      Is there a way to induce latency (2~6ms) for the E and Z axis steppers on controllers? X and Y operate normally.

      I'm currently experimenting with servos (clearpath) and 5-phase steppers (oriental motor)

      Both of these systems offer an optional control smoothing mode. Typically, drivers need to react instantaneously with the step/dir signals. This causes unmanaged vibrations in the micro scale. By adding control smoothing, instead of instantaneously reacting to the step/dir signals, they will have a set buffer of 5ms in order to plan and prepare an optimal trajectory and power for movements. This results in extremely quiet and smooth movement at the cost of latency.

      My XY axis will be controlled with a latency using the control smoothing motioned above. Is there a way to account for this latency for my Z and E axis since they are using the built-in drivers on the duet 2 wifi and duet 3 mini controller? I had some stringing and cornering problems when I adjusted from instantaneous reaction to a 5ms buffer. I print at around 100mm/s so in 5ms, that is potentially already a 0.5mm desync.

      fcwiltundefined o_lampeundefined dc42undefined 3 Replies Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @likevvii
        last edited by

        @likevvii

        Use the same servos for Z and E.

        Frederick

        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        1 Reply Last reply Reply Quote 0
        • o_lampeundefined
          o_lampe @likevvii
          last edited by

          @likevvii said in Induce Control delay and latency?:

          they will have a set buffer of 5ms in order to plan and prepare an optimal trajectory and power for movements

          That doesn't mean, their latency will always be 5ms. Depending on the optimized trajectory, it could be less than 5ms.
          Did you try to reduce yerk setting for XY?

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

            @likevvii, adding latency is not currently supported in the firmware. It would be possible to support in principle, which the proviso that for each board in the CAN-connected system, all drivers connected to that board use the same latency.

            As @o_lampe says, this will only work well if the added latency for the servo drivers is fixed.

            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

            likevviiundefined 1 Reply Last reply Reply Quote 0
            • likevviiundefined
              likevvii @dc42
              last edited by

              @dc42 said in Induce Control delay and latency?:

              @likevvii, adding latency is not currently supported in the firmware. It would be possible to support in principle, which the proviso that for each board in the CAN-connected system, all drivers connected to that board use the same latency.

              As @o_lampe says, this will only work well if the added latency for the servo drivers is fixed.

              Thank you for the explanation. I do understand the latency is technically not fixed and can vary from maybe 1~5ms. But at the least, I was hoping I could be somewhere at the middle of the standard deviation.

              This seems backwards but, Are there some multiplexers out there that take in step/dir signals and then converts it into the things that communicate over ethernet cables to sync everything up? Of course, the drivers will all have to be compatible with the protocol.

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