-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.cfg
86 lines (74 loc) · 2.12 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
[gcode_macro UNLOAD_FILAMENT]
gcode:
M83
G92 E0.0
G1 E-100 F500
G92 E0.0
M82
[gcode_macro LOAD_FILAMENT]
gcode:
M83
G92 E0.0
G1 E125 F150
G1 E-35 F2400
G92 E0.0
M82
[gcode_macro PID_EXTRUDER]
gcode:
M106 S255
{% set TARGET_TEMP = params.TARGET_TEMP|default(210)|float %}
PID_CALIBRATE HEATER=extruder TARGET={TARGET_TEMP}
[gcode_macro PID_BED]
gcode:
{%set TARGET_TEMP = params.TARGET_TEMP|default(70)|float %}
PID_CALIBRATE HEATER=heater_bed TARGET={TARGET_TEMP}
[gcode_macro MATERIAL_PA]
gcode:
{% set MATERIAL = params.MATERIAL|default("PLA")|string %}
{% set TEXT ="Setting PA for " + MATERIAL %}
{% if MATERIAL == "PLA" %}
SET_PRESSURE_ADVANCE ADVANCE=0.068
{% elif MATERIAL == "PETG" %}
SET_PRESSURE_ADVANCE ADVANCE=0.075
{% elif MATERIAL == "TPU" %}
SET_PRESSURE_ADVANCE ADVANCE=0.0460
{% else %}
{% set TEXT ="No PA value for " + MATERIAL %}
{% endif %}
_DISPLAYTEXT TEXT="{TEXT}">
[gcode_macro LOCK_Z_STEPPERS]
gcode:
SET_STEPPER_ENABLE STEPPER=stepper_z ENABLE=1
[gcode_macro UN_LOCK_Z_STEPPERS]
gcode:
SET_STEPPER_ENABLE STEPPER=stepper_z ENABLE=0
[gcode_macro MOVE_TO_NEUTRAL_POSITION]
gcode:
g28; home all axis
g90; set to absolute positioning
g1 x150 y150 f9000
g1 z100 f3000
[gcode_macro PROBE_OFFSET]
gcode:
PROBE_CALIBRATE
[gcode_macro BED_TRAM]
gcode:
SCREWS_TILT_CALCULATE
[gcode_macro Encender_Led]
description: Turn WLED strip on using optional preset and resets led colors
gcode:
{% set strip = params.STRIP|default("leds")|string %}
{% set preset = params.PRESET|default(1)|int %}
{action_call_remote_method("set_wled_state",
strip=strip,
state=True,
preset=preset)}
[gcode_macro Apagar_Led]
description: Turn WLED strip on using optional preset and resets led colors
gcode:
{% set strip = params.STRIP|default("leds")|string %}
{% set preset = params.PRESET|default(2)|int %}
{action_call_remote_method("set_wled_state",
strip=strip,
state=True,
preset=preset)}