job.file.pauseDuration does it get used anywhere ?
peter247 last edited by peter247
Have a go at switching off the heaters if it is in pause for too long with this code .
var time_now = state.upTime + 10 while var.time_now - state.upTime > 0 G4 P500 ; 500ms delay if state.status != "paused" break if state.status != "paused" echo "back to printing" else echo "Switch heater off"
Which looks to be working , but I've found this value in the object model "job.file.pauseDuration" which show how long the job is paused .
Does this get used to do something ?
@peter247 job.pauseDuration is only tracked so that when computing the print time so far, any pause time can be subtracted from the elapsed time.
peter247 last edited by
@dc42 Thank you , So it is a total of all the pause delays ? . No use for what I want to use it for then .
@peter247 Yes, that is correct.