and presumably each motor may need to step with a different amount of delay and that you want them all to reach that last position simultaneously
so for a particular movement, all motors in motion to move from one x,y,z position to another, you'll need to compute the delay/step for each motor
this delay also determines the speed of movement and needs to be accounted for
simplest (sub-optimal) is to have a delay loop for each motor within which that motor is stepped in the appropriate direction
several layers of code:
- the highest is moving between a set of coordinates.
- The next determines the rate/delay and
- the lowest effects the motion, returning when the final position is reached by all motors.
There may be separate delays between motions at the highest level