1/28/2013 10:07 AM | |
Posts: 1 Rating: (0) |
any answers please. |
1/28/2013 2:21 PM | |
Posts: 40 Rating: (1) |
Hello Ganes10, please have a look on the following FAQ: http://support.automation.siemens.com/WW/view/de/57374718 Maybe it would be helpful in some sense. Greetings |
1/28/2013 2:47 PM | |
Joined: 8/31/2010 Last visit: 4/14/2024 Posts: 1509 Rating: (222) |
Hello mika09, But this don't seem to have anything to do with counting the number of bits in a byte / word / Dword other than addressing the symbolic tags individually. |
Like it? Rate it! |
|
12/15/2021 4:51 PM | |
Joined: 7/7/2010 Last visit: 4/25/2024 Posts: 14629 Rating: (2349)
|
Why an FB? What memory or multi-instance capability is required? Here's the above FC code (without all the comments) as well as an algorithm that skips all 0 bits (meaning if there is just 1 set bit, it only runs through the loop one time!):
|
science guy |
|
Follow us on