I'm trying to find a simpler solution to how we display tag history in our HMIs today. This isn't for trending just the last 3 results. Right now we're using MOV: MOV new to one, MOV one to two, etc. It's simple but clunky in ladder.
I wanted to try a FIFO array. Which I have working, except I'm not sure the best way to access the values. With FFL/FFU and an array of real[20]. Once the array is full, the latest 3 would be the 18, 17, and 16 entries correct? My issue is what options I have for when it's only half full or newly initialized.
I could be looking at this all wrong I was curious how other people might handle this.
I wanted to try a FIFO array. Which I have working, except I'm not sure the best way to access the values. With FFL/FFU and an array of real[20]. Once the array is full, the latest 3 would be the 18, 17, and 16 entries correct? My issue is what options I have for when it's only half full or newly initialized.
I could be looking at this all wrong I was curious how other people might handle this.