TheWaterboy
Lifetime Supporting Member + Moderator
I have an array of 100 DINTS and I need to count the BITS that are True.
I tried a nested FOR in Structured Text but it wouldn't allow the second nested var "Y" (i.e. MyDintArray[X].Y)
In a smaller set elsewhere I converted the DINT array to a single BOOL array and that worked. But a 3200 bit array seems like a bad idea at this moment. Any other ideas?
I tried a nested FOR in Structured Text but it wouldn't allow the second nested var "Y" (i.e. MyDintArray[X].Y)
In a smaller set elsewhere I converted the DINT array to a single BOOL array and that worked. But a 3200 bit array seems like a bad idea at this moment. Any other ideas?