-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.cfg
121 lines (110 loc) · 3.29 KB
/
macros.cfg
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
#####################################################################
# Macros
#####################################################################
[gcode_macro G32]
gcode:
SAVE_GCODE_STATE NAME=STATE_G32
G90
G28
QUAD_GANTRY_LEVEL
G28
G0 X175 Y175 Z30 F3600
#--------------------------------------------------------------------
RESTORE_GCODE_STATE NAME=STATE_G32
[gcode_macro Prime_for_printing_ABS]
gcode:
SET_FAN_SPEED FAN=nevermore_fan SPEED=0.5
#SET_FAN_SPEED FAN=bed_fan SPEED=0.5
M140 S{110}
M104 S{100}
G28
G90
G0 X175 Y150 Z20 F10000
[gcode_macro Prime_for_printing_PLA]
gcode:
M140 S{60}
M104 S{150}
G28
G90
G0 X175 Y150 Z20 F10000
[gcode_macro M600]
gcode:
PAUSE
[gcode_macro PRINT_START]
gcode:
{% set bedtemp = params.BED|int %}
{% set hotendtemp = params.HOTEND|int %}
{% set chambertemp = params.CHAMBER|default(0)|int %}
#Turn on Nevermore if using ABS
{% if params.MATERIAL == "ABS" %}
SET_FAN_SPEED FAN=Nevermore SPEED=0.5
{% endif %}
#Pre-heat bed
M117 Heating bed
M190 S{bedtemp}
#Home all, then move toolhead to centre of bed to wait
G28
G90
G0 X175 Y150 Z20 F10000
#Wait for chamber temp
TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={chambertemp}
#Home and check bed
ATTACH_PROBE_LOCK
M117 Homing all
G28
M117 Quad Ganrty Leveling
QUAD_GANTRY_LEVEL
M117 Re-homing Z
G28 Z
M117 Bed mesh
BED_MESH_CLEAR
BED_MESH_CALIBRATE
DOCK_PROBE_UNLOCK
SKEW_PROFILE LOAD=default_24350_skew
#Move to front of bed and heat nozzle to printing temp
G90
G0 X50 Y5 F24000
M117 Heating hotend to printing temp
M109 S{hotendtemp}
M117 Purging
PURGE_LINE
[delayed_gcode turn_off_nevermore_fan]
gcode:
SET_FAN_SPEED FAN=nevermore_fan SPEED=0.0
[gcode_macro PRINT_END]
gcode:
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-2.0 F3600 ; retract filament
G91 ; relative positioning
G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
TURN_OFF_HEATERS
M107 ; turn off fan
G1 Z2 F3000 ; move nozzle up 2mm
G90 ; absolute positioning
G0 X175 Y350 F3600 ; move nozzle to back of gantry
# G0 X214 Y300 Z8.5 F3600 ; Move nozzle to left of brush
#TEMPERATURE_WAIT SENSOR=extruder MAXIMUM=201
SET_SKEW CLEAR=1
BED_MESH_CLEAR
#SET_FAN_SPEED FAN=bed_fan SPEED=0.0
## Ramp up nevermore:
SET_FAN_SPEED FAN=nevermore_fan SPEED=1.0
UPDATE_DELAYED_GCODE ID=turn_off_nevermore_fan DURATION=600
[gcode_macro PURGE_LINE]
gcode:
SAVE_GCODE_STATE NAME=PURGE
M117 Purging...
G90
M83
G0 X80 Y5 F24000 ; Go to front
G0 Z0.25 ; Drop to bed
G92 E0 ; zero the extruded length
G1 X120 E25 F500 ; Extrude 25mm of filament in a 4cm line
G1 X170 E10 F500 ; Extrude a thinner line
G92 E0 ; zero the extruded length
G1 E-2 F500 ; Retract a little
G1 X230 F10000 ; Quickly wipe away from the filament line
G1 Z0.3 ; Raise and begin printing.
M117
RESTORE_GCODE_STATE NAME=PURGE