@1997alex said in Trouble with first test print:
M208 X-0 Y-0 Z-0 S1
Set this to M208 X0 Y0 Z0 S1. Don't use '-' between parameters unless you actually mean "negative-something".
I'm not sure if my offset is correct to the actual position of the hot end or z probe.
Your current setting seems to be:
G31 P500 X45 Y40 Z0.15
From your picture, and assuming that X0 Y0 is front left of your bed, the probe is to the left and behind the nozzle. To work out the probe offset values, imagine the nozzle is at X0 Y0. Where would the probe be? In your case, X-45 Y40 I think. So try G31 P500 X-45 Y40 Z0.15.
M557 X0:900 Y0:700 S40
Because of the probe offset, and the bed limits you have set with M208, some points are unreachable by the probe. With the above probe offset, you can't get to the 45mm on the right hand side of the bed (because the probe is at X-45), or the front 40mm of the bed (because probe is at Y40). Then give the edge a couple of mm clearance. So set M557 to M557 X5:850 Y45:700 S40.
If your nozzle can reach points outside the bed, you can adjust M208, eg if it can go off the front by 20mm, change M208 to M208 X0 Y-20 Z0 S1. Then adjust M557 so that the probe can get closer to the edge, eg M557 X5:850 Y25:700 S40
This is also covered here: https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe#Section_Measuring_Probe_X_Y_Offset
https://duet3d.dozuki.com/Wiki/Using_mesh_bed_compensation
Ian