Author Topic: Travel time  (Read 1557 times)


  • Newbie
  • *
  • Posts: 2
    • View Profile
Travel time
« on: August 11, 2019, 18:02:46 »
I have a motor connected to a silent stepper set to a generic basic configuration, step resolution, speed ramping (acceleration and deceleration) and velocity.

The stepper is being told to travel x steps (using SetTargetPosition in C#).How do you calculate travel time T? (How do you know how long it will take for the motor to reach the target?)  ???

Note: travel time T needs to account for acceleration, deceleration and when the motor travels with full velocity.
« Last Edit: August 11, 2019, 18:05:23 by cristian »


  • Hero Member
  • *****
  • Posts: 1.419
  • Pano.photogr. - Just for fun: Delphi, C#...
    • View Profile
Re: Travel time
« Reply #1 on: August 12, 2019, 15:18:53 »
Very interesting issue, never thought about to calculate estimated time of arrival, but would be fine to have it.
My first clue would be to use the callback AllDataCallback
It returns also remaining steps and current velocity [steps/s] that gives y a rough base to calculate the time?!

By callback NewStateCallback y could differenciate more precisly between (de)acceleration- and run state.
« Last Edit: August 12, 2019, 15:29:24 by Nic »