2020-12-04 00:11:29 +01:00
|
|
|
# This file defines the default layout of the printer's menu.
|
|
|
|
|
|
|
|
# It is not necessary to edit this file to change the menu. Instead,
|
|
|
|
# one may override any of the sections defined here by defining a
|
|
|
|
# section with the same name in the main printer.cfg config file.
|
2018-08-20 12:15:12 +02:00
|
|
|
|
|
|
|
### DEFAULT MENU ###
|
2020-08-09 15:29:55 +02:00
|
|
|
# Main
|
|
|
|
# + Tune
|
|
|
|
# + Speed: 000%
|
|
|
|
# + Flow: 000%
|
|
|
|
# + Offset Z:00.00
|
|
|
|
# + OctoPrint
|
|
|
|
# + Pause printing
|
|
|
|
# + Resume printing
|
|
|
|
# + Abort printing
|
|
|
|
# + SD Card
|
|
|
|
# + Start printing
|
|
|
|
# + Resume printing
|
|
|
|
# + Pause printing
|
2021-01-24 16:35:05 +01:00
|
|
|
# + Cancel printing
|
2020-08-09 15:29:55 +02:00
|
|
|
# + ... (files)
|
|
|
|
# + Control
|
|
|
|
# + Home All
|
|
|
|
# + Home Z
|
|
|
|
# + Home X/Y
|
|
|
|
# + Steppers off
|
|
|
|
# + Fan: OFF
|
|
|
|
# + Fan speed: 000%
|
|
|
|
# + Lights: OFF
|
|
|
|
# + Lights: 000%
|
|
|
|
# + Move 10mm
|
|
|
|
# + Move X:000.0
|
|
|
|
# + Move Y:000.0
|
|
|
|
# + Move Z:000.0
|
|
|
|
# + Move E:+000.0
|
|
|
|
# + Move 1mm
|
|
|
|
# + Move X:000.0
|
|
|
|
# + Move Y:000.0
|
|
|
|
# + Move Z:000.0
|
|
|
|
# + Move E:+000.0
|
|
|
|
# + Move 0.1mm
|
|
|
|
# + Move X:000.0
|
|
|
|
# + Move Y:000.0
|
|
|
|
# + Move Z:000.0
|
|
|
|
# + Move E:+000.0
|
|
|
|
# + Temperature
|
|
|
|
# + Ex0:000 (0000)
|
|
|
|
# + Ex1:000 (0000)
|
|
|
|
# + Bed:000 (0000)
|
|
|
|
# + Preheat PLA
|
|
|
|
# + Preheat all
|
|
|
|
# + Preheat hotend
|
|
|
|
# + Preheat hotbed
|
|
|
|
# + Preheat ABS
|
|
|
|
# + Preheat all
|
|
|
|
# + Preheat hotend
|
|
|
|
# + Preheat hotbed
|
|
|
|
# + Cooldown
|
|
|
|
# + Cooldown all
|
|
|
|
# + Cooldown hotend
|
|
|
|
# + Cooldown hotbed
|
|
|
|
# + Filament
|
|
|
|
# + Ex0:000 (0000)
|
|
|
|
# + Load Fil. fast
|
|
|
|
# + Load Fil. slow
|
|
|
|
# + Unload Fil.fast
|
|
|
|
# + Unload Fil.slow
|
|
|
|
# + Feed: 000.0
|
|
|
|
# + Setup
|
|
|
|
# + Save config
|
|
|
|
# + Restart
|
|
|
|
# + Restart host
|
|
|
|
# + Restart FW
|
|
|
|
# + PID tuning
|
|
|
|
# + Tune Hotend PID
|
|
|
|
# + Tune Hotbed PID
|
|
|
|
# + Calibration
|
|
|
|
# + Delta cal. auto
|
|
|
|
# + Delta cal. man
|
|
|
|
# + Start probing
|
|
|
|
# + Move Z: 000.00
|
|
|
|
# + Test Z: ++
|
|
|
|
# + Accept
|
|
|
|
# + Abort
|
|
|
|
# + Bed probe
|
|
|
|
# + Dump parameters
|
2018-08-20 12:15:12 +02:00
|
|
|
|
|
|
|
### menu main ###
|
|
|
|
[menu __main]
|
|
|
|
type: list
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Main
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2018-09-17 14:26:59 +02:00
|
|
|
### menu tune ###
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __tune]
|
2018-09-17 14:26:59 +02:00
|
|
|
type: list
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {printer.idle_timeout.state == "Printing"}
|
2018-09-17 14:26:59 +02:00
|
|
|
name: Tune
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __tune __speed]
|
2018-09-17 14:26:59 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Speed: {'%3d' % (menu.input*100)}%
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.speed_factor}
|
2021-03-23 15:55:25 +01:00
|
|
|
input_min: 0.01
|
|
|
|
input_max: 5
|
2018-09-17 14:26:59 +02:00
|
|
|
input_step: 0.01
|
2020-08-09 15:29:55 +02:00
|
|
|
realtime: True
|
|
|
|
gcode:
|
|
|
|
M220 S{'%d' % (menu.input*100)}
|
2018-09-17 14:26:59 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __tune __flow]
|
2018-09-17 14:26:59 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Flow: {'%3d' % (menu.input*100)}%
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.extrude_factor}
|
2021-03-23 15:55:25 +01:00
|
|
|
input_min: 0.01
|
2018-09-17 14:26:59 +02:00
|
|
|
input_max: 2
|
|
|
|
input_step: 0.01
|
2020-08-09 15:29:55 +02:00
|
|
|
realtime: True
|
|
|
|
gcode:
|
|
|
|
M221 S{'%d' % (menu.input*100)}
|
2018-09-17 14:26:59 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __tune __offsetz]
|
2018-09-17 14:26:59 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Offset Z:{'%05.3f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.homing_origin.z}
|
2018-09-17 14:26:59 +02:00
|
|
|
input_min: -5
|
|
|
|
input_max: 5
|
|
|
|
input_step: 0.005
|
2020-08-09 15:29:55 +02:00
|
|
|
realtime: True
|
|
|
|
gcode:
|
|
|
|
SET_GCODE_OFFSET Z={'%.3f' % menu.input} MOVE=1
|
|
|
|
|
2018-09-17 14:26:59 +02:00
|
|
|
|
2018-08-20 12:15:12 +02:00
|
|
|
### menu octoprint ###
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __octoprint]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
|
|
|
name: OctoPrint
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __octoprint __pause]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Pause printing
|
|
|
|
gcode:
|
2020-08-16 21:39:30 +02:00
|
|
|
{action_respond_info('action:pause')}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __octoprint __resume]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Resume printing
|
|
|
|
gcode:
|
2020-08-16 21:39:30 +02:00
|
|
|
{action_respond_info('action:resume')}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __octoprint __abort]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Abort printing
|
|
|
|
gcode:
|
2020-08-16 21:39:30 +02:00
|
|
|
{action_respond_info('action:cancel')}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
|
|
|
### menu virtual sdcard ###
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __sdcard]
|
|
|
|
type: vsdlist
|
|
|
|
enable: {('virtual_sdcard' in printer)}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: SD Card
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __sdcard __start]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
menu: fix crash when opening SDCard menu while printing
This fixes the bug introduced by https://github.com/KevinOConnor/klipper/commit/f1091a484bfbf2cc5676e3a6fcd595172f123f67.
The problem is that condition was returning string which
could not be converted to boolean. We solve that by showing
`Start Printing` when `is_active`.
```
ERROR:root:Unhandled exception during run
Traceback (most recent call last):
...
File "/opt/klipper/klippy/extras/display/menu.py", line 117, in eval_enable
return bool(ast.literal_eval(self._enable_tpl.render(context)))
File "/usr/lib/python2.7/ast.py", line 49, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
/opt/octoprint/uploads/wait_print.gcode
```
Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
2021-07-23 13:09:46 +02:00
|
|
|
enable: {('virtual_sdcard' in printer) and printer.virtual_sdcard.file_path and not printer.virtual_sdcard.is_active}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Start printing
|
|
|
|
gcode: M24
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __sdcard __resume]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2021-05-06 17:54:27 +02:00
|
|
|
enable: {('virtual_sdcard' in printer) and printer.print_stats.state == "paused"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Resume printing
|
2021-01-24 16:35:05 +01:00
|
|
|
gcode:
|
|
|
|
{% if "pause_resume" in printer %}
|
|
|
|
RESUME
|
|
|
|
{% else %}
|
|
|
|
M24
|
|
|
|
{% endif %}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __sdcard __pause]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2021-01-24 16:35:05 +01:00
|
|
|
enable: {('virtual_sdcard' in printer) and printer.print_stats.state == "printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Pause printing
|
2021-01-24 16:35:05 +01:00
|
|
|
gcode:
|
|
|
|
{% if "pause_resume" in printer %}
|
|
|
|
PAUSE
|
|
|
|
{% else %}
|
|
|
|
M25
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
[menu __main __sdcard __cancel]
|
|
|
|
type: command
|
2021-05-06 17:54:27 +02:00
|
|
|
enable: {('virtual_sdcard' in printer) and (printer.print_stats.state == "printing" or printer.print_stats.state == "paused")}
|
2021-01-24 16:35:05 +01:00
|
|
|
name: Cancel printing
|
|
|
|
gcode:
|
|
|
|
{% if 'pause_resume' in printer %}
|
|
|
|
CANCEL_PRINT
|
|
|
|
{% else %}
|
|
|
|
M25
|
|
|
|
M27
|
|
|
|
M26 S0
|
|
|
|
TURN_OFF_HEATERS
|
|
|
|
{% if printer.toolhead.position.z <= printer.toolhead.axis_maximum.z - 5 %}
|
|
|
|
G91
|
|
|
|
G0 Z5 F1000
|
|
|
|
G90
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
|
|
|
### menu control ###
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
|
|
|
name: Control
|
2020-08-09 15:29:55 +02:00
|
|
|
|
|
|
|
[menu __main __control __home]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Home All
|
|
|
|
gcode: G28
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __homez]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Home Z
|
|
|
|
gcode: G28 Z
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __homexy]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Home X/Y
|
|
|
|
gcode: G28 X Y
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __disable]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Steppers off
|
2018-08-20 12:15:12 +02:00
|
|
|
gcode:
|
|
|
|
M84
|
|
|
|
M18
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __fanonoff]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'fan' in printer}
|
|
|
|
name: Fan: {'ON ' if menu.input else 'OFF'}
|
|
|
|
input: {printer.fan.speed}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
|
|
|
input_max: 1
|
|
|
|
input_step: 1
|
2020-08-09 15:29:55 +02:00
|
|
|
gcode:
|
|
|
|
M106 S{255 if menu.input else 0}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __fanspeed]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'fan' in printer}
|
|
|
|
name: Fan speed: {'%3d' % (menu.input*100)}%
|
|
|
|
input: {printer.fan.speed}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
|
|
|
input_max: 1
|
|
|
|
input_step: 0.01
|
2020-08-09 15:29:55 +02:00
|
|
|
gcode:
|
|
|
|
M106 S{'%d' % (menu.input*255)}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __caselightonoff]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'output_pin caselight' in printer}
|
|
|
|
name: Lights: {'ON ' if menu.input else 'OFF'}
|
|
|
|
input: {printer['output_pin caselight'].value}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
|
|
|
input_max: 1
|
|
|
|
input_step: 1
|
2020-08-09 15:29:55 +02:00
|
|
|
gcode:
|
|
|
|
SET_PIN PIN=caselight VALUE={1 if menu.input else 0}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __caselightpwm]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'output_pin caselight' in printer}
|
|
|
|
name: Lights: {'%3d' % (menu.input*100)}%
|
|
|
|
input: {printer['output_pin caselight'].value}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0.0
|
|
|
|
input_max: 1.0
|
|
|
|
input_step: 0.01
|
2020-08-09 15:29:55 +02:00
|
|
|
gcode:
|
|
|
|
SET_PIN PIN=caselight VALUE={menu.input}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
|
|
|
### menu move 10mm ###
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_10mm]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Move 10mm
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_10mm __axis_x]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Move X:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.x}
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: {printer.toolhead.axis_minimum.x}
|
|
|
|
input_max: {printer.toolhead.axis_maximum.x}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 10.0
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 X{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_10mm __axis_y]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Move Y:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.y}
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: {printer.toolhead.axis_minimum.y}
|
|
|
|
input_max: {printer.toolhead.axis_maximum.y}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 10.0
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 Y{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_10mm __axis_z]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Move Z:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.z}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
2021-01-18 04:39:54 +01:00
|
|
|
input_max: {printer.toolhead.axis_maximum.z}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 10.0
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 Z{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_10mm __axis_e]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Move E:{'%+06.1f' % menu.input}
|
|
|
|
input: 0
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
|
|
input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 10.0
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
M83
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 E{menu.input} F240
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
|
|
|
### menu move 1mm ###
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_1mm]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Move 1mm
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_1mm __axis_x]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Move X:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.x}
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: {printer.toolhead.axis_minimum.x}
|
|
|
|
input_max: {printer.toolhead.axis_maximum.x}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 1.0
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 X{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_1mm __axis_y]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Move Y:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.y}
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: {printer.toolhead.axis_minimum.y}
|
|
|
|
input_max: {printer.toolhead.axis_maximum.y}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 1.0
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 Y{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_1mm __axis_z]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Move Z:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.z}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
2021-01-18 04:39:54 +01:00
|
|
|
input_max: {printer.toolhead.axis_maximum.z}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 1.0
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 Z{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_1mm __axis_e]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Move E:{'%+06.1f' % menu.input}
|
|
|
|
input: 0
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
|
|
input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 1.0
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
M83
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 E{menu.input} F240
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
|
|
|
### menu move 0.1mm ###
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_01mm]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Move 0.1mm
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_01mm __axis_x]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Move X:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.x}
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: {printer.toolhead.axis_minimum.x}
|
|
|
|
input_max: {printer.toolhead.axis_maximum.x}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 0.1
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 X{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_01mm __axis_y]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Move Y:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.y}
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: {printer.toolhead.axis_minimum.y}
|
|
|
|
input_max: {printer.toolhead.axis_maximum.y}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 0.1
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 Y{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_01mm __axis_z]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Move Z:{'%05.1f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.z}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
2021-01-18 04:39:54 +01:00
|
|
|
input_max: {printer.toolhead.axis_maximum.z}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 0.1
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
G90
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 Z{menu.input}
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __control __move_01mm __axis_e]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Move E:{'%+06.1f' % menu.input}
|
|
|
|
input: 0
|
2021-01-18 04:39:54 +01:00
|
|
|
input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
|
|
input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 0.1
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
2019-03-21 15:37:28 +01:00
|
|
|
M83
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 E{menu.input} F240
|
|
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
2018-08-20 12:15:12 +02:00
|
|
|
|
|
|
|
### menu temperature ###
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
|
|
|
name: Temperature
|
2020-08-09 15:29:55 +02:00
|
|
|
|
|
|
|
[menu __main __temp __hotend0_target]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2021-02-20 17:33:34 +01:00
|
|
|
enable: {('extruder' in printer) and ('extruder' in printer.heaters.available_heaters)}
|
2020-08-09 15:29:55 +02:00
|
|
|
name: {"Ex0:%3.0f (%4.0f)" % (menu.input, printer.extruder.temperature)}
|
|
|
|
input: {printer.extruder.target}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
2020-08-09 15:29:55 +02:00
|
|
|
input_max: {printer.configfile.config.extruder.max_temp}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 1
|
2020-08-09 15:29:55 +02:00
|
|
|
gcode: M104 T0 S{'%.0f' % menu.input}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __hotend1_target]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2021-02-20 17:33:34 +01:00
|
|
|
enable: {('extruder1' in printer) and ('extruder1' in printer.heaters.available_heaters)}
|
2020-08-09 15:29:55 +02:00
|
|
|
name: {"Ex1:%3.0f (%4.0f)" % (menu.input, printer.extruder1.temperature)}
|
|
|
|
input: {printer.extruder1.target}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
2020-08-09 15:29:55 +02:00
|
|
|
input_max: {printer.configfile.config.extruder1.max_temp}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 1
|
2020-08-09 15:29:55 +02:00
|
|
|
gcode: M104 T1 S{'%.0f' % menu.input}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __hotbed_target]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'heater_bed' in printer}
|
|
|
|
name: {"Bed:%3.0f (%4.0f)" % (menu.input, printer.heater_bed.temperature)}
|
|
|
|
input: {printer.heater_bed.target}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_min: 0
|
2020-08-09 15:29:55 +02:00
|
|
|
input_max: {printer.configfile.config.heater_bed.max_temp}
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 1
|
2020-08-09 15:29:55 +02:00
|
|
|
gcode: M140 S{'%.0f' % menu.input}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __preheat_pla]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
|
|
|
name: Preheat PLA
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __preheat_pla __all]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {('extruder' in printer) and ('heater_bed' in printer)}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Preheat all
|
|
|
|
gcode:
|
|
|
|
M140 S60
|
|
|
|
M104 S200
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __preheat_pla __hotend]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'extruder' in printer}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Preheat hotend
|
|
|
|
gcode: M104 S200
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __preheat_pla __hotbed]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'heater_bed' in printer}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Preheat hotbed
|
|
|
|
gcode: M140 S60
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __preheat_abs]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
|
|
|
name: Preheat ABS
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __preheat_abs __all]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {('extruder' in printer) and ('heater_bed' in printer)}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Preheat all
|
|
|
|
gcode:
|
|
|
|
M140 S110
|
|
|
|
M104 S245
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __preheat_abs __hotend]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'extruder' in printer}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Preheat hotend
|
|
|
|
gcode: M104 S245
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __preheat_abs __hotbed]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'heater_bed' in printer}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Preheat hotbed
|
|
|
|
gcode: M140 S110
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __cooldown]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
|
|
|
name: Cooldown
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __cooldown __all]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {('extruder' in printer) and ('heater_bed' in printer)}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Cooldown all
|
|
|
|
gcode:
|
|
|
|
M104 S0
|
|
|
|
M140 S0
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __cooldown __hotend]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'extruder' in printer}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Cooldown hotend
|
|
|
|
gcode: M104 S0
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __temp __cooldown __hotbed]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {'heater_bed' in printer}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Cooldown hotbed
|
|
|
|
gcode: M140 S0
|
|
|
|
|
|
|
|
### menu filament ###
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __filament]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
|
|
|
name: Filament
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __filament __hotend0_target]
|
|
|
|
type: input
|
|
|
|
enable: {'extruder' in printer}
|
|
|
|
name: {"Ex0:%3.0f (%4.0f)" % (menu.input, printer.extruder.temperature)}
|
|
|
|
input: {printer.extruder.target}
|
|
|
|
input_min: 0
|
|
|
|
input_max: {printer.configfile.config.extruder.max_temp}
|
|
|
|
input_step: 1
|
|
|
|
gcode: M104 T0 S{'%.0f' % menu.input}
|
|
|
|
|
|
|
|
[menu __main __filament __loadf]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Load Fil. fast
|
2018-08-20 12:15:12 +02:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__filament__load
|
2019-01-07 16:25:19 +01:00
|
|
|
M83
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 E50 F960
|
|
|
|
RESTORE_GCODE_STATE NAME=__filament__load
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __filament __loads]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Load Fil. slow
|
2018-08-20 12:15:12 +02:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__filament__load
|
2019-01-07 16:25:19 +01:00
|
|
|
M83
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 E50 F240
|
|
|
|
RESTORE_GCODE_STATE NAME=__filament__load
|
|
|
|
|
|
|
|
[menu __main __filament __unloadf]
|
|
|
|
type: command
|
|
|
|
name: Unload Fil.fast
|
|
|
|
gcode:
|
|
|
|
SAVE_GCODE_STATE NAME=__filament__load
|
|
|
|
M83
|
|
|
|
G1 E-50 F960
|
|
|
|
RESTORE_GCODE_STATE NAME=__filament__load
|
|
|
|
|
|
|
|
[menu __main __filament __unloads]
|
|
|
|
type: command
|
|
|
|
name: Unload Fil.slow
|
|
|
|
gcode:
|
|
|
|
SAVE_GCODE_STATE NAME=__filament__load
|
|
|
|
M83
|
|
|
|
G1 E-50 F240
|
|
|
|
RESTORE_GCODE_STATE NAME=__filament__load
|
|
|
|
|
|
|
|
[menu __main __filament __feed]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: input
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Feed: {'%.1f' % menu.input}
|
|
|
|
input: 5
|
2018-08-20 12:15:12 +02:00
|
|
|
input_step: 0.1
|
2019-03-21 15:37:28 +01:00
|
|
|
gcode:
|
2020-08-09 15:29:55 +02:00
|
|
|
SAVE_GCODE_STATE NAME=__filament__load
|
2019-03-21 15:37:28 +01:00
|
|
|
M83
|
2020-08-09 15:29:55 +02:00
|
|
|
G1 E{'%.1f' % menu.input} F60
|
|
|
|
RESTORE_GCODE_STATE NAME=__filament__load
|
|
|
|
|
|
|
|
### menu setup ###
|
|
|
|
[menu __main __setup]
|
|
|
|
type: list
|
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Setup
|
|
|
|
|
|
|
|
[menu __main __setup __save_config]
|
|
|
|
type: command
|
|
|
|
name: Save config
|
|
|
|
gcode: SAVE_CONFIG
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __setup __restart]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: list
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Restart
|
|
|
|
|
|
|
|
[menu __main __setup __restart __host_restart]
|
|
|
|
type: command
|
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Restart host
|
|
|
|
gcode: RESTART
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __setup __restart __firmware_restart]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Restart FW
|
|
|
|
gcode: FIRMWARE_RESTART
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __setup __tuning]
|
|
|
|
type: list
|
|
|
|
name: PID tuning
|
|
|
|
|
|
|
|
[menu __main __setup __tuning __hotend_pid_tuning]
|
|
|
|
type: command
|
|
|
|
enable: {(not printer.idle_timeout.state == "Printing") and ('extruder' in printer)}
|
|
|
|
name: Tune Hotend PID
|
|
|
|
gcode: PID_CALIBRATE HEATER=extruder TARGET=210 WRITE_FILE=1
|
|
|
|
|
|
|
|
[menu __main __setup __tuning __hotbed_pid_tuning]
|
|
|
|
type: command
|
|
|
|
enable: {(not printer.idle_timeout.state == "Printing") and ('heater_bed' in printer)}
|
|
|
|
name: Tune Hotbed PID
|
|
|
|
gcode: PID_CALIBRATE HEATER=heater_bed TARGET=60 WRITE_FILE=1
|
|
|
|
|
|
|
|
[menu __main __setup __calib]
|
|
|
|
type: list
|
|
|
|
name: Calibration
|
|
|
|
|
|
|
|
[menu __main __setup __calib __delta_calib_auto]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Delta cal. auto
|
|
|
|
gcode:
|
|
|
|
G28
|
|
|
|
DELTA_CALIBRATE
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __setup __calib __delta_calib_man]
|
|
|
|
type: list
|
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
|
|
name: Delta cal. man
|
|
|
|
|
|
|
|
[menu __main __setup __calib __bedprobe]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
2018-08-20 12:15:12 +02:00
|
|
|
name: Bed probe
|
|
|
|
gcode: PROBE
|
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __setup __calib __delta_calib_man __start]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Start probing
|
|
|
|
gcode:
|
|
|
|
G28
|
|
|
|
DELTA_CALIBRATE METHOD=manual
|
|
|
|
|
|
|
|
[menu __main __setup __calib __delta_calib_man __move_z]
|
|
|
|
type: input
|
|
|
|
name: Move Z: {'%03.2f' % menu.input}
|
2020-08-05 17:43:45 +02:00
|
|
|
input: {printer.gcode_move.gcode_position.z}
|
2020-08-09 15:29:55 +02:00
|
|
|
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 __delta_calib_man __test_z]
|
|
|
|
type: input
|
|
|
|
name: Test Z: {['++','+','+.01','+.05','+.1','+.5','-.5','-.1','-.05','-.01','-','--'][menu.input|int]}
|
|
|
|
input: 6
|
|
|
|
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 -%}
|
2018-08-20 12:15:12 +02:00
|
|
|
|
2020-08-09 15:29:55 +02:00
|
|
|
[menu __main __setup __calib __delta_calib_man __accept]
|
2018-08-20 12:15:12 +02:00
|
|
|
type: command
|
2020-08-09 15:29:55 +02:00
|
|
|
name: Accept
|
|
|
|
gcode: ACCEPT
|
|
|
|
|
|
|
|
[menu __main __setup __calib __delta_calib_man __abort]
|
|
|
|
type: command
|
|
|
|
name: Abort
|
|
|
|
gcode: ABORT
|
|
|
|
|
|
|
|
[menu __main __setup __dump]
|
|
|
|
type: command
|
|
|
|
name: Dump parameters
|
|
|
|
gcode:
|
|
|
|
{% for name1 in printer %}
|
|
|
|
{% for name2 in printer[name1] %}
|
2020-08-16 21:39:30 +02:00
|
|
|
{ action_respond_info("printer['%s'].%s = %s"
|
|
|
|
% (name1, name2, printer[name1][name2])) }
|
2020-08-09 15:29:55 +02:00
|
|
|
{% else %}
|
2020-08-16 21:39:30 +02:00
|
|
|
{ action_respond_info("printer['%s'] = %s" % (name1, printer[name1])) }
|
2020-08-09 15:29:55 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|