-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacros.cfg
More file actions
133 lines (111 loc) · 3.38 KB
/
macros.cfg
File metadata and controls
133 lines (111 loc) · 3.38 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
# Enable arcs support
[gcode_arcs]
resolution: 0.1
# Override Idle Timeout
[idle_timeout]
timeout=1800
[gcode_macro UNSAFE_MOVE_Z]
description: Move the Z without homing
gcode:
{% set MOVE_MM = params.MM|default(10)|float * (-1) %}
G90
SET_KINEMATIC_POSITION Z={MOVE_MM}
G0 Z0 F600
# [gcode_macro M486]
# gcode:
# Parameters known to M486 are as follows:
# [C<flag>] Cancel the current object
# [P<index>] Cancel the object with the given index
# [S<index>] Set the index of the current object.
# If the object with the given index has been canceled, this will cause
# the firmware to skip to the next object. The value -1 is used to
# indicate something that isn’t an object and shouldn’t be skipped.
# [T<count>] Reset the state and set the number of objects
# [U<index>] Un-cancel the object with the given index. This command will be
# ignored if the object has already been skipped
# {% if 'exclude_object' not in printer %}
# {action_raise_error("[exclude_object] is not enabled")}
# {% endif %}
# {% if 'T' in params %}
# EXCLUDE_OBJECT RESET=1
# {% for i in range(params.T | int) %}
# EXCLUDE_OBJECT_DEFINE NAME={i}
# {% endfor %}
# {% endif %}
# {% if 'C' in params %}
# EXCLUDE_OBJECT CURRENT=1
# {% endif %}
# {% if 'P' in params %}
# EXCLUDE_OBJECT NAME={params.P}
# {% endif %}
# {% if 'S' in params %}
# {% if params.S == '-1' %}
# {% if printer.exclude_object.current_object %}
# EXCLUDE_OBJECT_END NAME={printer.exclude_object.current_object}
# {% endif %}
# {% else %}
# EXCLUDE_OBJECT_START NAME={params.S}
# {% endif %}
# {% endif %}
# {% if 'U' in params %}
# EXCLUDE_OBJECT RESET=1 NAME={params.U}
# {% endif %}
[gcode_macro PREHEAT]
gcode:
{% set HOTEND = params.HOTEND|default(210)|float %}
{% set BED = params.BED|default(60)|float %}
{% set MINUTES = params.MINUTES|default(6)|int %}
M104 S{HOTEND} ; set nozzle temp
M140 S{BED} ; set bed temp
G4 P{MINUTES * 60000} ; heatsoak for 6 min
CONDITIONAL_BEEP I=2 DUR=30 FREQ=8500
[gcode_macro FILAMENT_LOAD]
gcode:
{% set hotendtemp = (printer[printer.toolhead.extruder].temperature|int, 200)|max %}
M109 S{hotendtemp} ; set hotend to 200 if not already heated
LOAD_FILAMENT
[gcode_macro FILAMENT_UNLOAD]
gcode:
{% set hotendtemp = (printer[printer.toolhead.extruder].temperature|int, 200)|max %}
M109 S{hotendtemp} ; set hotend to 200 if not already heated
UNLOAD_FILAMENT
[gcode_macro M601]
gcode:
M600 ; alias
[gcode_macro SET_ACTIVE_SPOOL]
gcode:
{% if params.ID %}
{% set id = params.ID|int %}
{action_call_remote_method(
"spoolman_set_active_spool",
spool_id=id
)}
{% else %}
{action_respond_info("Parameter 'ID' is required")}
{% endif %}
[gcode_macro CLEAR_ACTIVE_SPOOL]
gcode:
{action_call_remote_method(
"spoolman_set_active_spool",
spool_id=None
)}
[gcode_macro T0]
gcode:
# do nothing
[gcode_macro T1]
gcode:
# do nothing
[gcode_macro T2]
gcode:
# do nothing
[gcode_macro T3]
gcode:
# do nothing
[gcode_shell_command backup_cfg]
command: /usr/bin/bash /home/biqu/printer_data/config/autocommit.sh
timeout: 30
verbose: True
[gcode_macro BACKUP_CFG]
description: Backs up config directory GitHub
gcode:
RUN_SHELL_COMMAND CMD=backup_cfg