Print_start improvements.

This commit is contained in:
Bassam Husain
2023-04-17 00:42:57 -04:00
parent a71ba1569a
commit b051707f52

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
@@ -123,24 +124,28 @@ gcode:
# Set safe speeds
{% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %}
{% set maxVelocityAdjusted = (0.90 * maxVelocity * 60)|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{bedtemp} ; set & don't wait for bed temp
M104 S150 ; set & don't wait for hotend temp
M140 S{bedtempAlmost} ; set & don't wait for bed temp
M104 S{hotendtempStepOne} ; set & don't wait for hotend temp
G28 X Y
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
M104 S{hotendtemp} ; set & don't wait for hotend temp
G28 Z ; final z homing
G1 X0 Y0 F{maxVelocityAdjusted}
M109 S{hotendtemp} ; set & wait for hotend temp
G1 X0 Y0 F{maxVelocityAdjusted}
BED_MESH_PROFILE LOAD=default
G1 Z20 F3000 ; move nozzle away from bed
G1 Z20 F3000 ; move nozzle away from bed
[gcode_macro PRINT_END]
gcode: