forked from zellneralex/klipper_config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay_menu.cfg
134 lines (116 loc) · 3.55 KB
/
display_menu.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#####################################################################
#. Display Menu definition #
#####################################################################
# Removed Items of the Stock menu #
#####################################################################
## Octoprint
[menu __main __octoprint]
type: disabled
## PreHeat
[menu __main __temp __preheat_pla]
type: disabled
[menu __main __temp __preheat_abs]
type: disabled
## use own load and unload macro
[menu __main __filament __loadf]
type: disabled
[menu __main __filament __loads]
type: disabled
[menu __main __filament __unloadf]
type: disabled
[menu __main __filament __unloads]
type: disabled
## Delta Calibration
[menu __main __setup __calib __delta_calib_auto]
type: disabled
[menu __main __setup __calib __delta_calib_man]
type: disabled
#####################################################################
# Overload Items of the Stock menu #
#####################################################################
#####################################################################
# Added Items to the Stock menu #
#####################################################################
## Add filament load and unload macro
[menu __main __filament __load]
type: command
name: Load Filament
gcode:
FILAMENT_LOAD
[menu __main __filament __unload]
type: command
name: Unload Filament
gcode:
FILAMENT_UNLOAD
## Probe & Endstop Z-Offset calibration
[menu __main __setup __calib __Z_offset]
type: list
enable: {not printer.idle_timeout.state == "Printing"}
name: Z offset
[menu __main __setup __calib __Z_offset __start]
type: input
enable: {not printer.idle_timeout.state == "Printing"}
name: Do {['None','Probe','Endstop'][menu.input|int]}
input: 0
input_min: 0
input_max: 2
input_step: 1
gcode:
{%- if menu.event == 'long_click' -%}
{menu.back()}
{%- if menu.input|int == 1 -%}
{action_respond_info("Start Probe calibration")}
PROBE_CALIBRATE
{%- elif menu.input|int == 2 -%}
{action_respond_info(" Start Z-Endstop calibration")}
Z_ENDSTOP_CALIBRATE
{%- endif -%}
{%- endif -%}
[menu __main __setup __calib __Z_offset __move_z]
type: input
name: Move Z: {'%03.2f' % menu.input}
input: {printer.gcode_move.gcode_position.z}
input_step: 1
realtime: True
gcode:
{%- if menu.event == 'change' -%}
G1 Z{'%.2f' % menu.input}
{%- elif menu.event == 'long_click' -%}
G1 Z{'%.2f' % menu.input}
SAVE_GCODE_STATE NAME=__move__axis
G91
G1 Z2
G1 Z-2
RESTORE_GCODE_STATE NAME=__move__axis
{%- endif -%}
[menu __main __setup __calib __Z_offset __test_z]
type: input
name: Test Z: {['++','+','+.01','+.05','+.1','+.5','-.5','-.1','-.05','-.01','-','--'][menu.input|int]}
input: 5
input_min: 0
input_max: 11
input_step: 1
gcode:
{%- if menu.event == 'long_click' -%}
TESTZ Z={['++','+','+.01','+.05','+.1','+.5','-.5','-.1','-.05','-.01','-','--'][menu.input|int]}
{%- endif -%}
[menu __main __setup __calib __Z_offset __test_z_live]
type: input
name: Test Z : {'%03.3f' % menu.input}
input: 0
input_min: -5.0
input_max: 5.0
input_step: 0.01
realtime: True
gcode:
{%- if menu.event == 'long_click' -%}
TESTZ Z={'%.3f' % menu.input}
{%- endif -%}
[menu __main __setup __calib __Z_offset __accept]
type: command
name: Accept
gcode: ACCEPT
[menu __main __setup __calib __Z_offset __abort]
type: command
name: Abort
gcode: ABORT