multiple outputs

stvsas

Member
Join Date
Feb 2004
Location
leominster, Ma
Posts
75
I had a minor argument with a fellow tech this afternoon about multiple outputs on a rung. It went something like this:

---|X1|---------------|--------------------------(Y0)

------|X2|----------------(Y1)
Y1 is "or'd" out with Y0 on the same rung. I have seen this on many rungs on this forum and see nothing wrong with it. My associate says that there should NEVER be more than 1 output per rung, ever. When I asked "Why?", he replied that it was bad practice. My question is: Who's right?
Does anyone have an opinion?
 
Like probably 90% of my answers....
It depends.

That being said, I often have multiple outputs per rung, provided the PLC supports such constructs. If the PLC does not, I often find I need to drive an internal bit with state logic, then use that bit to drive 'parallel' outputs.

Why? Two reasons come to mind right off the bat, one, I may need to drive several devices that have too much load for a single output, and I prefer not to use interposing relays if possible. (Light and Horn?)

Or, I may need to drive a DC and and AC output. (24V control enable and 115V solenoid?)

Or, I may want to update an HMI with the current status of an output. Directly reading the output table with an HMI is often inefficient, so I use an internal flag 'State' bit, and a physical output.

I don't see the practice as inherently 'Evil'. I use PLC's to accomplish tasks, in the most efficient manner possible. Using an internal state bit, to drive an output on a seperate rung incorporates many more instructions that are unnecessary.

Do I do it just because I can? No. I do it when the situation warrents it.

YMMV
 
Just a thought. I have seen lots of logic where the programmer is moving an entire word or more to the outputs on 1 rung.

That is multiple outputs on a rung.
 
I don't see much wrong with it, I think you meant it to be like this?

Lad.gif



But you also said..."or'd" to me a OR would be this X1 or X2 would make Yx true...:confused: but what ever... I also will write a alarm series like rdrast said, same as above but no X1, if needed


PS, how's the SEW working these days?
 
Depends what you're doing, if you have multiple outputs it may seem uneconomical as you've turned on or off more than one bit from the same logic.

BUT.

In sequencers, you may initiate different things in the same step and complete (reset) in different steps.

You can have multiple starts for different sequences.

Multiple resets.

Switching flags for logic and data bits for HMI/SCADA displays.

Some people like to switch an output and a seperate flag for internal use.

In answer to the question, its not bad practice, unless your using the same type of bits for identical purposes where one flag would do.
 
Wouldn’t bad practice rather constitute switching the same output in different rungs? I know this is a error I made when first starting to program plc code… :unsure:
 
In my opinion, If you have many outputs enabled by a (or some) conditions, then:

1- program-wise: it will be economical to combine all of them into one network to save space and to simplify the program.
2- Electrical-wise: I once had a problem that i energized many outputs at the same time which made the main circuit breaker (100A) to cut
icon10.gif
and on other project, the relay-feeding fuses were cut. So take care
icon4.gif
.
3- Programming-wise: I don't think it's a bad practice to enable many outputs in the same network
icon6.gif
.
 
AMAZINGAHMED said:
2- Electrical-wise: I once had a problem that i energized many outputs at the same time which made the main circuit breaker (100A) to cut
icon10.gif
and on other project, the relay-feeding fuses were cut. So take care
icon4.gif
.

For long conveying systems etc, it the norm to have a small delay between each output to ensure you don't strain or trip the power source.
 
It also helps with limiting “maximum demand”. I don’t know about other countries, but in South Africa we pay a rate according to the maximum demand, so if you spike early in month you pay that rate for the rest of the month.
 
Not that there is anything wrong in the above post with the nested JSR's but nesting takes a longer time to scan than if you were to use parallel branches.
 
LJBMatt said:
Not that there is anything wrong in the above post with the nested JSR's but nesting takes a longer time to scan than if you were to use parallel branches.

I thought nested and parallel branches were the same thing. Do you mean sequencial networks (segments).
 
In AB logic that is above there is a difference in appending a rung branch and extending a new branch down. I believe when adding a branch (nesting) you are limited to either 5 or 7 branches, but you don't have that limit when you extend a parallel branch.
 
Last edited:
In this example by extending branches making them parallel (on the same level, not nested) the rung will verify. It does take the processor more time to process a rung with nested branches as opposed to parallel branches.

legal.gif
 

Similar Topics

I have the control system that should control two blowers by one common input flow set point. I painted the simple picture, see the attachment...
Replies
7
Views
2,328
hey, I used the same output tag for two different rungs in the same routine & realised the output failed to energise.I have also tried using the...
Replies
5
Views
1,533
Hi, Does GX IEC Developer 7.04 have a option to enable multiple outputs using 1 input? Thanks
Replies
1
Views
1,338
hello.. I use S-315 to run plastic Extruder. There is heating zone with cooling fan to stabilize the temperature I have not found PID SIMO...
Replies
5
Views
5,693
Hey there, I have a PLC 5 in which I have outputs 1,5,6,and 11 stuck high. The LEDs on the card do not indicate the output is one, but there is...
Replies
4
Views
4,763
Back
Top Bottom