Hey guys,
I have a question on a cycle tracking array I'm trying to set up.
I need to have a floating good/bad ratio on the last 100 processes.
I was looking at using a BSL instruction over 4 DINTs. That works fine. But I need to go back and look at the bit level and calculate how many of the 100 bits are 1's and how many are 0's. The only way I can think of is to set up a long calculation in structured text but that feels like the hard way.
Any suggestions on the easy way?
I have a question on a cycle tracking array I'm trying to set up.
I need to have a floating good/bad ratio on the last 100 processes.
I was looking at using a BSL instruction over 4 DINTs. That works fine. But I need to go back and look at the bit level and calculate how many of the 100 bits are 1's and how many are 0's. The only way I can think of is to set up a long calculation in structured text but that feels like the hard way.
Any suggestions on the easy way?