Skew compensation in the Bambu X1C Firmware

Here’s a method that gets round the problem of the skew compensation value not being retained when the printer is powered off:

From repeated measurements of test prints I have calculated that the skew in the XY geometry of my Bambu X1C is -0.003594 radians (-0.20592 degrees). The method of calculating this skew factor is detailed in my post headed M1005 [In] (see above).

To correct this I apply the -ve of the skew factor (in radians) as a correction factor with gcode M1005 using the [In] parameter:

M1005 I0.003594

I’ve added this gcode (as a permanent addition) at the end of the Machine start G-code so the correction is applied for every print, including when the printer has been powered off and restarted.

To the limits of my printer’s accuracy and the accuracy of my measurements this brings my XY skew down to about -0.005 degrees, 2.4% of the original skew. Over the width of the print bed that would equate to an error of only 0.02mm.

The M1005 [In] format of the command doesn’t iteratively apply a new compensation value to the previous one, like the M1005 [Xn] [Yn] format does. So every print will just have the same correction factor applied.

I don’t include M500 after the M1005 [In] command in the Machine start G-code because:

a) It doesn’t work to retain the setting ‘after restart’.
b) It might be repeatedly updating non-volatile memory on one of the X1C controller boards which might reduce its lifespan so it seems safer to exclude it until we understand how M500 has been implemented in the Bambu Lab firmware.

@Giovanny @SimEyeSee @Nebur

8 Likes