I am trying to create a timer that has an on time of 100ms and off time of 100s.
The timer would start with a start button and stop with a stop button.
This will require 2 timers. It might be clearer if you think of one time as the repetition rate and the other as the time it remains on. ie, A light comes on for 1 second every 10 seconds.
If you want to start something with a button and stop something with a button, why do you need a timer(s)?
Question only for Myhells
Here are two approaches.
To be clear, use either Rung 2 only or Rung 3 only; both together are not required.Rung 1 is the Start/Stop circuit and is used with either approach.
- Rung 2 is approach 1, using the TONOFF instruction
- Rung 3 is approach 2, using the TON instruction
We could also cascade two timers, as is done in the flasher pattern here.