M400
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M107 ; turn off fan
G1 E-5 ; set extruder to 5mm for retract on print end
G1 X5 Y5 Z156 E0 F10000 ; move to cooling positioning
M190 S25 ; Set bed temperature to 25 and hold until it’s reached
M140 S0 ; turn off bed
G1 X145 Y175 Z156 F1000 ; move to finish positioning
M84 ; disable motors
Cura
M400
M104 S0 ; hotend off
M140 S0 ; heated bed heater off (if you have it)
M107 ; fans off
G92 E5 ; set extruder to 5mm for retract on print end
G1 X5 Y5 Z156 E0 F10000 ; move to cooling positioning
M190 R50 ; wait for bed to cool
M140 S0 ; shut off bed
G1 X145 Y175 Z156 F1000 ; move to cooling positioning
M84 ; steppers off
G90 ; absolute positioning
;{profile_string}
Hi I am trying to make the Cura ending script for the Lulzbot Mini work in S3D as even their default profile does not have the complete script. The problem I am having is that everything works until it reaches the M190 Command, the printer does not wait for the bed to cool down and then proceed to the other commands it just goes through all of them.
Here’s one of the end scripts I have in my S3D profile for the mini:
M400 ; wait for operations to complete
M104 S0 ; hotend off
M140 S0 ; bed heater off
M107 ; fans off
G92 E0 ; set extruder to 0
G1 E-2 F300 ; retract a bit to relieve pressure
G1 X80 Y1 Z159 F10000 ; move to cooling position
M190 R50 ; Set and wait for PEI BED REMOVAL TEMP (ABS=50)
G1 X80 Y175 Z159 F1000 ; move to cooled position
M84 ; steppers off
G90 ; absolute positioning
G4 S7200 ; hold bed temp for 2 hours (s=time in seconds)
M140 S0 ; bed heater off
This script waits for the bed to cool and then moves it forward, like the CURA scripts do. It also “holds” the removal temp for 2 hours in case you aren’t right in front of the printer when it finishes.
I actually modified the S3D profile to allow a different start and end script for each material type, so I could have different temperatures in the start/end scripts for each material (the default S3D profiles use the same start/end script for every material). For more information on that modified S3D profile, and download links, check this post: https://forum.lulzbot.com/t/adjustable-heat-bed-glass-mount/38/1