wip
This commit is contained in:
parent
1e0d04f2ab
commit
c298263d94
6 changed files with 175 additions and 58 deletions
|
@ -7,6 +7,36 @@
|
|||
#####################################################################
|
||||
|
||||
|
||||
[gcode_macro xk]
|
||||
gcode:
|
||||
M117 xk
|
||||
M118 xk
|
||||
# M117 {quad_gantry_level.applied}
|
||||
# M118 {quad_gantry_level.applied}
|
||||
{% if printer['quad_gantry_level'] is not none %}
|
||||
M117 not none
|
||||
M118 not none
|
||||
{% if printer['quad_gantry_level'].applied %}
|
||||
M117 not none yes
|
||||
M118 not none yes
|
||||
{% endif %}
|
||||
{% else %}
|
||||
M117 not not none
|
||||
M118 not not none
|
||||
{% endif %}
|
||||
|
||||
{% if printer['quad_gantry_level'] is defined %}
|
||||
M117 defined
|
||||
M118 defined
|
||||
{% if printer['quad_gantry_level'].applied %}
|
||||
M117 defined yes
|
||||
M118 defined yes
|
||||
{% endif %}
|
||||
{% else %}
|
||||
M117 not defined
|
||||
M118 not defined
|
||||
{% endif %}
|
||||
|
||||
## Use:
|
||||
## - DUMP_PARAMETERS
|
||||
## - DUMP_PARAMETERS S='gcode_macro _USER_VARIABLE'
|
||||
|
|
|
@ -39,7 +39,7 @@ gcode:
|
|||
{% endif %}
|
||||
|
||||
|
||||
# # - CANCEL_PRINT
|
||||
# CANCEL_PRINT
|
||||
[gcode_macro CANCEL_PRINT]
|
||||
description: Cancel the actual running print
|
||||
rename_existing: _CANCEL_PRINT_BASE
|
||||
|
@ -50,6 +50,18 @@ gcode:
|
|||
PARK
|
||||
_CANCEL_PRINT_BASE
|
||||
|
||||
# LOAD_FILAMENT
|
||||
[gcode_macro LOAD_FILAMENT]
|
||||
description: extrude 100mm of filament
|
||||
gcode:
|
||||
G0 E100 F600 # speed 10*60
|
||||
|
||||
# UNLOAD_FILAMENT
|
||||
[gcode_macro UNLOAD_FILAMENT]
|
||||
description: retract 100mm of filament
|
||||
gcode:
|
||||
G0 E-100 F600 # speed 10*60
|
||||
|
||||
|
||||
[gcode_macro M600]
|
||||
description: Change filament
|
||||
|
@ -124,6 +136,7 @@ gcode:
|
|||
{% set PURGE=params.PURGE|default(0)|int %}
|
||||
{% set Z_ADJUST=params.Z_ADJUST|default(0.0)|float %}
|
||||
{action_respond_info("starting print BED=%d, EXTRUDER=%d, SHEET=%s, BMC=%d, PURGE=%d, Z_AJUST=%f" % (BED, EXTRUDER, SHEET, BMC, PURGE, Z_ADJUST))}
|
||||
{% set EXTRUDER_MIN=120 %}
|
||||
M117 CONFIGURING
|
||||
M118 CONFIGURING
|
||||
SET_GCODE_OFFSET Z=0.0 # reset z offset
|
||||
|
@ -162,7 +175,7 @@ gcode:
|
|||
|
||||
G92 E0 # reset extruder
|
||||
G90 # use absolute coordinates
|
||||
M104 S{EXTRUDER} # start extruder heating
|
||||
M104 S{EXTRUDER_MIN} # start extruder heating
|
||||
NOTIFY_BED BED={BED}
|
||||
M190 S{BED} # set and wait for actual bed temperature
|
||||
# final home z
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue