 double tableedistance = 1000;    //in microns (96mm)
 
 double maxmotorSpeed = 12600;
-double motorSpeed = 9600;                                           //default 9600
-double motorAccel = 80000; //steps/second/second to accelerate      //default 80000
+double motorSpeed = 12600;                                           //default 9600
+double motorAccel = 160000; //steps/second/second to accelerate      //default 80000
 
 // Motor pins
 int motorpinXstep = 7;


    while (digitalRead(zZeropin) != zZeroNC) {   
      stepper1.moveTo(stepper1.currentPosition()+320);          
      stepper1.runToPosition();
    }
    stepper1.stop();
    stepper1.setCurrentPosition(tablezsteps);


///////////////////////////////////////////////////////ZERO X OVERHANG SIDE TO SIDE     
    
    //stepper5.setSpeed(6400);
    //stepper5.setAcceleration(999999);          
    
    while (digitalRead(xZeropin) != xZeroNC) {   
      stepper5.moveTo(stepper5.currentPosition()-10);      //change to +4 for zero on opposite side      
