Find most significant bit.

...also returns location 0 if no bits are set.

Oops, hadn't spotted that ...

Perhaps we need an AOI developed to do this ?


Logix500 processors (most of them) had an ENC instruction which would tell you the first bit set, but this was from lowest to highest bit.

So perhaps an AOI should have a parameter for which way to go, lowest to highest, or contra ....
 
Back when I hated myself and didn't leave space between step numbers, I would do 2 exponent step number and transfer that in a DINT, then I'd make a rung schematic of the sequence above the actual sequence to visualize, as well as for general usage because an EQU is bulky and you can put comments on individual DINT bits.

I've tried a bunch of methods to represent the step number via bits but there's none I like quite as much as that one. Unfortunately it's nowhere as good if you leave space between steps because then the link between step number and bit position is muddled.
 

Similar Topics

Hi , Where i can find Mitsubishi PLC Card end of line & replacement model details. i am looking for Q02CPU replacement model. Please advice. thanks
Replies
2
Views
126
I have tested every screen and no single screen individually has this fault pop up, but when I compile and send to the PanelView it comes up. If I...
Replies
4
Views
175
Hi, One of my customers has an old fabric tensile testing machine. The IC # AD7501KN of its controller has malfunctioned. This IC is related to...
Replies
1
Views
80
Hello everyone, I am a student and would like to take the next step and learn FactoryTalk (Batch preferably) and how to create HMIs etc. Would...
Replies
4
Views
492
Hi, Have a look at this picture... How can I find out the memory address of this tag? It was created by adding it to DB "Data_block_1", but I...
Replies
6
Views
1,058
Back
Top Bottom