-
Notifications
You must be signed in to change notification settings - Fork 0
/
print_ends.cfg
101 lines (94 loc) · 2.78 KB
/
print_ends.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
[gcode_macro PRINT_END]
gcode:
{% set svv = printer.save_variables.variables %}
{% if svv.idex_print == 1 %}
M117 Beende IDEX Druck (T0 / T1)
END_PRINT_IDEX
{% elif svv.extruder1_print == 1 %}
M117 Beende Druck (T1)
END_PRINT_EXTRUDER1
{% else %}
M117 Beende Druck (T0)
END_PRINT_EXTRUDER
{% endif %}
[gcode_macro END_PRINT_EXTRUDER]
gcode:
{% set svv = printer.save_variables.variables %}
SAVE_VARIABLE VARIABLE=print0_temp VALUE=0
SAVE_VARIABLE VARIABLE=pause0_temp VALUE=0
SAVE_VARIABLE VARIABLE=heatbed_temp VALUE=0
SAVE_VARIABLE VARIABLE=print_active VALUE=0
SAVE_VARIABLE VARIABLE=extruder_print VALUE=0
M107 ; turn off cooling fan Extruder
TURN_OFF_HEATERS
G91 ; relative positioning
G0 Z10 ; move z axis up 10mm
G90 ; use absolute coordinates
PRESENT_PLATE
CLEAN_EXTRUDER
G28.1 X ; home X axis
M84 ; disable motors
M117 Druckvorgang abgeschlossen...
[gcode_macro END_PRINT_EXTRUDER1]
gcode:
{% set svv = printer.save_variables.variables %}
SAVE_VARIABLE VARIABLE=print1_temp VALUE=0
SAVE_VARIABLE VARIABLE=pause1_temp VALUE=0
SAVE_VARIABLE VARIABLE=heatbed_temp VALUE=0
SAVE_VARIABLE VARIABLE=print_active VALUE=0
SAVE_VARIABLE VARIABLE=extruder1_print VALUE=0
M107 ; turn off cooling fan Extruder
TURN_OFF_HEATERS
G91 ; relative positioning
G0 Z10 ; move z axis up 10mm
G90 ; use absolute coordinates
PRESENT_PLATE
CLEAN_EXTRUDER1
G28.1 X
T0 ;
M84 ; disable motors
M117 Druckvorgang abgeschlossen...
[gcode_macro END_PRINT_IDEX]
gcode:
{% set svv = printer.save_variables.variables %}
SAVE_VARIABLE VARIABLE=print0_temp VALUE=0
SAVE_VARIABLE VARIABLE=pause0_temp VALUE=0
SAVE_VARIABLE VARIABLE=print1_temp VALUE=0
SAVE_VARIABLE VARIABLE=pause1_temp VALUE=0
SAVE_VARIABLE VARIABLE=heatbed_temp VALUE=0
SAVE_VARIABLE VARIABLE=print_active VALUE=0
SAVE_VARIABLE VARIABLE=idex_print VALUE=0
M107 T0 ; turn off cooling fan Extruder 1
M107 T1 ; turn off cooling fan Extruder 2
TURN_OFF_HEATERS
G91 ; relative positioning
G0 Z10 ; move z axis up 10mm
G90 ; use absolute coordinates
PRESENT_PLATE
{% if svv.active_extruder == 1 %}
CLEAN_EXTRUDER1
{% else %}
CLEAN_EXTRUDER
{% endif %}
{% if svv.active_extruder == 1 %}
T0
CLEAN_EXTRUDER
{% endif %}
{% if svv.active_extruder == 0 %}
T1
CLEAN_EXTRUDER
T0
{% endif %}
G28.1 X
{% if svv.active_extruder == 1 %}
T0
{% endif %}
M84 ; disable motors
M117 Druckvorgang abgeschlossen...
#[gcode_macro test1]
#gcode:
# {% if printer.toolhead.extruder = "extruder"}
# M117 Extruder ?!?!
# {% else %}
# M117 Tja..
# {% endif %}