https://hdhosseini.com/courses/
In this topic, I will show you how to shift date in a buffer when a new data emerges in a memory. Change in memory is used as the decision point, if you need a binary signal as a command, please change the code to suit your case (it is done now).
I hope it helps.
Array programming FIFO in SCL | SIEMENS STEP 7
https://support.industry.siemens.com/...