-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmacros.cfg
95 lines (82 loc) · 2.75 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
[gcode_macro lights_on]
gcode:
SET_PIN PIN=LIGHTS VALUE=1.0
[gcode_macro lights_off]
gcode:
SET_PIN PIN=LIGHTS VALUE=0.0
[gcode_macro PRINT_START]
# Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
{% set BED_TEMP = params.BED_TEMP|default(110)|int %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(240)|int %}
{% set WAIT = params.EXTRUDER_TEMP|default(0)|int %}
lights_on
M117 Heating...
M140 S{BED_TEMP} ; set bed final temp
M104 S{EXTRUDER_TEMP} ; set extruder final temp
M190 S{BED_TEMP} ; wait for bed final temp
M109 S{EXTRUDER_TEMP} ; wait for extruder final temp
M117 Heating... Done
M117 Mesh...
G28
BED_MESH_CALIBRATE
# DOCK_PROBE
M117 Ready...
#M900
G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
#G32 ; home all axes
#G1 Z20 F3000 ; move nozzle away from bed
[gcode_macro PRINT_END]
gcode:
M104 S0
G1 X180 Y180 F6000
G1 Z180 F6000
lights_off
[gcode_macro PRINT_START_WITH_HEATSOAK]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(110)|int %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(240)|int %}
{% set SOAK = params.SOAK|default(40)|int %}
M117 Starting Warmup
#if the bed is already at the correct target temp, we assume no heat soak is necessary.
{% if (SOAK|int) <= 0 or (printer.heater_bed.target >= (BED_TEMP|int - 20)) %}
{% else %}
M117 Heating for Soak
M190 S{BED_TEMP}
M117 Starting Soak
{% for timer in range( SOAK|int,0,-1) %}
#we cycle once a minute, so we can send an update to keep octoprint happy, rather than just sleeping for the entire soak
M117 Soak: {timer|int}m remaining
M105
G4 P60000
{% endfor %}
M117 Soak Complete
{% endif %}
M190 S{BED_TEMP}
#G32 E{EXTRUDER_TEMP}
M83
G1 E2 F1500 # deretract
M117 Starting Print
#UPDATE_DELAYED_GCODE ID=CLEAR_DISP DURATION=10
[gcode_macro HEATSOAK]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(110)|int %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(240)|int %}
{% set SOAK = params.SOAK|default(40)|int %}
M117 Heating for Soak
M190 S{BED_TEMP}
M117 Starting Soak
{% for timer in range( SOAK|int,0,-1) %}
M117 Soak: {timer|int}m remaining
M105
G4 P60000
{% endfor %}
M117 Soak Complete
[gcode_macro HEATSOAK_ABS]
gcode:
HEATSOAK BED_TEMP=110 SOAK=40
[gcode_macro HEATSOAK_PLA]
gcode:
HEATSOAK BED_TEMP=70 SOAK=30