awaege
Member
I am currently working in RSLogix 5000. I have a large data structure with the following general structure:
UDT[0]
UDT[1]
.... etc
Total there are 22 data-sets with the same structure and two UDT instances. One to store incoming data and one to analyze the previous data and store it.
After the data in UDT[0] is passed to UDT[1] I need to completely clear UDT[0] to prevent any lingering data to interfere with the calculations since the Data[90] may not always be completely filled.
I've been debating the best way to go about this. Using FLL instructions seems like it might work but with the current structure I would need many FLL insturctions to do the job.
Does anyone have any advice on how this might be most efficiently accomplished?
UDT[0]
Dataset1
Min
Max
Avg
Data[90]
Dataset2
Min
Max
Avg
Data[90]
Dataset3
... etcUDT[1]
.... etc
Total there are 22 data-sets with the same structure and two UDT instances. One to store incoming data and one to analyze the previous data and store it.
After the data in UDT[0] is passed to UDT[1] I need to completely clear UDT[0] to prevent any lingering data to interfere with the calculations since the Data[90] may not always be completely filled.
I've been debating the best way to go about this. Using FLL instructions seems like it might work but with the current structure I would need many FLL insturctions to do the job.
Does anyone have any advice on how this might be most efficiently accomplished?