Update 6.0.0
This commit is contained in:
parent
bb0b7539a0
commit
c8db437b79
63 changed files with 3667 additions and 737 deletions
|
@ -28,26 +28,72 @@ timeout: 600.0
|
|||
verbose: true
|
||||
|
||||
|
||||
[gcode_macro KLIPPER_BACKUP_CONFIG]
|
||||
[gcode_macro _KLIPPER_BACKUP]
|
||||
gcode:
|
||||
RUN_SHELL_COMMAND CMD=Klipper_Backup
|
||||
RESPOND TYPE=command MSG="action:prompt_end"
|
||||
|
||||
|
||||
[gcode_macro _KLIPPER_RESTORE]
|
||||
gcode:
|
||||
RUN_SHELL_COMMAND CMD=Klipper_Restore
|
||||
RESPOND TYPE=command MSG="action:prompt_end"
|
||||
|
||||
|
||||
[gcode_macro _MOONRAKER_BACKUP]
|
||||
gcode:
|
||||
RUN_SHELL_COMMAND CMD=Moonraker_Backup
|
||||
RESPOND TYPE=command MSG="action:prompt_end"
|
||||
|
||||
|
||||
[gcode_macro _MOONRAKER_RESTORE]
|
||||
gcode:
|
||||
RUN_SHELL_COMMAND CMD=Moonraker_Restore
|
||||
RESPOND TYPE=command MSG="action:prompt_end"
|
||||
|
||||
|
||||
[gcode_macro KLIPPER_BACKUP_CONFIG]
|
||||
description: Backup Klipper configuration files
|
||||
gcode:
|
||||
RESPOND TYPE=command MSG="action:prompt_begin Backup Klipper configuration files"
|
||||
RESPOND TYPE=command MSG="action:prompt_text Do you want to backup Klipper configuration files?"
|
||||
RESPOND TYPE=command MSG="action:prompt_footer_button CANCEL|RESPOND TYPE=command MSG="action:prompt_end"|error"
|
||||
RESPOND TYPE=command MSG="action:prompt_footer_button BACKUP|_KLIPPER_BACKUP|primary"
|
||||
RESPOND TYPE=command MSG="action:prompt_show"
|
||||
|
||||
|
||||
[gcode_macro KLIPPER_RESTORE_CONFIG]
|
||||
description: Restore Klipper configuration files
|
||||
gcode:
|
||||
RUN_SHELL_COMMAND CMD=Klipper_Restore
|
||||
RESPOND TYPE=command MSG="action:prompt_begin Restore Klipper configuration files"
|
||||
RESPOND TYPE=command MSG="action:prompt_text Do you want to restore Klipper configuration files?"
|
||||
RESPOND TYPE=command MSG="action:prompt_footer_button CANCEL|RESPOND TYPE=command MSG="action:prompt_end"|error"
|
||||
RESPOND TYPE=command MSG="action:prompt_footer_button RESTORE|_KLIPPER_RESTORE|primary"
|
||||
RESPOND TYPE=command MSG="action:prompt_show"
|
||||
|
||||
|
||||
[gcode_macro MOONRAKER_BACKUP_DATABASE]
|
||||
description: Backup Moonraker database
|
||||
gcode:
|
||||
RUN_SHELL_COMMAND CMD=Moonraker_Backup
|
||||
RESPOND TYPE=command MSG="action:prompt_begin Backup Moonraker database"
|
||||
RESPOND TYPE=command MSG="action:prompt_text Do you want to backup Moonraker database?"
|
||||
RESPOND TYPE=command MSG="action:prompt_footer_button CANCEL|RESPOND TYPE=command MSG="action:prompt_end"|error"
|
||||
RESPOND TYPE=command MSG="action:prompt_footer_button BACKUP|_MOONRAKER_BACKUP|primary"
|
||||
RESPOND TYPE=command MSG="action:prompt_show"
|
||||
|
||||
|
||||
[gcode_macro MOONRAKER_RESTORE_DATABASE]
|
||||
description: Restore Moonraker database
|
||||
gcode:
|
||||
RUN_SHELL_COMMAND CMD=Moonraker_Restore
|
||||
RESPOND TYPE=command MSG="action:prompt_begin Restore Moonraker database"
|
||||
RESPOND TYPE=command MSG="action:prompt_text Do you want to restore Moonraker database?"
|
||||
RESPOND TYPE=command MSG="action:prompt_footer_button CANCEL|RESPOND TYPE=command MSG="action:prompt_end"|error"
|
||||
RESPOND TYPE=command MSG="action:prompt_footer_button RESTORE|_MOONRAKER_RESTORE|primary"
|
||||
RESPOND TYPE=command MSG="action:prompt_show"
|
||||
|
||||
|
||||
[gcode_macro RELOAD_CAMERA]
|
||||
description: Reload camera service
|
||||
gcode:
|
||||
RUN_SHELL_COMMAND CMD=Reload_Camera
|
||||
|
||||
|
@ -56,9 +102,9 @@ gcode:
|
|||
description: Start Bed Leveling
|
||||
gcode:
|
||||
{% if 'PROBE_COUNT' in params|upper %}
|
||||
{% set get_count = ('PROBE_COUNT=' + params.PROBE_COUNT) %}
|
||||
{% set get_count = ('PROBE_COUNT=' + params.PROBE_COUNT) %}
|
||||
{%else %}
|
||||
{% set get_count = "" %}
|
||||
{% set get_count = "" %}
|
||||
{% endif %}
|
||||
{% set bed_temp = params.BED_TEMP|default(50)|float %}
|
||||
{% set hotend_temp = params.HOTEND_TEMP|default(140)|float %}
|
||||
|
@ -114,38 +160,6 @@ gcode:
|
|||
WAIT_TEMP_START
|
||||
|
||||
|
||||
[gcode_macro LUBRICATE_RODS]
|
||||
description: Distribute lubricant on Rods
|
||||
gcode:
|
||||
{% set min_speed = 3000 %} # Minimum speed in mm/min
|
||||
{% set max_speed = 18000 %} # Maximum speed in mm/min
|
||||
{% if printer.toolhead.homed_axes != "xyz" %}
|
||||
G28
|
||||
{% endif %}
|
||||
G1 Z50 F300
|
||||
{% set x_max = printer.toolhead.axis_maximum.x|int %}
|
||||
{% set y_max = printer.toolhead.axis_maximum.y|int %}
|
||||
{% set edge_offset_x = x_max * 0.05 %}
|
||||
{% set edge_offset_y = y_max * 0.05 %}
|
||||
{% set x_range = x_max - edge_offset_x %}
|
||||
{% set y_range = y_max - edge_offset_y %}
|
||||
{% set num_steps_x = (x_range / 10)|int %}
|
||||
{% set num_steps_y = (y_range / 10)|int %}
|
||||
{% set speed_increment_x = (max_speed - min_speed) / num_steps_x %}
|
||||
{% set speed_increment_y = (max_speed - min_speed) / num_steps_y %}
|
||||
{% set current_speed_x = min_speed %}
|
||||
{% set current_speed_y = min_speed %}
|
||||
{% for i in range(num_steps_x) %}
|
||||
G1 X{edge_offset_x + i * 10} Y{edge_offset_y} F{current_speed_x}
|
||||
G1 X{edge_offset_x + i * 10} Y{y_range} F{current_speed_x}
|
||||
{% set current_speed_x = current_speed_x + speed_increment_x %}
|
||||
{% endfor %}
|
||||
{% for j in range(num_steps_y) %}
|
||||
G1 Y{edge_offset_y + j * 10} X{edge_offset_x} F{current_speed_y}
|
||||
G1 Y{edge_offset_y + j * 10} X{x_range} F{current_speed_y}
|
||||
{% set current_speed_y = current_speed_y + speed_increment_y %}
|
||||
{% endfor %}
|
||||
|
||||
[gcode_macro WARMUP]
|
||||
description: Stress Test
|
||||
variable_maxd: 14142.14 ; = SQRT(2*maxy)
|
||||
|
@ -158,12 +172,8 @@ gcode:
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
{% set loop_cnt = max_loops %}
|
||||
{% if 'X_ACCEL_MAX' in params|upper %}
|
||||
{% set maxx = params.X_ACCEL_MAX|default(10000)|int %}
|
||||
{% endif %}
|
||||
{% if 'Y_ACCEL_MAX' in params|upper %}
|
||||
{% set maxy = params.Y_ACCEL_MAX|default(10000)|int %}
|
||||
{% endif %}
|
||||
{% set maxx = params.X_ACCEL_MAX|default(10000)|int %}
|
||||
{% set maxy = params.Y_ACCEL_MAX|default(10000)|int %}
|
||||
{% set max_x = (printer.toolhead.axis_maximum.x|int-5) %}
|
||||
{% set max_y = (printer.toolhead.axis_maximum.y|int-5) %}
|
||||
{% set loop_step_y = max_y//(loop_cnt-1) %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue