-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.cfg
85 lines (65 loc) · 1.54 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
[gcode_macro UNLOCK_MOTORS]
gcode:
SET_KINEMATIC_POSITION X=127 Y=127 Z=127
[pause_resume]
[gcode_macro M600]
gcode:
{% set X = params.X|default(50)|float %}
{% set Y = params.Y|default(-10)|float %}
{% set Z = params.Z|default(20)|float %}
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-.8 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
G91
G1 E-50 F1000
RESTORE_GCODE_STATE NAME=M600_state
[gcode_macro BL_DOWN]
gcode:
BLTOUCH_DEBUG COMMAND=pin_down
[gcode_macro BL_UP]
gcode:
BLTOUCH_DEBUG COMMAND=pin_up
[gcode_macro BL_TOUCHMODE]
gcode:
BLTOUCH_DEBUG COMMAND=touch_mode
[gcode_macro BL_QUERY_PROBE]
gcode:
QUERY_PROBE
[gcode_macro CANCEL_PRINT]
description: Cancel the actual running print
rename_existing: CANCEL_PRINT_BASE
gcode:
TURN_OFF_HEATERS
CANCEL_PRINT_BASE
[gcode_macro LOAD_FILAMENT]
gcode:
{% set speed = params.SPEED|default(300) %}
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
SAVE_GCODE_STATE NAME=load_state
M300 # beep
G91
G92 E0
G1 E75 F1500 # fast-load
G1 E75 F350 # purge
G1 E-10 F350
M300
M300
RESTORE_GCODE_STATE NAME=load_state
[gcode_macro UNLOAD_FILAMENT]
gcode:
{% set speed = params.SPEED|default(300) %}
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
SAVE_GCODE_STATE NAME=unload_state
G91
M300 # beep
G92 E0
G1 E10 F350 # purge
G1 E-15 F350
G1 E-100 F1500 # fast-unload
M300
M300
RESTORE_GCODE_STATE NAME=unload_state