-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_end_macros.cfg
60 lines (51 loc) · 2.82 KB
/
start_end_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
[gcode_macro START_PRINT]
description: Start Printing
gcode:
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(200)|float %}
{% set BED_TEMP = params.BED_TEMP|default(80)|float %}
# PrucaSlicer/SuperSlicer startup g-code
# START_PRINT BED_TEMP=[first_layer_bed_temperature] EXTRUDER_TEMP=[first_layer_temperature]
# Cura start g code
# START_PRINT BED_TEMP={material_bed_temperature_layer_0} EXTRUDER_TEMP={material_initial_print_temperature}
# SET_GCODE_OFFSET Z=0.0 ; Reset the G-Code Z offset (adjust Z offset if needed)
G21 ; Set units to millimeters
G90 ; Set all axes to absolute
M82 ; E Absolute
M107 ; Turn off fan
M104 S{EXTRUDER_TEMP} ; Start extruder heating
M140 S{BED_TEMP} ; Start bed heating
G28 ; Home the printer
M190 S{BED_TEMP} ; Wait for bed to reach temperature
M109 S{EXTRUDER_TEMP} ; Wait for nozzle to reach temperature
PRIME_LINE ; First move
#M220 S50
[gcode_macro END_PRINT]
description: End Printing
gcode:
# PrucaSlicer/SuperSlicer/Cura end g-code
# END_PRINT
G91 ; Relative positioning
G1 E-2 F2700 ; Retract a bit
G1 E-2 Z0.2 F2400 ; Retract and raise Z
G1 Z10 F3000 ; Raise Z more
G90 ; Absolute positioning
G1 X5 Y325 F3000 ; Wipe out
M107 ; Turn off fan
M104 S0 ; Turn off hot end
M140 S0 ; Turn off bed
M84 XYE ; Disable all steppers but Z
G90 ; absolute positioning
M117 print done ; Send finish to display
[gcode_macro PRIME_LINE]
Description: Print prime line
gcode:
G1 Z3.0 F3000 ; Move Z Axis up
G92 E0 ; Reset extruder
G1 X20 Y20.0 Z0.28 F3000
G92 E0 ; Reset extruder
G1 X10 Y10 Z0.28 F3000.0 ; Move to start position
G1 X10 Y170.0 Z0.28 F1500.0 E12 ; Draw the first line
G1 X10.3 Y10.0 Z0.28 F1500.0 E18 ; Draw the second line
G92 E0 ; Reset extruder
G1 Z1.0 F3000 ; Move Z Axis up
M117 Printing