-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter_spray_movements.gcode
136 lines (136 loc) · 2.64 KB
/
printer_spray_movements.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
;
; Preamble
;
M140 S107 ; Bed heating temperature
M190 S107 ; Bed heating temperature
G28 XY ; Home XY axes
; All three of the Ender 3s have an advertised and usable print area of 220 x 220 mm. However, the size of the build surface actually measures 235 x 235 mm
M302 S0 ; cold extrusion: always allow extrusion (disable checking)
;M425 F0
M203 X150 Y150 ; set maximum feedrate (speed) to 150 mm/s
M220 S100 ; use the maximum feedrate
M204 P99999 ; increase acceleration for avoiding small pauses between steps
;M201 X9999 Y9999
;G0 Z60 ; raise the nozzle to 6 cm
G91 ; Set all axes to relative
M300 S440 P200 ; Play a tone through the beeper
M117 Spray start. ; Print a message on the LCD.
G1 X45 Y60 F9999 E10; set the starting position and start spraying
;
; S shaped path, starting at south-west, ending at north-east
;
G1 X120 E30
G3 X0 Y20 I0 J10 E5
G1 X-120 E30
G2 X0 Y20 I0 J10 E5
G1 X120 E30
G3 X0 Y20 I0 J10 E5
G1 X-120 E30
G2 X0 Y20 I0 J10 E5
G1 X120 E30
G3 X0 Y20 I0 J10 E5
G1 X-120 E30
G2 X0 Y20 I0 J10 E5
G1 X120 E30
;
; go to (210,235) towards north-east (235,235) corner and wait drying
M117 Sleep for drying.
G0 X45 Y55
G4 S20
G1 X-45 Y-55 E10
;
; N shaped path, starting at north-east, ending at south-west
;
G1 Y-120 E30
G1 X-20 E5
G1 Y120 E30
G1 X-20 E5
G1 Y-120 E30
G1 X-20 E5
G1 Y120 E30
G1 X-20 E5
G1 Y-120 E30
G1 X-20 E5
G1 Y120 E30
G1 X-20 E5
G1 Y-120 E30
;
; go to (15,40) towards south-west (0,0) corner and wait drying
M117 Sleep for drying.
G0 X-30 Y-20
G4 S20
M117 Spray.
G1 X30 Y20 E10
;
; \\\ shaped path, starting at south-west, ending at north-east
;
G1 Y20 E5
G1 X20 Y-20 E5
G1 X20 E5
G1 X-40 Y40 E10
G1 Y20 E5
G1 X60 Y-60 E15
G1 X20 E5
G1 X-80 Y80 E20
G1 Y20 E5
G1 X100 Y-100 E25
G1 X20 E5
G1 X-120 Y120 E30
G1 X20 E5
G1 X100 Y-100 E25
G1 Y20 E5
G1 X-80 Y80 E20
G1 X20 E5
G1 X60 Y-60 E15
G1 Y20 E5
G1 X-40 Y40 E10
G1 X20 E5
G1 X20 Y-20 E5
G1 Y20 E5
;
; go to (210,235) towards north-east (235,235) corner and wait drying
M117 Sleep for drying.
G0 X45 Y55
G4 S20
; go to (15,235) towards north-west (0,235)
G0 X-195 Y0
; go to north-west start point
M117 Spray.
G1 X30 Y-55 E10
;
; /// shaped path, starting at north-west, ending at south-east
;
G1 X20 E5
G1 X-20 Y-20 E5
G1 Y-20 E5
G1 X40 Y40 E10
G1 X20 E5
G1 X-60 Y-60 E15
G1 Y-20 E5
G1 X80 Y80 E20
G1 X20 E5
G1 X-100 Y-100 E25
G1 Y-20 E5
G1 X120 Y120 E30
G1 Y-20 E5
G1 X-100 Y-100 E25
G1 X20 E5
G1 X80 Y80 E20
G1 Y-20 E5
G1 X-60 Y-60 E15
G1 X20 E5
G1 X40 Y40 E10
G1 Y-20 E5
G1 X-20 Y-20 E5
G1 X20 E5
;
; go to (210,40) towards south-east (235,0) corner and wait drying
M117 Sleep for drying.
G0 X45 Y-20
G4 S20
;
; Ending
M117 Spray finished.
M300 S440 P200 ; Play a tone through the beeper
;
G28 XY; Home XY axes