Hello all,
I am trying to make an array so that each time a button on my touchscreen is pressed, my program records the date, time and a counter value of what I am recording into my micro 1100 PLC. I then want to be able to read the last 10 times that the button was pressed. I am using the FFL function (FIFO load) and writing the values of each that I am recording into seperate arrays. The issue I am running into is being able to display the last history of the values in order of the most recent history. Such as if I pushed the button today, todays history would be at the top of the list. All other history would be moved down one step.
My question is: is there any way to write a value to the beginning of an array and shift each array value over by 1, dropping off the right most value into the abyss?
I am trying to make an array so that each time a button on my touchscreen is pressed, my program records the date, time and a counter value of what I am recording into my micro 1100 PLC. I then want to be able to read the last 10 times that the button was pressed. I am using the FFL function (FIFO load) and writing the values of each that I am recording into seperate arrays. The issue I am running into is being able to display the last history of the values in order of the most recent history. Such as if I pushed the button today, todays history would be at the top of the list. All other history would be moved down one step.
My question is: is there any way to write a value to the beginning of an array and shift each array value over by 1, dropping off the right most value into the abyss?