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

    Why don't clocks scale with distance or steps?

    Scheduled Pinned Locked Moved
    Firmware developers
    3
    4
    274
    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 jazbaatbadalgaye

      I am trying to calculate the number of steps taken per second but when I logged the debugging data, it didn't quite make sense. I captured data in incremental steps of 10mm and this is what I got

      Starting from X=0 in each case

      X=10                  
          Steps = 800
          Clocks = 300000
      
      X=20                  
          Steps = 1600
          Clocks = 500000
      
      X=30                  
          Steps = 2400
          Clocks = 700000
      

      We can see that the number of steps are being scaled according to the distance but why isn't the number of clocks scaled accordingly? Hence why is the no of steps per second different for a simple linear move?

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @jazbaatbadalgaye
        last edited by

        @jazbaatbadalgaye have you taken acceleration into account?

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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

          @jay_s_uk Gotcha. So its bc of 2 accelerations (+/-) and one constant speed piece in the whole move?

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

            @jazbaatbadalgaye said in Why don't clocks scale with distance or steps?:

            @jay_s_uk Gotcha. So its bc of 2 accelerations (+/-) and one constant speed piece in the whole move?

            Yes.

            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