Skip to content

Commit

Permalink
Revert to Functioning Lack of Macros
Browse files Browse the repository at this point in the history
  • Loading branch information
rothmanhunterd committed Sep 10, 2024
1 parent 7028382 commit f6f3833
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 73 deletions.
85 changes: 15 additions & 70 deletions firmware/config/macros.cfg
Original file line number Diff line number Diff line change
@@ -1,77 +1,22 @@
# Need to Better Handle Dual Extruder
# [gcode_macro START_PRINT]
# gcode:
# Add gcode

[gcode_macro START_PRINT]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(0)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(0)|float %}
{% set EXTRUDER1_TEMP = params.EXTRUDER1_TEMP|default(0)|float %}

# Start Bed Heating
M140 S{BED_TEMP}

T0
G28
# [gcode_macro END_PRINT]
# gcode:
# Add gcode

G90
G1 X0 Y0 Z5

# Wait for Bed Heating
M190 S{BED_TEMP}
# [gcode_macro PAUSE]
# gcode:
# Add gcode

T0
M109S{EXTRUDER_TEMP}
# [gcode_macro RESUME]
# gcode:
# Add gcode

T1
M109S{EXTRUDER1_TEMP}
T0

# Purge Extruders, Make Varaiable to Check E1 Used

[gcode_macro END_PRINT]
gcode:
TURN_OFF_HEATERS

M106 S0

G91
G1 Z5

T0
G90
G1 X0 Y0

[gcode_macro PAUSE]
PAUSE

T0
M104 S0

T1
M104 S0

G91
G1 Z5

T0
G90
G1 X0 Y0

[gcode_macro RESUME]
gcode:
RESUME VELOCITY=20

[gcode_macro CANCEL]
gcode:
CANCEL_PRINT

TURN_OFF_HEATERS

G91
G1 Z5

T0
G90
G1 X0 Y0
# [gcode_macro CANCEL_PRINT]
# gcode:
# Add gcode

[gcode_macro T0]
gcode:
Expand Down
3 changes: 0 additions & 3 deletions firmware/config/printer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
[include adxl.cfg]
[include macros.cfg]

[save_variables]
filename:~/variables.cfg

[virtual_sdcard]
path: ~/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
Expand Down

0 comments on commit f6f3833

Please sign in to comment.