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

    Manually provide the number of steps to be executed by a drive?

    Scheduled Pinned Locked Moved
    Firmware developers
    3
    4
    377
    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 writing a M code for a new algorithm to reduce vibrations during printing. After a bit of preprocessing, my algorithm spits out the number of steps for each drive. Is there any way I can provide these steps directly to the drives to be executed without any segmentation, shaping etc?

      Eg instead of providing G0 X5 I would like to send Some_G_code X400 which basically says the x drive should move 400 steps which would result in the same move as G0 X5, assuming 80 steps/mm

      1 Reply Last reply Reply Quote 0
      • lee7670undefined
        lee7670
        last edited by

        Just set steps per unit to1?

        theKMundefined jazbaatbadalgayeundefined 2 Replies Last reply Reply Quote 0
        • theKMundefined
          theKM @lee7670
          last edited by theKM

          @lee7670 ...or just do the math of steps per unit measure to how many units it needs to move?... if you're at 100 steps per centimeter, the move there is obviously four centimeters?

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

            @lee7670 @theKM
            I can't do that since I do not want my input (400 in the eg) to go through any segmentation preprocessing etc i.e. I would just like to give it as a command to the stepper motors as steps. I am intercepting the number of steps for each drive for a move, process it through my algoroithm and then "reinsert" them for the actual drive motion

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