Aboms Menu
This is an example of what you can do by explicitly declaring a menu
This menu disables some of the stock menu items that I don't use and adds many others. There are many ways you can do this, but this will give you an example to work with.
1
[menu __main]
2
type: list
3
name: Main Menu
4
items:
5
__tune
6
__control
7
__calibration
8
__temp
9
__filament
10
__prepare
11
12
[menu __calibration]
13
type: list
14
name: Calibration
15
items:
16
__calibration_home_all_axes
17
__calibration_probe_calibrate
18
__calibration_probe_accuracy
19
__general_firmware_restart
20
21
[menu __calibration_accept]
22
type: command
23
name: Accept
24
gcode:
25
ACCEPT
26
27
[menu __calibration_abort]
28
type: command
29
name: Abort
30
gcode:
31
ABORT
32
action: back
33
34
[menu __calibration_probe_accuracy]
35
type: command
36
name: Test accuracy
37
gcode:
38
G28
39
PROBE_ACCURACY
40
41
[menu __calibration_save_config]
42
type: command
43
name: Save config
44
gcode:
45
SAVE_CONFIG
46
47
[menu __general_firmware_restart]
48
type: command
49
name: Restart firmware
50
gcode:
51
FIRMWARE_RESTART
52
53
[menu __calibration_home_all_axes]
54
type: command
55
name: Home XYZ
56
gcode:
57
G28
58
59
[menu __calibration_probe_calibrate]
60
type: list
61
name: Adjust Z offset
62
enter_gcode:
63
G28
64
PROBE_CALIBRATE
65
items:
66
__calibration__toolhead_zpos
67
__calibration_probe_calibrate_testz_minus, __calibration_probe_calibrate_testz_plus
68
__calibration_probe_calibrate_testz_minus_minus, __calibration_probe_calibrate_testz_plus_plus
69
__calibration_probe_calibrate_testz_minus_1, __calibration_probe_calibrate_testz_plus_1
70
__calibration_probe_calibrate_testz_minus_point_1, __calibration_probe_calibrate_testz_plus_point_1
71
__calibration_accept
72
__calibration_save_config
73
__calibration_abort
74
75
[menu __calibration__toolhead_zpos]
76
type: item
77
width: 16
78
name: "Z = {0:.3f}"
79
cursor: \x20
80
parameter: toolhead.zpos
81
82
[menu __calibration_probe_calibrate_testz_minus]
83
cursor: \x20
84
type: command
85
width: 7
86
name: " -"
87
gcode:
88
TESTZ Z=-
89
90
[menu __calibration_probe_calibrate_testz_plus]
91
cursor: \x20
92
type: command
93
name: " +"
94
width: 7
95
gcode:
96
TESTZ Z=+
97
98
[menu __calibration_probe_calibrate_testz_minus_minus]
99
cursor: \x20
100
type: command
101
name: " --"
102
width: 7
103
gcode:
104
TESTZ Z=--
105
106
[menu __calibration_probe_calibrate_testz_plus_plus]
107
cursor: \x20
108
type: command
109
name: " ++"
110
width: 7
111
gcode:
112
TESTZ Z=++
113
114
[menu __calibration_probe_calibrate_testz_minus_1]
115
cursor: \x20
116
type: command
117
name: " -1.0"
118
width: 7
119
gcode:
120
TESTZ Z=-1
121
122
[menu __calibration_probe_calibrate_testz_plus_1]
123
cursor: \x20
124
type: command
125
name: " +1.0"
126
width: 7
127
gcode:
128
TESTZ Z=+1
129
130
[menu __calibration_probe_calibrate_testz_minus_point_1]
131
cursor: \x20
132
type: command
133
name: " -0.1"
134
width: 7
135
gcode:
136
TESTZ Z=-0.1
137
138
[menu __calibration_probe_calibrate_testz_plus_point_1]
139
cursor: \x20
140
type: command
141
name: " +0.1"
142
width: 7
143
gcode:
144
TESTZ Z=+0.1
Copied!
Last modified 1yr ago
Copy link