Hi! I'am trying to build someting like this but my experiance is not enough! Can somebody pls help?

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(x1x2
10);
delay(x2wait100);
stepper.moveTo(-x2mm
100);
stepper.setMaxSpeed(x2x110);
delay(x1wait
100);
CYCLES--;
if (CYCLES >0) {

tekrar();
}

}
}