-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLevel.gcode
166 lines (151 loc) · 7.03 KB
/
Level.gcode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
; Level
; Go to each corner (30x30mm offset from bed edge) and center, and pause for user input before
; going down to 0.40 mm.
; Use this to help with leveling with a feeler gauge. Why 0.40 mm? Because that's the feeler gauge
; I have available. It also makes sense as the most common layer height for a 0.4 mm nozzle is
; 0.20 mm, and 0.40 is the double of 0.20 mm. In theory, it would be better to level at 0.20 mm
; with the applicable feeler gauge. In practice, I doubt it'd make much of a difference in most
; situations. Feel free to prove me wrong.
;
; Copyright (C) 2022 GHIFARI160
; This work is free. You can redistribute it and/or modify it under the terms of the Do What The
; Fuck You Want To Public License, Version 2,as published by Sam Hocevar. See the LICENSE file
; for more details.
; thumbnail begin 16x16 504
; iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMA
; AC4jAAAuIwF4pT92AAABK0lEQVQ4jaWTvy5EYRDFf2t1NLcR295X0LDJ0ohEqVIo0Ch4AAovoL7xZ9
; V3m01kE4+gUHkEOiIobqtZR+F8MdYl/pxkMjPnO5k73zdzG5L4D8ZquFmgBG6BoX3P/LcFmkABXAKT
; wD6wbD9hvrDuHZKSHUp6krQQuGjzPj+KfArmJA0tQtKipBtJV5Jy531Jq9a1U4F0hR3gHLgAMqAPnA
; IV0AV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x2QaOSjEtx7C3AOje8c3xlJWJskPGkZkrXrv14tygEmuMq0Ak+QLPV5B/AN9FnCss
; YU4EbcnNolVgKHI3NbowwbUlamBziOZCnF24HHgYXoEs9mhTbE5idIJrYOpM1MbBWwHq467cBjSPrz
; JLyFpDT/I/pTWNOmGfgm8CuSn4+3AfgiyQ+VjALr4arTgfiRtKE85YwArgVeAE4kW/swm5AVyBeA60
; gutk6kjUxsVbAeTs8oZGlcG9VciVXA5cjiynu1GpWQIUgawPOQLVe18BKSqXpDrUbFgAnOjV2Q1G5H
; e3hWDxJxfjMyZwo93GxGFjNOR1YeXXxqlXgYOAV428OzosAE585gpIdyCbqsxhvIl3cZ8Aj+zn5rB4
; 5E3BtHIyncfXEF0kPali0HTHDJmQ1cSZjszOuRedXfgVeQOVI38A7Sm5RyqwxFet1hwHBgDHJk8n7I
; lirf55WDDIPPRdwGhiMmuNoYDyzCbcNzI7Mcyc61tt6GNCq2Slkba5FwlZ+Q76SmW5HPOBUTW01YD+
; ePCcBViC8qTzyKbFVbU2c7coH1cP5YgyxQnEQ+eoGXkc9yJCY2b5jg/HMX4qv7DrLY0Wh0Irbvg3wW
; wyM2pAxLC+KnuhCYWGdbqrECuAzxM0adWSskJrj0mASciT+nsw9KzvdriCdNRF0xwaXPJ5BYsZORLV
; FpRxN0IRHqtyMxf++nXH/UmODqyyDgYGQnyKHFy7cAu4Cni9cy4FkiO+Y3S5jgsseeSNDrBCTT8xhg
; N2Qn/3AkGr20u+U9JKr6beDN4vUasjVsDRIMajlFMoQJzjBSxNwChpEiJjjDSBETnGGkiAnOMFLEBG
; cYKWKCM4wUMcEZRoqY4AwjRUxwhpEi/wPH/azx2ImKjQAAAABJRU5ErkJggg==
; thumbnail end
;
G28
G0 Z10
; bottom left corner
G0 X30 Y30 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; bottom right corner
G0 X195 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; top right corner
G0 Y195 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; top left corner
G0 X30 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; center
G0 X112.5 Y112.5 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; bottom left corner
G0 X30 Y30 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; bottom right corner
G0 X195 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; top right corner
G0 Y195 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; top left corner
G0 X30 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10
; center
G0 X112.5 Y112.5 F5000
M0 Level?
G0 Z0.4
M0 Done?
G0 Z10