Gcode Replacement
Hi! I am trying to use the gcode replacement tool from RepetierServerPro
I have a lot of gcode generated in my RS, (about 8gb)
I have changed some of my machines from stock heatbreakers to bimetal heatbreakers, this requires a change in printing temperature and I was trying to automate it
I found that my gcode looks something like this
M104 S195
M105
M109 S195
Then try going to: PrinterSettings/G-Codes/Remplacements:
In "Regular Expression" try putting ^M104 S195$
and in Gcode to Execute "M104 S205"
Same for M109 S195
But nothing happens, I don't understand where I'm failing
Comments
Expression: ^(M10[49]\s+.*S)(\d+.?\d*)(.*)$
Replacement
this cover M104 and M109 also with extra parameter and adds 10˚ for more then 50 so off still works correctly.
after that just cancel the print
I also attached the image of how I copied your code
https://photos.app.goo.gl/fhAU32hHryuhopMc7
Thanks
Since condition is anything above 50 gets 10 added yes 200 becomes 210. Worked for me. If you do want a uppe rlimit add a extra condition to the rule. @2 contains the temperate to set.
You can add a extra line like
M118 Changed
to see if it tried to replace at all. With sich changes it is alwazs the question if expression is not recogniced or if the replacement is not working for some reason.
https://photos.app.goo.gl/QuP9zJuJoUhPbMQc9
this shows me the console
However if you just want it for print jobs you can go to Printer Settings and add a offset to your extruder, which does this addition inside print jobs.
Reuploading does not fix the issue, this is a runtime replacement.