CCW Timer

Hello,

I am new to PLC programming. I just got an AB Micro810 with the CCW software. 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.

Any help would be great.

Thanks
 
there is nothing new under the sun.

look at the Flasher pattern here. For the start and stop button look at the Start/Stop Circuit pattern.

PLC programming is primarily about time and the scan cycle is the clock. To understand the scan cycle see the video series here. Watch it until you understand it.

The rest is bookkeeping.
 
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.
 
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.

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
 
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.


It can be done with 1 timer too, using comparisons of the .ET member of the TON object.
 
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

I need the program to run some solenoids that require specific on/off times. The off button was to stop the program in case something were to go wrong and reset the timers.
 
Is the pattern repeating? I.e. solenoids 0=on 1=off for 100ms, then 0=off 1=on for 100ms, then back to the original 0=on 1=off for 100ms, etc.?

Do you know how to arrange logic to implement a repeating timer?

How accurate do the 100ms periods need to be?

Have you considered using a periodic task instead of timer(s)?
 
Here are two approaches.

  • Rung 2 is approach 1, using the TONOFF instruction
  • Rung 3 is approach 2, using the TON instruction
To be clear, use either Rung 2 only or Rung 3 only; both together are not required.
Untitled.png​
Rung 1 is the Start/Stop circuit and is used with either approach.

We could also cascade two timers, as is done in the flasher pattern here.
 
drbitboy, This is very helpful. I will try this after work.

Here are two approaches.

  • Rung 2 is approach 1, using the TONOFF instruction
  • Rung 3 is approach 2, using the TON instruction
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.

We could also cascade two timers, as is done in the flasher pattern here.
 

Similar Topics

I confess, I always have a little frustration trying to accomplish tasks in CCW that are simple in Studio 5000. My latest task is with timers...
5
Replies
2,324
Views
Hi, I've been lurking for about a month now and via the search, I've been able to string together a basic micro820/PV800 project. I've got a...
10
Replies
5,686
Views
Hello, I am new on a forum. I have some problem with programming of PLC Micro850 which i can't figure with use of help in Connected Components...
5
Replies
2,433
Views
G'day guys, Just wondering is anyone could help me out with this one, i've done some plc programming before but never on CCW. Trying to knock up...
4
Replies
4,643
Views
I still have to preface this with "I am a newbie". Fumbling my way through ladder logic in Micro820 using CCW software. I need to send a 24vdc...
3
Replies
3,365
Views
Top