
Linac Tech (Customer) asked a question.
How do I make a 10 second TON timer start counting again at 0 if the trigger button is pressed before the timer reaches the preset time. The code for my application works exactly as I need but I haven't quite figured out this part. This happens in the first 3 rungs of the attached program.
Thanks
Add an NC contact for X1 on rung 2. This will reset the timer anytime the button is pressed. It will not allow the timer to time if the button is held. If you need to avoid this you will need an additional rung before with a rising edge NO for X1 and a new coil output that you'll use as the NC on rung 2. This will prevent the timer from timing on the first scan after the button is pressed and will begin timing on the subsequent scan with a reset of the timer anytime the button is pressed again after being released.