Does My bed.g Seem Reasonable?
-
var MaxErr = 1 M561 ; clear any existing bed transform G1 Z5 while iterations < 10 G30 P0 X63.5 Y36.4 Z-99999 G30 P1 X64.5 Y213.5 Z-99999 G30 P2 X284 Y121.4 Z-99999 S3 set var.MaxErr = abs(move.calibration.initial.mean-move.calibration.initial.deviation) set var.MaxErr = max(var.MaxErr, abs(move.calibration.initial.mean+move.calibration.initial.deviation)) if var.MaxErr < 0.006 break G30 X150 Y150 Z-99999 S-2 G1 X0 Y0 F5000
I'm particularly interested in the "G30 X150 Y150 Z-99999 S-2" line. I read that a probe in the center at the end is a good idea, but I wasn't sure what parameters to use. S-2 seemed like it would adjust the Z height based on the center of the bed. Does that sound right?
I also thought it made sense for termination to calculate MaxErr to be the largest absolute deviation from the mean. It seems like a good idea, but I'm not very confident I understand the issues completely.
-
It seems to work, but I don't see the last G30 doing anything.
-
just run G30 without S-2 at the end (or use G28 Z).
-
@oliof Thank you! That works.