Change timer preset with button inputs

atomic10

Member
Join Date
Jun 2013
Location
Australia
Posts
11
Hi all. I am currently programming a Micrologix 1200 for a bike school and one of the requests that I have before me is to install push buttons to be able to speed up and slow down the timers controlling the traffic light cycles.

I figure the easiest way is to add 10 or subtact 10 seconds on the master timer preset with a press of the button, but as the rung remains true while the button is pressed, I get to a fault condition very quickly as it continues to add 10 until the button is release.

Sorry if this is an obvious question but my searching has found nothing; what is the simplest way to have it add/subtract 10 seconds with each button press?
 
*Facepalm* Much appreciated Steve. Have not used the one shot before so I was trying to use it in the ADD rung.. not the input where it should be.
 
Another option is to use the .DN bit of a self-resetting timer (or one of the S:4 clock bits) in place of the one-shot, to repeatedly add/subtract at a reasonable rate while the button is held. Saves having to press the button over and over when you want to make a large change.

If you do this, also add a short delay before initiating the auto-repeat function, similar to the key repeat delay on a computer keyboard.

🍻

-Eric
 
I get to a fault condition very quickly

You also may want to consider checking for limits before writing the value to a timer preset. A "LIM" ( Limit Test) instruction works best for this.
 
Last edited:

Similar Topics

So I have timers in an add-on instruction that work perfect, however I want to change the preset values in all of the instances at once (about 45...
Replies
2
Views
2,886
I have a micrologix 1400 connected to a panelview c200. How do I set it up to change a timers preset value via the screen?
Replies
3
Views
3,937
I'm trying to simply change a timer preset value from 100 to 500 (x .01 sec) using RSLogix 500. It allows me to highlight the value and type in...
Replies
5
Views
7,944
Hi all. I have a new project to intigrate 2 A/B PanelView Components with a MicroLogix 1400. Is it possible to change a timer preset in my Logix...
Replies
2
Views
2,295
Hi! i'm just wondering did there is any chance to change Set Time(TV) on Siemens plc timer without step 7 using c# or python if timer not set in...
Replies
1
Views
1,258
Back
Top Bottom