Prayder said:
ok.... so where i find an OSR in the micrologix..... I would use a ONS in the ControlLogix?...
I would say no.
You appear to be converting from an SLC 500 or MicroLogix 1000/1100 controller, which only uses a single "Storage Bit" for OSR instructions.
For these older OSR instructions, the "Output Bit" does not exist, and the only "Output" it provides is its "rung-condition-out" to the next instruction on the rung. These OSR instructions are not output instructions, they are input instructions, and so must be placed before output instructions on a rung.
As Bernie pointed out, how the OSR instruction operates for the Logix controllers, and the MicroLogix 1200/1400/1500 controllers, is somewhat different.
For these newer OSR instructions, both the "Storage Bit" and an "Output Bit" are included in the OSR instruction. The "Storage Bit" is similar to the older OSR "Storage Bit". Any unique tag you create to store the current "rung-condition-in" for the OSR instruction can be assigned as the "Storage Bit".
On the output side, these OSR instructions provide both a "rung-condition-out", and an "Output Bit". These instructions are output instruction, and so can reside at the end of the rung. What you now have to do is assign another unique tag for the "Output Bit". This bit, or tag, is set true when the OSR is executed, and the "Storage Bit" is false. The "rung-condition-out" from the OSR is then set to true. If you do not use the "Output Bit", outside of the OSR instruction, the "rung-condition-out" will still enable the "rung-condition-in" for the next instruction on the rung, if there are any. So, you do not have to use the "Output Bit" anywhere else in the program if all you want the OSR instruction to do is enable the rest of the rung it resides on. In that case, you just have to assign a tag to the "Output Bit" for the program to verify.
However, the advantage of now having an "Output Bit" for an OSR instruction, is that anywhere apart from the OSR's rung that you also want the OSR to control, you can use the "Output Bit". So one OSR instruction can simultaneously "rung-condition-out" on its own rung, and control other rungs using its "Output Bit".
If you don't use the "Output Bit" outside of the OSR instruction, then it is effectively doing nothing.
So, when you convert to Logix controllers, using RSLogix 5000, or Logix Designer...
If you had a OneShotRising, and you still require a OneShotRising, then you should continue to use a OneShotRising. You just have to assign an extra "Output Bit" tag per instruction to verify, but do not have to use that tag elsewhere.
Attached is a screenshot of two examples - one just using the OSR to enable the rest of the rung, and the other using the "Output Bit" outside of the OSR instruction, on the next rung, to enable the same logic...
Regards,
George