Hey guys!
Quick question to see if I am doing something the sloppy, hard way or if this is pretty much the only way to do something...
Lets say I have 10 bits (0->9, none in the same word of data) and they are mutually exclusive with one another.
Certainly I could say that
where each time one of the bits is true, it sets the others false. and do that 10 times, but that's a lot of rungs.
Is there a better way to do this? I know it probably depends on what environment I am in, but generally speaking is there some other process I am overlooking. For anyone that knows what this hardware is, I am using a Horner OCS product and developing some code in CScape...
Quick question to see if I am doing something the sloppy, hard way or if this is pretty much the only way to do something...
Lets say I have 10 bits (0->9, none in the same word of data) and they are mutually exclusive with one another.
Certainly I could say that
Bit 0
---||-------(R)--- Bit 2
--(R)--- Bit 3
--(R)--- Bit 4
--...--
--(R)--- Bit 9
where each time one of the bits is true, it sets the others false. and do that 10 times, but that's a lot of rungs.
Is there a better way to do this? I know it probably depends on what environment I am in, but generally speaking is there some other process I am overlooking. For anyone that knows what this hardware is, I am using a Horner OCS product and developing some code in CScape...