Using OSR storage bit for XIC?

Join Date
Jul 2017
Location
Michigan
Posts
21
Hi folks, first post so be kind.

I'm adding a vision inspection system to a toggle press and in the toggle press program they are using an OSR storage bit as an XIC in two other rungs later in the main LAD2 program. I'm not sure how effective this is, and I suspect it has to do with the light curtain.

I just wanted to know everyone's thoughts on this, thanks.
 
Last edited:
This is from the Instruction Help in RSLogix5000:

"Description

When true and the storage bit is false, the OSR sets the output bit to true. When true and the storage bit is true, the OSR clears the output bit to false. When false, the ONS clears the storage bit and the output bit to false."

The Output Bit and the Storage Bit are not the same (they will have different states, the Output Bit can be false when the Storage Bit is true).

I've never seen this done before but I don't think you can just replace the Storage Bit XIC with the Output Bit in the logic, I would try to test the logic a few times to see if you can understand why this was done.
 
It looks like they are piggybacking off the OSR so they don't have to write to a seperate bit. Has to do with the light curtain mostly.

It turns out that I was able to fix my problem, and that I had caused it. I piggybacked the vision system permissive stuff on old prox sensor code, but I shouldn't have added it into the setup mode. I couldn't get the machine to run in setup without having a part in place. Whoops.

Got it all squared away now. Thanks!
 
What brand PLC?

if ab, it won't work 100% of the time.
I accidently had 2 osr bits of the same (B3/21) for example in a slc 500.
rarely worked, found the error and made a second osr bit and all is well, machine hasn't stopped yet.

just my experience.
james
 
It's an AB Mircologix 1000. They One Shot just about every command in the program, and even ones they didn't they took the input and stored it as a bit, then XIC the bit for the output.

I can see that it's a good thing, to keep the contacts from bouncing, but then they pulled some OSR storage bits as XIC inputs and didn't label them.
 
I think this falls under "being too tricky for your own good". The storage bit for a OSR follows the status of the rung up to the OSR. But you should probably insert an OTE and use XIC and XIO off that address instead. The original author was "saving an OTE".
 
It's an AB Mircologix 1000

HMMM?

A ML1000's "OSR" instruction does not have a storage bit.

The ML1000 like the SLC500 series of controllers only have the "OSR" instruction which is just like the "ONS" instruction in other controllers.

The "OSR" instruction in the ML1100,1200,1400, and 1500 do have an "OSR" instruction which does have a storage bit.

Post your .rss file if you can ( zip it first).
 
Last edited:

Similar Topics

Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
2
Views
28
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
6
Views
145
Hi, I'm trying to use the IO Device Library (Product Versions) which is configured to work with the 1756-EN4TR & 1756-EN2TR but my system uses...
Replies
0
Views
48
Hello, As part of our project, we are using an M241 controller. This controller interfaces with an industrial computer and a router via a switch...
Replies
2
Views
91
I'm trying to write a data in Arduino using MODWR function block .I used the code I got from online for both PLC and Arduino. I made the wiring...
Replies
4
Views
90
Back
Top Bottom