Two rungs writing to one coil

fluoronator

Member
Join Date
Feb 2006
Location
North Alabama
Posts
14
I know this is a bad practice but what happens when you have two different rungs of logic that write to the same coil? Which rung wins if one is turning it off and the other is turning it on? Is it the one that is scanned last? I'm working with a SLC505.
 
in very basic terms, yes, the "last one" wins ...

why are you asking? ... just for general knowledge - or trying to make something work? ...

and welcome to the forum ...
 
A contractor installed a piece of equipment which included a PLC. I was just reviewing/commenting their logic and found a single coil being written from multiple rungs, wasn't sure how this would work.
 
Look at Ron's ladder signature.

You may get the reference.. To Be (2-b) or (logical OR) not (2-b).

If you had a coil at the far right (call it 'the question'..sorry had to.) you could say that the coil was being written by two rungs.

So now which run turns it on and which rung turns it off?


Brian.
 
I've seen it done with Set/Reset(latching) coils but never with a non latching output. While using multiple latches isn't my favorite method, I would consider what you are describing as being amateur at best! What would the justification be for this? If you have this many conditions required to turn on an output, use a continuation coil and finish on the next rung.

Using the multiple reference to a single output, the last one wins.
 
Are the rungs close to each other and/or in the same ladder? Or are they in separate ladders?

If in separate ladder or files then different conditions may control how the coil is activated.

Is is possible for you to create a report and print it to pdf so we can take a look too? You can get a free pdf program at www.pdf995.com.
 
Let me get this straight... in this situation (?) will always be on.
2-B
----+----] [----+----(?)-
| |
| 2-B |
+----]/[----+

In the next situation (?) will always follow the second rungs logic, the first rung does nothing.
2-B
----+----] [----+----(?)-

2-B
----+----]/[----+----(?)-

is this correct?
 
rsdoran said:
Are the rungs close to each other and/or in the same ladder? Or are they in separate ladders?

If in separate ladder or files then different conditions may control how the coil is activated.

Is is possible for you to create a report and print it to pdf so we can take a look too? You can get a free pdf program at www.pdf995.com.

Thanks for the pointer to the pdf software. I was looking for something like that.
 
as you're quickly finding out, "BASIC" answers usually aren't much good at all in this trade ... EVERYTHING needs to be handled at the "SPECIFIC" level ...

I'll go along with the others who have suggested posting your program file ... the more we know about your system, the better help we can offer ...
 
Yes, the last state will always win... The exception being if there are JMP/LBL instructions to bypass one set of logic or the other, or if they are in seperate conditionally executed subroutines.

In either event, it is in my opinion, an extremely bad practice to use such constructs as I have described above.
 
let's set the "should you?" or "shouldn't you?" debate aside for a minute ... if the machine is running "ok" with the extra "coils" in place, then I'd be willing to bet (pocket change only) that each one of those "coils" is located in a separate subroutine/ladder file - and that only one of those files is being scanned at a time ... this is a fairly common approach in programming ... I'm not saying that it's a good practice or a bad practice ... but I've seen it used many times ...

we'll know more as soon as we see that program ...
 

Similar Topics

Hi Guys, I just observed an error in inserting more than one LAD Rung in a Network; TIA Portal V17 and V13, and CPU is S7-314C-2PN/DP. 1. Is it...
Replies
22
Views
4,778
Good Morning , I should know this . I would like to import some rungs into a running ControlLogix PLC . Can you actually keep a...
Replies
3
Views
1,613
Good Morning , I went to edit a rung , and for some reason I can “ Accept Pending Rung Edits “ , but I can’t assemble rung . I...
Replies
17
Views
6,207
Sorry for these very basic questions, but I'm not a PLC programmer (per se): It appears that timers always seem to appear at the very end of a...
Replies
28
Views
10,385
A few months ago we had a issue with a 5/04 not working properly and when a compare was done it was found to have a rung missing in the 5/04. It...
Replies
3
Views
1,702
Back
Top Bottom