@groundFungus thankyou for your quick response. Just have a querie regarding the use of x_stepper.run() . From the references I checked out, I understood that run function should be called after setting the position to reach and the speed using these x_stepper.moveTo(xArray[index]);
x_stepper.setMaxSpeed(xSpeeds[index]);
But in the programs you have send , you haven't done that. Could you please correct what part I am understanding the wrong way?