Pulling from master.

This commit is contained in:
Bassam Husain
2023-04-18 08:02:11 -04:00
6 changed files with 223 additions and 12 deletions

View File

@@ -1,8 +1,9 @@
[force_move]
enable_force_move: True
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
# NOTE If you're using a Raspberry Pi, you can uncomment the next 2 lines, optionally.
# [temperature_sensor raspberry_pi]
# sensor_type: temperature_host
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
@@ -122,21 +123,30 @@ gcode:
{% set hotendtemp = params.HOTEND|int %}
{% set chambertemp = params.CHAMBER|default(0)|int %}
# Set safe speeds
{% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %}
{% set maxVelocityAdjusted = (0.90 * maxVelocity * 60)|int %}
{% set bedtempAlmost = (bedtemp - 2)|int %}
{% set hotendtempStepOne = 150|int %}
{% set hotendtempStepTwo = 170|int %}
BED_MESH_PROFILE LOAD=default ; NOTE if not using a mesh, comment out this line
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
G90
M140 S{bedtempAlmost} ; set & don't wait for bed temp
M104 S{hotendtempStepOne} ; set & don't wait for hotend temp
G28 X Y
# <insert your routines here>
M140 S{bedtemp} ; set & don't wait for bed temp
M104 S{hotendtemp} ; set & don't wait for hotend temp
M190 S{bedtempAlmost} ; set & wait for bed temp
M104 S{hotendtempStepTwo} ; set & don't wait for hotend temp
M190 S{bedtemp} ; set & wait for bed temp
# TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={chambertemp} ; wait for chamber temp
# <insert your routines here>
M109 S{hotendtemp} ; set & wait for hotend temp
# <insert your routines here>
G28 Z ; final z homing
BED_MESH_PROFILE LOAD=default
G1 Z20 F3000 ; move nozzle away from bed
M109 S{hotendtemp} ; set & wait for hotend temp
G1 X0 Y0 F{maxVelocityAdjusted}
G1 Z20 F3000 ; move nozzle away from bed
[gcode_macro PRINT_END]
gcode: