-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_end_macros.cfg
43 lines (39 loc) · 2.43 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
[gcode_macro START_PRINT]
variable_parameter_T_BED: 0
variable_parameter_T_EXTRUDER: 0
gcode:
G21 ; Set metric values
M107 ; Start wit the Fan OFF
M82 ; Extruder absolute mode
G28 ; Home
G34 ; Z-Tilt correction
M140 S{T_BED} ; Set target bed temperature
M190 S{T_BED} ; Wait for bed to heat up
LOAD_MESH_TEMP BED_TEMPERATURE={T_BED} ; Load mesh for selected Bed temp
M104 S{T_EXTRUDER} ; Set target extruder temperature
M109 S{T_EXTRUDER} ; Wait for extruder to heat up
G92 E0.0 ; Reset extruder length
G90 ; Absolute positioning
PRIME_LINE ; First move
[gcode_macro END_PRINT]
gcode:
TURN_OFF_HEATERS ; Turn OFF bed and nozzle
G91 ; Relative positioning
G1 E-1 F3000 ; Retract 1mm of Filament @ Speed 3000
G1 X-0.5 Y-0.5 Z5 E-5 ; Move a bit and retract Filament even more
G90 ; Absolute positioning
G1 X0 Y200 F2200 ; Move Bed to front
M107 ; Turn OFF Fan
BED_MESH_CLEAR ; Clear Session based mesh
G90 ; Absolute positioning
M117 Print done ; Send "Print done" to Display
M84 ; Disable motors
CLEAR_PAUSE ; Delete pause data
[gcode_macro PRIME_LINE]
gcode:
G1 X5.0 Y5.0 F3000 ; Move to Front
G0 Z0.2 ; Drop to Bed
G92 E0 ; Zero the Extruder length
G1 X145 E20 F500 ; Extrude 20mm of Filament in a 14cm Line
G1 X165 F5000 ; Quick wipe
G92 E0 ; Zero the Extruder length