Monitor long G4 delay
-
I'm using G4 SX in my start gcode to allow the printer to soak for X number of minutes before a print is started to allow things such as bed to stabilise.
As these G4 SX periods are typically 15 or 30 minutes, while thats ongoing, I have no way of knowing how far through these delays the printer is.
It would be nice if there was an object model value that would show how far through the delay the printer is. I could then incorporate this into btncmd -
@jay_s_uk is there any reason why you can't replace the G4 command with a call to a delay macro? In that macro you could use a smaller delay within a loop, and in the loop update a global variable with the remaining time.
-
@dc42 that would probably work if I make the number of iterations configurable and have each loop last a second. I'll dig into that further
-
@jay_s_uk
You could use the delayed start code I have posted here as the basis.
Send your soak time as a parameter and it will report the time remaining at the intervals set.
You'd just have to call it after you set your temps instead of at the beginning of start.g like I have, as I want to avoid having heaters on during that delay.