spence144db
Member
I have a machine with a tag called SP_FLT[57] with a data type of DINT. Each bit in each DINT is a machine fault of some sort. I need a way to count all 1824 bits from files SP_FLT[0] up to SP_FLT[57] then sort them by number of times each fault occurred in an 8 hour day.
I think I can do the sorting and the hours, shift, day, and month code on my own without issue so Im not asking for help on that, but I do need help with a better way to count all the machine faults and not put in 1824 counters (one for each bit in the array)
I think I can do the sorting and the hours, shift, day, and month code on my own without issue so Im not asking for help on that, but I do need help with a better way to count all the machine faults and not put in 1824 counters (one for each bit in the array)