Loops and Threads
Posted: Sat Jun 02, 2018 12:20 pm
Hi, I need to write a program to do intermittent Spray Mist Control. I thought of using a loop which can then pull the I/O pin low for Time A and wait for Time B before doing it again. Some questions:
1) I can start the loop as a forever loop but how do I stop it?
2) The loop needs to run at the same time as the Gcode interpreter and not wait for the completion of the loop
What would be the best way to do this?
Regards
1) I can start the loop as a forever loop but how do I stop it?
2) The loop needs to run at the same time as the Gcode interpreter and not wait for the completion of the loop
What would be the best way to do this?
Regards