AutomationTechBrian
Lifetime Supporting Member
I'm still a little remedial with my Step 7 classic knowledge. I'm working on in Simatic Manager 5.5, SP4, and I need a little insight of how to accomplish a simple shift of values through an array.
My idea: I would create a data block, create an Array [0..19]. When a trigger bit is high, a Real value would be moved into the [0] address from a Load Cell Input (after going through a scale block). When another bit is high, I need the values of the array to shift to the next position, with the [19] value to be discarded. To be clear, the [0] value would then be 0 until the trigger bit moves a new Real value into that cell. What is the command to shift the array values?
These values will used in a graph to give the operator a visual trend of batches of cement.
My idea: I would create a data block, create an Array [0..19]. When a trigger bit is high, a Real value would be moved into the [0] address from a Load Cell Input (after going through a scale block). When another bit is high, I need the values of the array to shift to the next position, with the [19] value to be discarded. To be clear, the [0] value would then be 0 until the trigger bit moves a new Real value into that cell. What is the command to shift the array values?
These values will used in a graph to give the operator a visual trend of batches of cement.