F430NX切头时降平台
This commit is contained in:
@@ -436,6 +436,18 @@ gcode:
|
||||
ACTIVATE_EXTRUDER EXTRUDER=extruder
|
||||
SET_DUAL_CARRIAGE CARRIAGE=0
|
||||
|
||||
[gcode_macro _PLATFORM_LIFT]
|
||||
gcode:
|
||||
{% set distance = params.DISTANCE|default(0) %}
|
||||
{% set speed = params.SPEED|default(300) %}
|
||||
|
||||
{% if "z" in printer.toolhead.homed_axes %}
|
||||
SAVE_GCODE_STATE NAME=platform_lift_state
|
||||
G91
|
||||
G1 Z{distance} F{speed}
|
||||
RESTORE_GCODE_STATE NAME=platform_lift_state
|
||||
{% endif %}
|
||||
|
||||
[gcode_macro _PARK_extruder]
|
||||
gcode:
|
||||
ACTIVATE_EXTRUDER EXTRUDER=extruder
|
||||
@@ -458,6 +470,7 @@ gcode:
|
||||
{% set x_home = true %}
|
||||
{% endif %}
|
||||
{% if printer.toolhead.extruder != 'extruder' or x_home %}
|
||||
_PLATFORM_LIFT DISTANCE=1
|
||||
_PARK_{printer.toolhead.extruder}
|
||||
ACTIVATE_EXTRUDER EXTRUDER=extruder
|
||||
SET_DUAL_CARRIAGE CARRIAGE=0
|
||||
@@ -472,6 +485,7 @@ gcode:
|
||||
G90
|
||||
G1 X0 F6000
|
||||
RESTORE_GCODE_STATE NAME=park0
|
||||
_PLATFORM_LIFT DISTANCE=-1
|
||||
{% endif %}
|
||||
{% else %}
|
||||
PAUSE
|
||||
@@ -510,6 +524,7 @@ gcode:
|
||||
{% endif %}
|
||||
|
||||
{% if printer.toolhead.extruder != 'extruder1' or x_home %}
|
||||
_PLATFORM_LIFT DISTANCE=1
|
||||
_PARK_{printer.toolhead.extruder}
|
||||
ACTIVATE_EXTRUDER EXTRUDER=extruder1
|
||||
SET_DUAL_CARRIAGE CARRIAGE=1
|
||||
@@ -525,6 +540,7 @@ gcode:
|
||||
{% endif %}
|
||||
SET_GCODE_OFFSET Y={y_offset}
|
||||
SET_GCODE_OFFSET X={x_offset}
|
||||
_PLATFORM_LIFT DISTANCE=-1
|
||||
{% endif %}
|
||||
{% else %}
|
||||
PAUSE
|
||||
|
Reference in New Issue
Block a user