-
Notifications
You must be signed in to change notification settings - Fork 9
/
macro-start.cfg
26 lines (19 loc) · 1.07 KB
/
macro-start.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
[gcode_macro START_PRINT]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(200)|float %}
{% set OFFSET = params.OFFSET|default(0)|float %}
{% set PRESSURE_ADVANCE = params.PRESSURE_A|default(0)|float %}
M104 S{ EXTRUDER_TEMP } # Heat up Nozzle
M140 S{ BED_TEMP } # Heat up Bed
G90 # Absolute
SET_GCODE_OFFSET Z={ OFFSET } # Reset the G-Code Z offset (adjust Z offset if needed)
SET_PRESSURE_ADVANCE ADVANCE={ PRESSURE_ADVANCE }
G28 # Home the printer
M190 S{BED_TEMP} # Wait for bed to reach temperature
M109 S{EXTRUDER_TEMP} # Wait for nozzle to reach temperature
G92 E0 # Reset extrusion distance
G1 E3.0 F200 # Extrude filament
G92 E0 # Reset extrusion distance
G1 Z150 F3000 # Move the nozzle
G1 Z0.15 F300 # Move the nozzle very close to the bed