Thank you. I was unclear. Please take a look at the picture:
https://cdn.hackaday.io/images/3545991485251102223.png
I have changed code below. Y is OK and works, X1 also. I cannot find, where I can link extruder2 with X2 motor, like it is in cartesian machine. Sorry, but I am not a coder and need a little help.
In motion.h line 595:
#if DRIVE_SYSTEM == YX_GANTRY
if(isYPositiveMove()) {
Printer::motorX--; //++;
Printer::motorYorZ--;
} else {
Printer::motorX++; //--;
Printer::motorYorZ++;
}
#endif
In motion.cpp line 1172:
#elif DRIVE_SYSTEM == YX_GANTRY
corePosSteps[A_TOWER] = cartesianPosSteps[X_AXIS]; //+ cartesianPosSteps[Y_AXIS];
corePosSteps[B_TOWER] = cartesianPosSteps[Y_AXIS]; // - cartesianPosSteps[X_AXIS];
corePosSteps[C_TOWER] = cartesianPosSteps[Z_AXIS];
Thank you for your help,
Matej