Bed‑cleaning/object‑ejection script
I’ve got all the movement part working—I can handle that—but the issue is the waiting time.
I’ve run into the following problems:
The M190 R command seems to ship with a built‑in 15‑minute timeout on most installations, yet the bed needs nearly an hour to cool to 30 °C for a safe removal. Even adding the T (timeout) parameter is ignored. Re‑flashing the firmware without that timeout isn’t an option.
I then tried several scripting approaches but hit other issues.
The while‑loops that poll the bed temperature and don’t exit until it reaches 30 °C can’t run for more than X seconds before they’re flagged as infinite loops and the server kills them.
All the @wait options in Repetier‑Server are useless here because they only work while a print job is active.
So I’m out of options.
I even spun up a fresh ChatGPT instance loaded with the full manual—Server Commands, Computed Expressions, Firmware G‑codes, Regular Expressions, etc.—as its knowledge base, and it still couldn’t provide a satisfactory solution.
I believe this is a good opportunity to add native support in Repetier for this very useful feature (removing objects from the bed). In the meantime, I’d appreciate any ideas the developer might have on how to achieve it.
I can’t manage something as simple as: waiting for the bed to reach 30 °C before continuing with the rest of the instructions.
Comments
I’m sharing my custom ChatGPT version with all the documentation preloaded.
; Wait until the bed temperature drops below 30°C
@while [bedTemp] >= 30
; Print current bed temperature message
@echo Waiting for bed to cool below 30°C. Current temperature: [bedTemp]
; Wait for 10 seconds before checking again
G4 S10
@endwhile
; Temperature condition met
@echo Bed temperature is now below 30°C
Adjust the * 100 so it waits until you know you are close to target temperature and just catch the last degrees with M190.