Hello good people,
Im implementing a so called "Top 10 Fails" in a indexer machine in the company and oh boy, I need help
You see, this Indexer machine has a register (N7:0) where its registered the indexer status, if its Idle, running, error etc. so in the index there is always a number from 0 to N, N being the number of states.
Then on the HMI, we have a LookUp table, with preprogramed strings that are asigned to each N7:0 value. Pretty normal i think.
What i want to do is, every time an error occurs i want to add a count to it, if error 100 has apeared, add 1 to the counter, then check the 10 errors with the highest counters, and move the numbers to a register that is being pointed in the HMI, (The HMI its no problem)
The think is, i dont know if i should have 200+ counters/rungs just to do this screen, plus i dont know if i can use a sort method on the PLC.
What do you recommend? Maybe some kind of structure where i have the error number and his counts or instead of counts just a numeric register. I dont know i need sugestions.
Thank you so much in advance,
if someone has question or if im not being clear enough feel free to reply i will be checking the post regularly.
PLC is SLC 5/03 and HMI C-More EA7-T8C
Im implementing a so called "Top 10 Fails" in a indexer machine in the company and oh boy, I need help
You see, this Indexer machine has a register (N7:0) where its registered the indexer status, if its Idle, running, error etc. so in the index there is always a number from 0 to N, N being the number of states.
Then on the HMI, we have a LookUp table, with preprogramed strings that are asigned to each N7:0 value. Pretty normal i think.
What i want to do is, every time an error occurs i want to add a count to it, if error 100 has apeared, add 1 to the counter, then check the 10 errors with the highest counters, and move the numbers to a register that is being pointed in the HMI, (The HMI its no problem)
The think is, i dont know if i should have 200+ counters/rungs just to do this screen, plus i dont know if i can use a sort method on the PLC.
What do you recommend? Maybe some kind of structure where i have the error number and his counts or instead of counts just a numeric register. I dont know i need sugestions.
Thank you so much in advance,
if someone has question or if im not being clear enough feel free to reply i will be checking the post regularly.
PLC is SLC 5/03 and HMI C-More EA7-T8C