config: Add START_PRINT and END_PRINT examples to sample-macros.cfg
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8f5277c36a
commit
a5f82612a0
|
@ -5,6 +5,50 @@
|
|||
# See the "example.cfg" file for description of common config parameters.
|
||||
|
||||
|
||||
######################################################################
|
||||
# Start Print and End Print
|
||||
######################################################################
|
||||
|
||||
# Replace the slicer's custom start and end g-code scripts with
|
||||
# START_PRINT and END_PRINT.
|
||||
|
||||
[gcode_macro START_PRINT]
|
||||
default_parameter_BED_TEMP: 60
|
||||
default_parameter_EXTRUDER_TEMP: 190
|
||||
gcode:
|
||||
# Start bed heating
|
||||
M140 S{BED_TEMP}
|
||||
# Use absolute coordinates
|
||||
G90
|
||||
# Reset the G-Code Z offset (adjust Z offset if needed)
|
||||
SET_GCODE_OFFSET Z=0.0
|
||||
# Home the printer
|
||||
G28
|
||||
# Move the nozzle near the bed
|
||||
G1 Z5 F3000
|
||||
# Move the nozzle very close to the bed
|
||||
G1 Z0.15 F300
|
||||
# Wait for bed to reach temperature
|
||||
M190 S{BED_TEMP}
|
||||
# Set and wait for nozzle to reach temperature
|
||||
M109 S{EXTRUDER_TEMP}
|
||||
|
||||
[gcode_macro END_PRINT]
|
||||
gcode:
|
||||
# Turn off bed, extruder, and fan
|
||||
M140 S0
|
||||
M104 S0
|
||||
M106 S0
|
||||
# Move nozzle away from print while retracting
|
||||
G91
|
||||
G1 X-2 Y-2 E-3 F300
|
||||
# Raise nozzle by 10mm
|
||||
G1 Z10 F3000
|
||||
G90
|
||||
# Disable steppers
|
||||
M84
|
||||
|
||||
|
||||
######################################################################
|
||||
# Beeper
|
||||
######################################################################
|
||||
|
|
Loading…
Reference in New Issue