In your config.g your G31 command is missing the XYZ offsets.
G31 X0 Y0 Z0
You'll need those for accurate probing results.
https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe
M584 X2 Y0:1 Z5:6 E3
Are you sure these are the correct driver assignments? You don't mention what board you're using, or what firmware version.
Your homeall looks to have some errors. First you're not using the z probe for homing.
G91 ; relative positioning G1 H2 Z10 F1800 ; опустить стол на __мм G1 H1 X-1000 Y-1000 F2400 ; X - домой G1 H2 X20 F1800 ;G1 H1 Y-1000 F2400 G1 H1 Z-1000 F1800 ; move Z down stopping at the endstop G90 ; absolute positioning G92 Z0 ; set Z position to axis minimum (you may want to adjust this) G92 X0Are you sure you want to force the position of the X axis to be 0 at the end of homeall?