1/28/2013 10:07 AM | |
Posts: 1 Rating:
|
any answers please. |
1/28/2013 2:21 PM | |
Posts: 40 Rating:
|
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: 1/9/2025 Posts: 1523 Rating:
|
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: 1/17/2025 Posts: 15541 Rating:
|
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