PrusaSlicer (2.7.1) changing M104 to M109 in custom "End G-code"
I am working on a custom profile for a Raise3D N2+. The end sequence for the N2+ uses M104. It needs to be M104 (M109 breaks the sequence). I add M104 as Custom G-code to my profile in PrusaSlicer, but it's changed to M109 in the output gcode file, which causes all sorts of issues and requires me to reset the printer multiple times at the end of each print. I know I can manually edit the .gcode file to replace the M109 with M104 AGAIN, but I think the slicer shouldn't change my custom gcode without my knowledge, as that kindof nullifies the whole point of "custom" gcode. It took me a while to figure out why my files sliced with PrusaSlicer were bugging out at the end of the print, but finally tracked it down to this.
Is there a way to prevent PrusaSlicer from changing my custom gcode? This has been pretty frustrating.
RE: PrusaSlicer (2.7.1) changing M104 to M109 in custom "End G-code"
maybe read tool tip for 'Start G-Code Options > Emit temperature commands automatically' ? (click on the image below to open it to see full tooltip)
See my GitHub and printables.com for some 3d stuff that you may like.
RE: PrusaSlicer (2.7.1) changing M104 to M109 in custom "End G-code"
OP is concerned with end g-code, so this setting shouldn't apply. In any case, I tried it myself and added M104 S50 to my end gcode, for the fun of it, and it emits properly into the generated gcode file. No improper substitution with M109.
Maybe you can upload a zip-compressed 3mf project file so we can see your settings and check if anything strange is going on? Are there any post-processing scripts you're running?
Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...
RE: PrusaSlicer (2.7.1) changing M104 to M109 in custom "End G-code"
Thanks for your help and trying it out. Knowing it was only happening on mine helped me find the issue. Turns out that in "Print Settings > Output Options > Other > G-code substitution" I had a substitution set to change M104 codes to M109. I don't remember setting that and don't know how it got there, but it's outputting the gcode as expected now that I removed the substitution.