@alankilian
I changed two elements to make it right. and then I did what you say to finish that part of the printer.
change
M574 Y VALUE
and i moved the cable from X to motor Y
The Ender 3 Pro guides here: https://duet3d.dozuki.com/c/Duet_2_Maestro are very good for taking you through how to commission a printer. Obviously depending on your printer apply what is relevant but the core calibration stuff is for most instances.