hi. Sorry for late return. i did as you said but now i am having problem with running step motor. Is there a problem with the code?
void tekrar(){
if (abs(CYCLES>0)) {
stepper.moveTo(x1mm100);
stepper.setMaxSpeed(x1x210);
delay(x2wait100);
stepper.moveTo(-x2mm100);
stepper.setMaxSpeed(x2x110);
delay(x1wait100);
CYCLES--;
if (CYCLES >0) {
tekrar();
}
}
}