-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMachine end.gcode
More file actions
141 lines (122 loc) · 2.99 KB
/
Machine end.gcode
File metadata and controls
141 lines (122 loc) · 2.99 KB
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
;===== date: 20230428 =====================
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-0.8 F1800 ; retract
G1 Z{max_layer_z + 0.5} F900 ; lower z a little
G1 X65 Y245 F12000 ; move to safe pos
G1 Y265 F3000
G1 X65 Y245 F12000
G1 Y265 F3000
M140 S0 ; turn off bed
M106 S0 ; turn off fan
M106 P2 S0 ; turn off remote part cooling fan
M106 P3 S0 ; turn off chamber cooling fan
; ==== NZOSX Nozzle Clean Routine (1st wipe) ====
; n-shape
G1 X60 Y262 F10000
G1 Y266 F10000
G1 X110 Y266 F10000
G1 Y262 F10000
G4 P70 ; pause at end of n (70ms)
; z-shape
G1 X60 Y266 F10000
G1 X110 Y266 F10000
G1 X60 Y262 F10000
G1 X110 Y262 F10000
G4 P70 ; pause at end of z (70ms)
; o-shape
G1 X60 Y264 F10000
G1 Y266 F10000
G1 X110 Y266 F10000
G1 Y262 F10000
G1 X60 Y262 F10000
G1 Y264 F10000
G4 P70 ; pause at end of o (70ms)
G4 P1000 ; 1s dwell at mid-routine (after o-shape)
; square
G1 X60 Y262 F10000
G1 Y266 F10000
G1 X110 Y266 F10000
G1 Y262 F10000
G1 X60 Y262 F10000
G4 P70 ; pause at end of square (70ms)
; x-shape
G1 X60 Y262 F10000
G1 X110 Y266 F10000
G1 X85 Y264 F10000
G4 P1000 ; 1s dwell at center scrub point for filament detachment
G1 X60 Y266 F10000
G1 X110 Y262 F10000
G4 P70 ; final pause at the end (70ms)
; ==== End NZOSX (1st wipe) =====================
; pull back filament to AMS
M620 S255
G1 X20 Y50 F12000
G1 Y-3
T255
G1 X65 F12000
G1 Y265
; ==== NZOSX Nozzle Clean Routine (2nd wipe) ====
; n-shape
G1 X60 Y262 F10000
G1 Y266 F10000
G1 X110 Y266 F10000
G1 Y262 F10000
G4 P70 ; pause at end of n (70ms)
; z-shape
G1 X60 Y266 F10000
G1 X110 Y266 F10000
G1 X60 Y262 F10000
G1 X110 Y262 F10000
G4 P70 ; pause at end of z (70ms)
; o-shape
G1 X60 Y264 F10000
G1 Y266 F10000
G1 X110 Y266 F10000
G1 Y262 F10000
G1 X60 Y262 F10000
G1 Y264 F10000
G4 P70 ; pause at end of o (70ms)
G4 P1000 ; 1s dwell at mid-routine (after o-shape)
; square
G1 X60 Y262 F10000
G1 Y266 F10000
G1 X110 Y266 F10000
G1 Y262 F10000
G1 X60 Y262 F10000
G4 P70 ; pause at end of square (70ms)
; x-shape
G1 X60 Y262 F10000
G1 X110 Y266 F10000
G1 X85 Y264 F10000
G4 P1000 ; 1s dwell at center scrub point for filament detachment
G1 X60 Y266 F10000
G1 X110 Y262 F10000
G4 P70 ; final pause at the end (70ms)
; ==== End NZOSX (2nd wipe) =====================
M621 S255
M104 S0 ; turn off hotend
M622.1 S1 ; for prev firmware, default turned on
M1002 judge_flag timelapse_record_flag
M622 J1
M400 ; wait all motion done
M991 S0 P-1 ;end smooth timelapse at safe pos
M400 S3 ;wait for last picture to be taken
M623; end of "timelapse_record_flag"
M400 ; wait all motion done
M17 S
M17 Z0.4 ; lower z motor current to reduce impact if there is something in the bottom
{if (max_layer_z + 100.0) < 250}
G1 Z{max_layer_z + 100.0} F600
G1 Z{max_layer_z +98.0}
{else}
G1 Z250 F600
G1 Z248
{endif}
M400 P100
M17 R ; restore z current
M220 S100 ; Reset feedrate magnitude
M201.2 K1.0 ; Reset acc magnitude
M73.2 R1.0 ;Reset left time magnitude
M1002 set_gcode_claim_speed_level : 0
M17 X0.8 Y0.8 Z0.5 ; lower motor current to 45% power