M48 macro probes on the center of the bed
Hello to All
I have an Anycubic Predator with Duet 2 Wifi + Smart Effector running RRF 3.2.2
If I use the macro:
M291 P"Probe will be tested 10 times and return mean and standard deviation. Ok or Cancel?" R"WARNING" S3 ; User must click OK or cancel.
G30 P0 X151 Y161 Z-9999
G30 P1 X151 Y161 Z-9999
G30 P2 X151 Y161 Z-9999
G30 P3 X151 Y161 Z-9999
G30 P4 X151 Y161 Z-9999
G30 P5 X151 Y161 Z-9999
G30 P6 X151 Y161 Z-9999
G30 P7 X151 Y161 Z-9999
G30 P8 X151 Y161 Z-9999
G30 P9 X151 Y161 Z-9999 S-1
It probes on the center of the bed X=0, Y=0. Shouldn't it probe on X=151, Y=161????
tecno last edited by
Try to add G1 X151 Y161 after M401
@tecno I'll try later thanks! So I suppose G30 cannot move X and Y before Z probing movement.
@ignacmc X151 Y161 will be outside of the bed radius set in config.g (or config_override.g) by the M665 B parameter (printable radius). Because it can't reach the point, it probes at the current point.
With a bed centre at X0 Y0, any XY point needs to satisfy x^2 + y^2 > radius^2, so your bed radius is probably less than
sqrt ( 151^2 + 161^2)= 220.73mm
I think bed radius is usually set to 185mm on Anycubic Predators.
Edit: You also don't need M401 and M402 in your macro. They call sys/deployprobe.g and sys/retractprobe.g and a Smart Effector does not need these. Delete them from your sys folder if they are there; they may interfere with probing.
@droftarts Thank you very much for your kind explanation. This M48 macro was taken from this forum and it is probably for a Cartesian printer... Most of us Delta owners were using it "as it is" without adapting it to our machines
This is odd. I would expect the G30 command to either succeed (and move to outside the defined print radius), or fail and not probe at all. Or possibly move as close as it can get to the point you asked for.
The M401/M402 commands won't do any harm as long as you don't have deployprobe.g or retractprobe.g files, or they have no commands in them.
@dc42 I will investigate this tonight and report here.
ignacmc last edited by ignacmc
@dc42 Confirmed...with X and Y values compatible with a Printable Radius of 185 mm, G30 probes where it should. If X and Y are unreachable, it probes on X=0 Y=0
@ignacmc thanks. I've added this to be looked at for the RRF 3.4 release.