-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgcode.cfg
More file actions
66 lines (61 loc) · 1.56 KB
/
gcode.cfg
File metadata and controls
66 lines (61 loc) · 1.56 KB
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
61
62
63
64
65
66
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 230
default_parameter_Y: 230
default_parameter_Z: 10
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-1.7 F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
G91
[gcode_macro RESUME]
rename_existing: BASE_RESUME
gcode:
G91
G1 E1.7 F2100
G91
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro DISABLE_MOTORS]
gcode:
M18
[gcode_macro END_PRINT]
gcode:
G1 Y190 F1500; bring Y up front
G92 E0
G10 ; set tool offset? or retract?
G91; Relative Positioning
G1 Z+10; Move Z up so it doesn't hit anything
G1 E-10 F300; Retrack-10
G90; Absolute Positioning
G1 X10 Y220 F2000; Move to X10, Y220
M104 S0; Turn off Extrude (set it to 0)
M140 S0; Turn off Bed (set it to 0)
M106 S0; turn off cooling fan
M84; Disable steppers
[gcode_macro START_PRINT]
gcode:
G21
G90
# BED_MESH_CLEAR
G28; Home all axes
# BED_MESH_CALIBRATE
G92 E0; Reset Extruder
G1 Z5.0 F3000; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30; Draw the second line
G92 E0; Reset Extruder
G1 Z5.0 F3000; Move Z Axis up little to prevent scratching of Heat Bed