question about latching

infwinra

Member
Join Date
Oct 2009
Location
Arkansas
Posts
4
lets say i have a normally open push button and i want to use it to start a timer i know i need to use OTL to latch it on but im not sure what use for the output. i could latch on one of the output module's unused terminals but that just seems wrong somehow
 
You need to describe how you want this button to work in more detail.

When you push this button and it latches the output, is there another button to unlatch it? Does it unlatch after a few seconds? Does it unlatch as soon as you release it? Does it latch the output after a few seconds of holding the button?

xic b3:0/0 otl b3:0/1 is boring and doesn't do much once it is pressed..
 
there are two buttons one for latching and the other to unlatch so after the first button is pushed it stays latched until the other button is pressed
 
You don't really need to use the OTL instruction here. What you want to use is a seal-in branch.

If all you need is the timer, you don't even need an output.

Your logic will consist of an XIC of your one PB in series with an XIO of your second PB (assuming this second PB is also N.O....If it is N.C. which is common in start/stop circuits, use an XIC also). The end of your rung will be the timer (TON). You'll have a branch around the XIC of the 1st PB. The condition of this branch is XIC of the Timer.EN bit.

Now, when you press the start PB, the timer starts timing and the timer.EN bit is true which 'seals' in the start pb. Even when you release the start PB, the timer is still timing because the .EN bit is still high. Once the timer completes, you can use the Timer.DN bit elsewhere in your program. It will stay on until the Stop PB is pressed. If you want this to be a one time event, then you can change the seal in from the timer.en bit to timer.tt bit so that the circuit also unseals when the timer finishes.
 
gah i keep forgetting things... its an allen-bradely slc 5/02. the program is to run some lights to act like traffic lights, there are 4 timers and 6 lights the timers cascade then repeat until the stop button is pressed
 
gah i keep forgetting things... its an allen-bradely slc 5/02. the program is to run some lights to act like traffic lights, there are 4 timers and 6 lights the timers cascade then repeat until the stop button is pressed

In that case you will need an output just to say that you are in the 'run timer' mode.

XIC of your start PB with the XIO of your stop PB and an OTE of a B3 bit. The seal-in around the start PB is an XIC of the same B3 bit. When the start PB is pressed, the B3 bit comes on and is sealed on with the same bit until the stop PB is hit.

Now, use XIC of the same B3 bit to start your first timer. The .DN bit of the 1st timer starts the 2nd timer. The .DN bit of the 2nd timer starts the 3rd timer. The .DN bit of the 3rd timer starts the 4th timer. The .DN bit of the fourth timer use in the 1st timer rung in series with the XIC of the B3 bit so that when the 4th timer is done, the 1st timer's rung goes false and resets the 1st timer. This will in turn reset all the timers because each .DN bit goes false and the process starts over.
 

Similar Topics

Hi all. I have a beginner question about latching when using a single pole, single throw switch. In the attached image, I've hooked up a SPST...
Replies
15
Views
4,734
Hey guys. I am currently taking Intro to PLC class as one of the requirements for my certificate. Not really good at it and not planning to go any...
Replies
2
Views
1,286
I have been working on a new project and it requires using DirectSOFT 5 into the automation direct PLC(205). I would like to use some of the...
Replies
3
Views
4,922
Hi all, I've been reading up on latches vs seals. I am working with SLC500's. From what I understand, the only thing to be aware of regarding...
Replies
11
Views
5,583
Nubee question on latching and unlatching relays I have a customer with a Data center configured like below: What I am trying to do is: If...
Replies
1
Views
2,792
Back
Top Bottom