158 lines
No EOL
4.5 KiB
INI
158 lines
No EOL
4.5 KiB
INI
[gcode_macro LIGHT_ON]
|
|
description: Innenbeleuchtung einschalten
|
|
gcode:
|
|
SET_PIN PIN=caselight VALUE=1.0
|
|
|
|
[gcode_macro LIGHT_OFF]
|
|
description: Innenbeleuchtung ausschalten
|
|
gcode:
|
|
SET_PIN PIN=caselight VALUE=0.0
|
|
|
|
[gcode_macro LIGHT_STBY]
|
|
description: Innenbeleuchtung dimmen
|
|
gcode:
|
|
SET_PIN PIN=caselight VALUE=0.2
|
|
|
|
[gcode_macro G32]
|
|
description: Level, Gantry und Nozzle Park in der Front
|
|
gcode:
|
|
LIGHT_STBY
|
|
BED_MESH_CLEAR
|
|
G28
|
|
QUAD_GANTRY_LEVEL
|
|
G28
|
|
G0 X20 Y20 Z30 F3600
|
|
|
|
[gcode_macro PRINT_START]
|
|
description: Startmakro, vom Slicer aufgerufen
|
|
gcode:
|
|
G32 ; home all axes
|
|
LIGHT_ON ; turn lights on
|
|
SET_TEMPERATURE_FAN_TARGET TEMPERATURE_FAN=Chamber TARGET=30
|
|
HYPERLAPSE ACTION=START
|
|
|
|
[gcode_macro CANCEL_PRINT]
|
|
description: Druck abbrechen
|
|
rename_existing: BASE_CANCEL_PRINT
|
|
gcode:
|
|
CLEAR_PAUSE
|
|
TURN_OFF_HEATERS
|
|
SDCARD_RESET_FILE
|
|
G92 E0 ; zero the extruder
|
|
G1 E-5.0 F3600 ; retract filament
|
|
G91 ; relative positioning
|
|
G1 Z50 F3000 ; move nozzle up 50mm
|
|
G90 ; absolute positioning
|
|
G0 X20 Y20 F3600 ; park nozzle at front for maintenance
|
|
BED_MESH_CLEAR
|
|
M18 ; Disable all steppers
|
|
M107 ; turn off fan
|
|
LIGHT_STBY ; turn lights to standby
|
|
SET_TEMPERATURE_FAN_TARGET TEMPERATURE_FAN=Chamber TARGET=0 ;Case Fan abschalten
|
|
SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=0
|
|
BASE_CANCEL_PRINT
|
|
HYPERLAPSE ACTION=STOP
|
|
LIGHT_STBY
|
|
;TIMELAPSE_RENDER
|
|
|
|
[gcode_macro PRINT_END]
|
|
description: Endmakro, vom Slicer aufgerufen
|
|
gcode:
|
|
M400 ; wait for buffer to clear
|
|
G92 E0 ; zero the extruder
|
|
G1 E-5.0 F3600 ; retract filament
|
|
G91 ; relative positioning
|
|
G0 Z5.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
|
|
TURN_OFF_HEATERS
|
|
G1 Z2 F3000 ; move nozzle up 2mm
|
|
G90 ; absolute positioning
|
|
G0 X20 Y20 F3600 ; park nozzle at front for maintenance
|
|
BED_MESH_CLEAR
|
|
M18 ; Disable all steppers
|
|
M107 ; turn off fan
|
|
LIGHT_OFF ; turn lights off
|
|
SET_TEMPERATURE_FAN_TARGET TEMPERATURE_FAN=Chamber TARGET=0 ;Case Fan abschalten
|
|
HYPERLAPSE ACTION=STOP
|
|
;TIMELAPSE_RENDER
|
|
|
|
[gcode_macro PAUSE]
|
|
description: Druck pausieren
|
|
rename_existing: BASE_PAUSE
|
|
gcode:
|
|
{% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %}
|
|
{% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
|
|
{% set max_z = printer.toolhead.axis_maximum.z|float %}
|
|
{% set act_z = printer.toolhead.position.z|float %}
|
|
{% if act_z < (max_z - 5.0) %}
|
|
{% set z_safe = 5.0 %}
|
|
{% else %}
|
|
{% set z_safe = max_z - act_z %}
|
|
{% endif %}
|
|
G92 E0
|
|
G1 E-1.0 F1500.0
|
|
G90
|
|
SAVE_GCODE_STATE NAME=PAUSE_state
|
|
BASE_PAUSE
|
|
G91
|
|
G1 Z{z_safe} F900
|
|
G90
|
|
G0 X{x_park} Y{y_park} F6000
|
|
LIGHT_STBY
|
|
|
|
[gcode_macro RESUME]
|
|
description: Druck wieder aufnehmen
|
|
rename_existing: BASE_RESUME
|
|
gcode:
|
|
LIGHT_ON
|
|
{% if printer["gcode_macro ERCF_PAUSE"].is_paused|int != 0 %}
|
|
M118 You can't resume the print without unlocking the ERCF first.
|
|
M118 Run ERCF_UNLOCK and solve any issue before hitting Resume again
|
|
{% else %}
|
|
RESTORE_GCODE_STATE NAME=PAUSE_state
|
|
G90
|
|
{% if printer["gcode_macro ERCF_VAR"].clog_detection|int == 1 %}
|
|
SET_FILAMENT_SENSOR SENSOR=encoder_sensor ENABLE=1
|
|
{% endif %}
|
|
BASE_RESUME
|
|
{% endif %}
|
|
|
|
|
|
[gcode_macro UNLOAD_FILAMENT]
|
|
description: Filament entladen (muss noch angepasst werden)
|
|
gcode:
|
|
M109 S235
|
|
M83
|
|
G1 E15 F300
|
|
G1 E-860 F1800
|
|
M82
|
|
G92 E0
|
|
|
|
[gcode_macro LOAD_FILAMENT]
|
|
description: Filament laden (muss noch angepasst werden)
|
|
gcode:
|
|
M109 S235
|
|
M83
|
|
G1 E760 F1800
|
|
G1 E30 F300
|
|
G1 E-10 F1800
|
|
M82
|
|
G92 E0
|
|
|
|
[gcode_macro QUERY_BME680]
|
|
description: Bauraumsensor abfragen
|
|
gcode:
|
|
{% set sensor = printer["bme280 Chamber"] %}
|
|
{action_respond_info(
|
|
"Temperature: %.2f C\n"
|
|
"Pressure: %.2f hPa\n"
|
|
"Humidity: %.2f%%\n"
|
|
"VOC Gas: %.2f" % (
|
|
sensor.temperature,
|
|
sensor.pressure,
|
|
sensor.humidity,
|
|
sensor.gas))}
|
|
|
|
[gcode_macro QUERY_ACC]
|
|
description: Beschleunigungssensor am Druckkopf abfragen
|
|
gcode:
|
|
ACCELEROMETER_QUERY |