Start G-code Omitted from Sliced G-code 2.8.0
 
Notifications
Clear all

Start G-code Omitted from Sliced G-code 2.8.0  

  RSS
chrischin
(@chrischin)
Trusted Member
Start G-code Omitted from Sliced G-code 2.8.0

In the attached PrusaSlicer 2.8.0 project I've replaced the M104 and M109 lines of the default MK3S printer Start G-code as follows:

M104 S{first_layer_temperature[0] - 50} ; set extruder temp minus 50 to avoid stringing during calibration
M109 S{first_layer_temperature[0] - 50} ; wait for extruder temp

That works well, as I see the reduced temperature in the resulting G-code after slicing. What doesn't work though is adding additional M104 and M109 commands after the "G1 Y-3" line, like so:

G1 Y-3 F1000 ; go outside print area
M104 S[first_layer_temperature] ; set extruder temp
M109 S[first_layer_temperature] ; wait for extruder temp
G92 E0

The resulting G-code is missing the second M104 an M109 commands. This issue happens with any commands, not just temperature. What's interesting is Compare Presets shows only the first M104 and M109 commands as different.

Best Answer by chrischin:

Turns out I was putting the second temperature commands after the first G1 Y-3 command, which is inside an if-statement 🙃 

This topic was modified 3 months ago by chrischin
Posted : 15/09/2024 1:35 pm
chrischin
(@chrischin)
Trusted Member
Topic starter answered:
RE: Start G-code Omitted from Sliced G-code 2.8.0

Turns out I was putting the second temperature commands after the first G1 Y-3 command, which is inside an if-statement 🙃 

Posted : 16/09/2024 12:38 am
Share: