Thomas Schmid
1a1f3b28b3
Move menu configuration into sperate file menu.cfg and incude it in main printer.cfg Signed-off-by: Thomas Schmid <tom@lfence.de>
194 lines
5.3 KiB
INI
194 lines
5.3 KiB
INI
### menu move 10mm ###
|
|
[menu __main __control __move_10mm]
|
|
type: list
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move 10mm
|
|
|
|
[menu __main __control __move_10mm __axis_x]
|
|
type: input
|
|
name: Move X:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.x}
|
|
input_min: {printer.toolhead.axis_minimum.x}
|
|
input_max: {printer.toolhead.axis_maximum.x}
|
|
input_step: 10.0
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 X{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_10mm __axis_y]
|
|
type: input
|
|
name: Move Y:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.y}
|
|
input_min: {printer.toolhead.axis_minimum.y}
|
|
input_max: {printer.toolhead.axis_maximum.y}
|
|
input_step: 10.0
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 Y{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_10mm __axis_z]
|
|
type: input
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move Z:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.z}
|
|
input_min: 0
|
|
input_max: {printer.toolhead.axis_maximum.z}
|
|
input_step: 10.0
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 Z{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_10mm __axis_e]
|
|
type: input
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move E:{'%+06.1f' % menu.input}
|
|
realtime: True
|
|
input: 0
|
|
input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
input_step: 10.0
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
M83
|
|
G1 E{menu.input} F240
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
### menu move 1mm ###
|
|
[menu __main __control __move_1mm]
|
|
type: list
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move 1mm
|
|
|
|
[menu __main __control __move_1mm __axis_x]
|
|
type: input
|
|
name: Move X:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.x}
|
|
input_min: {printer.toolhead.axis_minimum.x}
|
|
input_max: {printer.toolhead.axis_maximum.x}
|
|
input_step: 1.0
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 X{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_1mm __axis_y]
|
|
type: input
|
|
name: Move Y:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.y}
|
|
input_min: {printer.toolhead.axis_minimum.y}
|
|
input_max: {printer.toolhead.axis_maximum.y}
|
|
input_step: 1.0
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 Y{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_1mm __axis_z]
|
|
type: input
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move Z:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.z}
|
|
input_min: 0
|
|
input_max: {printer.toolhead.axis_maximum.z}
|
|
input_step: 1.0
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 Z{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_1mm __axis_e]
|
|
type: input
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move E:{'%+06.1f' % menu.input}
|
|
realtime: True
|
|
input: 0
|
|
input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
input_step: 1.0
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
M83
|
|
G1 E{menu.input} F240
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
### menu move 0.1mm ###
|
|
[menu __main __control __move_01mm]
|
|
type: list
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move 0.1mm
|
|
|
|
[menu __main __control __move_01mm __axis_x]
|
|
type: input
|
|
name: Move X:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.x}
|
|
input_min: {printer.toolhead.axis_minimum.x}
|
|
input_max: {printer.toolhead.axis_maximum.x}
|
|
input_step: 0.1
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 X{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_01mm __axis_y]
|
|
type: input
|
|
name: Move Y:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.y}
|
|
input_min: {printer.toolhead.axis_minimum.y}
|
|
input_max: {printer.toolhead.axis_maximum.y}
|
|
input_step: 0.1
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 Y{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_01mm __axis_z]
|
|
type: input
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move Z:{'%05.1f' % menu.input}
|
|
realtime: True
|
|
input: {printer.gcode_move.gcode_position.z}
|
|
input_min: 0
|
|
input_max: {printer.toolhead.axis_maximum.z}
|
|
input_step: 0.1
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
G90
|
|
G1 Z{menu.input}
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
[menu __main __control __move_01mm __axis_e]
|
|
type: input
|
|
enable: {not printer.idle_timeout.state == "Printing"}
|
|
name: Move E:{'%+06.1f' % menu.input}
|
|
realtime: True
|
|
input: 0
|
|
input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
|
|
input_step: 0.1
|
|
gcode:
|
|
SAVE_GCODE_STATE NAME=__move__axis
|
|
M83
|
|
G1 E{menu.input} F240
|
|
RESTORE_GCODE_STATE NAME=__move__axis
|
|
|
|
#--------------------------------------------------------------------
|