Flashing light with only one timer

winz33

Member
Join Date
Dec 2009
Location
ma
Posts
1
How do you have a light flash every two seconds (on 2s then off 2s) with only one timer? Thanks.
 
This sounds like a student question so I'll answer with questions to cause you to think your way through this.

Have you learned about timers and their respective parts (Preset, Accumulated or Current Value)?

Have you learned anything about using numeric comparisons in ladder logic?

Try those for hints.
 
bernie carlton's method is better than mine but here are some hints for a different method that doesn't use numeric comparison instructions. Search how a flip-flop is programmed in ladder logic. Here's a link to a flip-flop explanation:
http://www.patchn.com/index.php?option=com_content&task=view&id=60&Itemid=74
Use that and a logic rung with a free running (Self-resetting) timer.Use that timer to trigger the flip-flop.

Edit: Steve Bailey types faster than me.
 
Last edited:
moz-screenshot.png
moz-screenshot-1.png
moz-screenshot-2.png
moz-screenshot-3.png
Here is an example in RSLogix 500.

ex.jpg
 
Consider the binary pattern of the value stored in the accumulator of a one second time base timer.

T = 0 = 000000
T = 1 = 000001
T = 2 = 000010
T = 3 = 000011
T = 4 = 000100
T = 5 = 000101
T = 6 = 000110
T = 7 = 000111
T = 8 = 001000

The light will be off for T= 0 and 1. It will be on for T= 2 and 3. Off for T=4 and 5, on for T=6 and 7. Now look carefully at the binary values. Do you see a pattern that you can use?

Assuming you are using an AB PLC, you can address any bit in the timer acc. T4:0.ACC/0 refers to the first bit. T4:0.ACC/1 refers to the second bit, etc.

T4:0.ACC/1
----] [-----
 
Last edited:
Based on Bernie and Alaric explanation. How about a traffic light programm with only one timmer.
 
In the enable line for the timer is its own 'done' (/DN) bit. It finishing the time will turn this ON which will reset the timer. When reset the 'done' bit will turn back off and the timer begins again.
 

Similar Topics

Hi Guys, I have a 1769-L24-QBFCB1 that has the OK light flashing on the embedded counter module. The manual states it is a resettable fault, but...
Replies
0
Views
104
I have a Micro820, yes I know they are hated. I have a brand new Micro820 that I programmed with a Micro SD Card. Once I got it programmed, I...
Replies
5
Views
884
Is there any way to recover a L33ER flashing red OK light or is it just a paper weight?
Replies
4
Views
2,161
Hello, I have built a panel with the following components in it. 5310 AB Panelview 5069-L306ER PLC 1606XLE120E power supply A circuit breaker...
Replies
4
Views
1,949
Hey guys, I'm super new to troubleshooting PLCs and was hoping I could get some guidance I've got a machine I'm commissioning and it's kind of a...
Replies
27
Views
10,530
Back
Top Bottom