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