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
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