-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfluidd.cfg
64 lines (56 loc) · 1.5 KB
/
fluidd.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
######################################
## This is a custom config for
## fluidd to enable options required
## by it
######################################
######################################
## Options required by fluidd
######################################
[virtual_sdcard]
path: ~/gcode_files
[display_status]
[pause_resume]
######################################
## Custom macros for fluidd
######################################
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
#default_parameter_E: 4
gcode:
# {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
{% set E = params.E|default(4)|float %}
{% set x_park = 305 %}
# {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
{% set y_park = 85 %}
{% set max_z = printer.toolhead.axis_maximum.z|float %}
{% set act_z = printer.toolhead.position.z|float %}
{% if act_z < (max_z - 2.0) %}
{% set z_safe = 2.0 %}
{% else %}
{% set z_safe = max_z - act_z %}
{% endif %}
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{z_safe} F900
G90
G0 X{x_park} Y{y_park} F6000
G91
[gcode_macro RESUME]
rename_existing: BASE_RESUME
#default_parameter_E: 3 # edit to your preferred retract length
gcode:
{% set E = params.E|default(4)|float %}
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT