printer: use voron-tap instead of magprobe
This commit is contained in:
parent
1a502753ea
commit
0dd6d6b370
8 changed files with 57 additions and 938 deletions
|
|
@ -22,9 +22,10 @@
|
|||
gcode:
|
||||
{% set x0=250 %}
|
||||
{% set x1=200 %}
|
||||
{% set y0=308 %}
|
||||
{% set y0=printer.toolhead.axis_maximum.y %}
|
||||
{% set z0=1.0 %}
|
||||
{% set z_hop = printer['gcode_macro _USER_VARIABLE'].z_hop|int %}
|
||||
# {% set z_hop = printer['gcode_macro _USER_VARIABLE'].z_hop|int %}
|
||||
{% set z_hop = 10 %}
|
||||
{% if "xyz" in printer.toolhead.homed_axes %}
|
||||
G0 Z{z_hop} F1000 # move Z to travel height
|
||||
G0 X{x0} Y{y0} F6000 # move to x0/y0
|
||||
|
|
@ -99,9 +100,9 @@ gcode:
|
|||
{% if z_safe > z_max %}
|
||||
{% set z_safe = z_max %}
|
||||
{% endif %}
|
||||
G91
|
||||
G91 # use relative coordinates
|
||||
G0 Z{z_safe} F1200
|
||||
G90
|
||||
G90 # use absolute coordinates
|
||||
G0 X{x_park} Y{y_park} F6000
|
||||
{% else %}
|
||||
M118 printer not homed
|
||||
|
|
@ -126,12 +127,12 @@ gcode:
|
|||
{% if printer.extruder.can_extrude %}
|
||||
G1 E-1.0 F1500.0
|
||||
{% endif %}
|
||||
G90
|
||||
G90 # use absolute coordinates
|
||||
SAVE_GCODE_STATE NAME=PAUSE_state
|
||||
_PAUSE_BASE
|
||||
G91
|
||||
G91 # use relative coordinates
|
||||
G1 Z{z_safe} F900
|
||||
G90
|
||||
G90 # use absolute coordinates
|
||||
G0 X{x_park} Y{y_park} F6000
|
||||
{% else %}
|
||||
M117 already paused
|
||||
|
|
@ -155,7 +156,7 @@ gcode:
|
|||
M118 CONFIGURING
|
||||
SET_GCODE_OFFSET Z=0.0 # reset z offset
|
||||
M140 S{BED} # start bed heating to bed
|
||||
M104 S{EXTRUDER} # start extruder heating
|
||||
# M104 S{EXTRUDER} # start extruder heating
|
||||
G92 E0 # reset extruder
|
||||
G21 # set units to millimeters
|
||||
G90 # use absolute coordinates
|
||||
|
|
@ -180,14 +181,9 @@ gcode:
|
|||
M118 BED MESH LOAD {SHEET}
|
||||
BED_MESH_PROFILE LOAD={SHEET}
|
||||
{% endif %}
|
||||
# CALIBRATE_Z
|
||||
M117 CALIBRATE_Z
|
||||
M118 CALIBRATE_Z
|
||||
# G28 Z # irrelevant?
|
||||
BRUSHIE
|
||||
CALIBRATE_Z
|
||||
|
||||
G92 E0 # reset extruder
|
||||
G92 E0 # reset extruder
|
||||
G90 # use absolute coordinates
|
||||
NOTIFY_BED BED={BED}
|
||||
M190 S{BED} # set and wait for actual bed temperature
|
||||
M109 S{EXTRUDER} # set and wait for extruder temperature
|
||||
|
|
@ -230,7 +226,8 @@ gcode:
|
|||
{% set x1=params.x1|default(200) %}
|
||||
{% set y0=params.y0|default(2) %}
|
||||
{% set y1=params.y1|default(3) %}
|
||||
{% set z_hop = printer['gcode_macro _USER_VARIABLE'].z_hop|int %}
|
||||
# {% set z_hop = printer['gcode_macro _USER_VARIABLE'].z_hop|int %}
|
||||
{% set z_hop = 10 %}
|
||||
M118 purge nozzle
|
||||
G0 Z{z_hop} F300 # move Z to travel height
|
||||
G0 X{x0} Y{y0} F5000 # move to x0/y0
|
||||
|
|
@ -239,7 +236,7 @@ gcode:
|
|||
G0 Y{y1} # move to y1
|
||||
G0 X{x0} E10 # draw fine line
|
||||
G0 X{x0-10} # move a little further
|
||||
G0 E-5 # retract filament
|
||||
# G0 E-5 # retract filament
|
||||
G0 Z{z_hop} F300 # move Z to travel height
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue