printer switches off stepper motors @pause
Hi,
My problem:
Marlin firmware - Beltprinter - No Hardware Y-Endstop.
I am not sure where it comes from. However, I think it's in the printer's control, because I didn't find anything in the log file that causes the stepper motors to turn off on the Repetier side.
When I send a M17 it is not enough, because 5 seconds later the stepper motors are switched off.
My solution:
I thought I would write a loop that sends an M17 with 2 seconds pause until I change the condition to a value so that the loop is terminated.
However, loops that are longer than 30 seconds are automatically terminated (as the doku says). Now I was thinking of splitting it into two loops that trigger each other.
But I don't think this is a nice alternative or is there no other choice?
I would be grateful for any answer
with kind regards
What
Comments
Anyhow, server solution is easy. Do not use a while, but
@timedCall name timeoutMS function_name
In the function send M17 and if you are still pause run inside function the next @timedCall. This is important to not get exploding number of this, also giving all same name would replace existing timed calls.
So since you exit the function, but timed call is still active this is not within the 30sec rule and can last as long as you want/need.
So extending using M85 S432000 is better solution as it just works. You could increase it on pauses and reduce on pause end if you like it lower in other places.