ONS vs OSR

Narlin

Lifetime Supporting Member
Join Date
Mar 2010
Location
phoenix
Posts
320
For a Micrologix Instruction set, would you please tell me why to choose ONS vs OSR.
Is there something that the ONS can do that the OSR cannot? Or vice-versa?
;
Here is what I already know.
Sort of YES. ONS is exclusively an INPUT, while OSR is exclusively an OUTPUT.
;
IF I want an output to execute 1 time and only when a switch comes on then:
This single instruction
;
--| Switch |-----| ONS |---------(output) ----
;
Does the same thing as these 2 instructions
;
--| Switch |--------------------------[ OSR B3:0/3 B3:0/4 ] ]--------
;
---| b3:0/4 |-----------------------(output)

What situation makes ONS preferred over OSR?

narlin
 
OSR is good for Multiple Situations. One Shot Relay is placed in program once and you can use the one shot bit many times. ONS use is one time only. The next one you use needs a different address or tagname. ONS checks the status of logic preceding it in that rung Only. It looks for the false to true transition there. The OSR is a Relay you put your logic in front of and it acts like any other coil. The only difference, it is only true for one scan and must see the false to true transition before reacting the 2nd time.
 
Last edited:
For a Micrologix Instruction set, would you please tell me why to choose ONS vs OSR.
Is there something that the ONS can do that the OSR cannot? Or vice-versa?
What situation makes ONS preferred over OSR?

The inline oneshot instructions and those that are block instructions on their own output branch are functionally very similar, and you can use them in nearly exactly the same way.

How does this answer his question?

Disagree with What?

If you wish to enlighten the OP by your prescan, postscan expertise then I'm sure he will appreciate your enlightenment.

But that was not the question.
 
Last edited:
How does this answer his question?

Disagree with What?

This:
OSR is good for Multiple Situations. One Shot Relay is placed in program once and you can use the one shot bit many times. ONS use is one time only. The next one you use needs a different address or tagname. ONS checks the status of logic preceding it in that rung Only. It looks for the false to true transition there. The OSR is a Relay you put your logic in front of and it acts like any other coil. The only difference, it is only true for one scan and must see the false to true transition before reacting the 2nd time.


cwal61 said:
If you wish to enlighten the OP by your prescan, postscan expertise then I'm sure he will appreciate your enlightenment.

Like I said, those are the functional differences that I know of. It's all explained in the links much better than I can do.

cwal61 said:
But that was not the question.

I guess I could expand on my answer by stating (true story) I prefer the inline oneshot because it is prettier.

They work the same except for prescan. If that's important to you, make it the basis of your choice, otherwise, pick the prettiest one.
 
Last edited:
Some of the confusion may be that Allen Bradley in their infinite wisdom decided to make 2 different kinds of "OSR"'s for different PLC's. See PDF's below.
 
This:

OSR is good for Multiple Situations. One Shot Relay is placed in program once and you can use the one shot bit many times. ONS use is one time only. The next one you use needs a different address or tagname. ONS checks the status of logic preceding it in that rung Only. It looks for the false to true transition there. The OSR is a Relay you put your logic in front of and it acts like any other coil. The only difference, it is only true for one scan and must see the false to true transition before reacting the 2nd time.
Sorry, I got kicked offline and ran out of edit time. I meant to add that you seem to point out that the instructions are very different, while I find them very similar. I know what you are probably visualizing and I get what you meant, but I just didn't agree with how it's worded, especially that red part.

I apologize for any offense I caused.
Paul
 
Thanks for your explanation.

This is what I was Thinking. But This from 5000 Help. I thought 500 was worked the same but I could be wrong. I have not installed 500 projects in a few years.
I thought that the difference is you can use 1 OSR to do 10 one shot task and it would take 10 ONS to do the same amount of tasks.

ps. it's all good.

OSR.jpg
 

Similar Topics

We have a vendor that loves ONS logic. It does ok as long as things run as expected. Well we all no nothing runs as expected for very long. If the...
Replies
3
Views
1,335
Hello, Can someone give me a practical examples of OSR and ONS in real life ? I know how it works but i need to know where we use it. Thank you.
Replies
6
Views
2,171
Hi, I'm using studio 5000. I'm trying to figure out the difference between OSR and ONS. Any small ladder example with explanation? Thank you,
Replies
1
Views
1,464
Hi guys, can anyone explain to me what is the difference between a one-shot and one-shot rising. I understand the ONS instruction but I don’t...
Replies
1
Views
8,836
I have been reading this site with great interest for a couple months. This group is a pretty amazing resource. I have particularly enjoyed the...
Replies
8
Views
22,871
Back
Top Bottom