优化机型版本内的文件为软连接
This commit is contained in:
parent
eb7988769e
commit
060cc93db9
@ -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"
|
|
1
config/CreatBot_D1000/1.1/door_detect.cfg
Symbolic link
1
config/CreatBot_D1000/1.1/door_detect.cfg
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../module/door_detect.cfg
|
@ -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"
|
|
1
config/CreatBot_D600Pro2/1.1/door_detect.cfg
Symbolic link
1
config/CreatBot_D600Pro2/1.1/door_detect.cfg
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../module/door_detect.cfg
|
Loading…
x
Reference in New Issue
Block a user