From 060cc93db9bca61605a7dc76be89ba9f994db3aa Mon Sep 17 00:00:00 2001 From: zhang kaike Date: Wed, 7 May 2025 08:54:38 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=BA=E5=9E=8B=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=86=85=E7=9A=84=E6=96=87=E4=BB=B6=E4=B8=BA=E8=BD=AF?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/CreatBot_D1000/1.1/door_detect.cfg | 33 +------------------- config/CreatBot_D600Pro2/1.1/door_detect.cfg | 33 +------------------- 2 files changed, 2 insertions(+), 64 deletions(-) mode change 100644 => 120000 config/CreatBot_D1000/1.1/door_detect.cfg mode change 100644 => 120000 config/CreatBot_D600Pro2/1.1/door_detect.cfg diff --git a/config/CreatBot_D1000/1.1/door_detect.cfg b/config/CreatBot_D1000/1.1/door_detect.cfg deleted file mode 100644 index bbafd803f..000000000 --- a/config/CreatBot_D1000/1.1/door_detect.cfg +++ /dev/null @@ -1,32 +0,0 @@ -[gcode_button _door_detection] -pin: DOOR_PIN -press_gcode: -release_gcode: - {% set sv = printer.save_variables.variables %} - {% set door_function = sv.door_detect|default("Disabled") %} - {% if door_function != "Disabled" %} - M118 Printer door is opening! - {% endif %} - _DOOR_DETECTION_HANDLE STATUS='open' - -[gcode_macro _DOOR_DETECTION_HANDLE] -gcode: - {% set sv = printer.save_variables.variables %} - {% set door_function = sv.door_detect|default("Disabled") %} - {% set status = params.STATUS|default("close") %} - {% set printing_state = printer.print_stats.state %} - {% if status=='open' and printing_state == 'printing' %} - {% if door_function == 'Emergency Stop' %} - M112 - {% elif door_function == 'Pause Print' %} - PAUSE - {% endif %} - {% endif %} - -[gcode_macro _DOOR_START_PRINT_BASE] -description: Call handle door is open when starting to print -gcode: - RESPOND TYPE=command MSG="action:prompt_begin" - RESPOND TYPE=command MSG="action:prompt_text Printer door is opened. Please close the door and then start printing." - RESPOND TYPE=command MSG="action:prompt_footer_button Ok|RESPOND TYPE=command MSG=action:prompt_end" - RESPOND TYPE=command MSG="action:prompt_show" diff --git a/config/CreatBot_D1000/1.1/door_detect.cfg b/config/CreatBot_D1000/1.1/door_detect.cfg new file mode 120000 index 000000000..7f384b926 --- /dev/null +++ b/config/CreatBot_D1000/1.1/door_detect.cfg @@ -0,0 +1 @@ +../../module/door_detect.cfg \ No newline at end of file diff --git a/config/CreatBot_D600Pro2/1.1/door_detect.cfg b/config/CreatBot_D600Pro2/1.1/door_detect.cfg deleted file mode 100644 index bbafd803f..000000000 --- a/config/CreatBot_D600Pro2/1.1/door_detect.cfg +++ /dev/null @@ -1,32 +0,0 @@ -[gcode_button _door_detection] -pin: DOOR_PIN -press_gcode: -release_gcode: - {% set sv = printer.save_variables.variables %} - {% set door_function = sv.door_detect|default("Disabled") %} - {% if door_function != "Disabled" %} - M118 Printer door is opening! - {% endif %} - _DOOR_DETECTION_HANDLE STATUS='open' - -[gcode_macro _DOOR_DETECTION_HANDLE] -gcode: - {% set sv = printer.save_variables.variables %} - {% set door_function = sv.door_detect|default("Disabled") %} - {% set status = params.STATUS|default("close") %} - {% set printing_state = printer.print_stats.state %} - {% if status=='open' and printing_state == 'printing' %} - {% if door_function == 'Emergency Stop' %} - M112 - {% elif door_function == 'Pause Print' %} - PAUSE - {% endif %} - {% endif %} - -[gcode_macro _DOOR_START_PRINT_BASE] -description: Call handle door is open when starting to print -gcode: - RESPOND TYPE=command MSG="action:prompt_begin" - RESPOND TYPE=command MSG="action:prompt_text Printer door is opened. Please close the door and then start printing." - RESPOND TYPE=command MSG="action:prompt_footer_button Ok|RESPOND TYPE=command MSG=action:prompt_end" - RESPOND TYPE=command MSG="action:prompt_show" diff --git a/config/CreatBot_D600Pro2/1.1/door_detect.cfg b/config/CreatBot_D600Pro2/1.1/door_detect.cfg new file mode 120000 index 000000000..7f384b926 --- /dev/null +++ b/config/CreatBot_D600Pro2/1.1/door_detect.cfg @@ -0,0 +1 @@ +../../module/door_detect.cfg \ No newline at end of file