ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
@dropdown
2
Skew Factor Calculator
3
4
Y
5
^ B-------C
6
| / /Notes:
7
| / /Let your test print cool down to room temperature before measuring it.
8
| A-------D
You can increase the accuracy of your measurements by uniformly scaling up the test print, eg 150% (but don't rotate it).
9
+-------------->Xf
10
XY skew factor
11
A ------- D Measurments ?
12
Measure AC, BD and AD from your test print
YES
13
Enter your values in the GREEN boxes
14
15
AC 324.60mmAC 325.27mm
16
BD 325.40mmBD 325.27mm
17
AD 229.80mmAD 230.00mm
18
AB 229.800mm
19
20
Don't overwrite the formulas in the boxes below !
21
Your skew angle and the correction are in the YELLOW boxes
22
23
Do NOT overwriteAB 229.8198mm
24
skew angle-0.00246154radians
25
-0.00237578radians AB
26
-0.141036degrees
27
-0.136122degrees AB
28
29
correction 0.002462radians
30
0.002376radians AB
31
32
Apply your correction with this gcode:
33
34
M1005 I0.002462
35
36
37
M1005 I0.002462
38
39
40
M1005 I0.004514
41
42
43
44
45
46
47
48
49
Hey folks,
50
51
I came up with a formula that provides a more accurate result than the one used in the "XY Skew Calculator221".
52
53
AB111.0000Here's the formula:
54
correction -0.005096480292-ASC((AC² - BD²) / (4 × AD × AB))
55
old
The result of this formula should be inserted after the M1005 I command.
56
new-0.005096480292
57
The key difference is that Calculator221 uses an average value for AB, while my method requires measuring AB directly — which increases accuracy. So in total, you need to measure four values: both diagonals (AC and BD) and both sides (AD and AB).
58
59
60
61
62
And here’s the exact formula you can plug into the sheet:
63
-ASC((D15^2 - D16^2) / (4 * D17 * {YOUR AB}))
64
65
If anyone knows how to contact the original author of Calculator221, I’d appreciate a tip — I haven’t been able to find any info.
66
67
Cheers!
68
Stanislav Glushko glstas
69
70
71
72
Here’s a method that gets round the problem of the skew compensation value not being retained when the printer is powered off:
73
74
75
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).
76
77
To correct this I apply the -ve of the skew factor (in radians) as a correction factor with gcode M1005 using the [In] parameter:
78
79
M1005 I0.003594
80
81
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.
82
83
84
85
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.
86
87
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.
88
89
I don’t include M500 after the M1005 [In] command in the Machine start G-code because:
90
a) It doesn’t work to retain the setting ‘after restart’.
91
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.
92
93
94
95
96
97
98
99
100