Produce a Large Array
Chapter 2
Rockwell Automation Publication 1756-PM011J-EN-P - February 2018
41
6.
Enter this logic.
When the offset value in array_ack[0] is not equal to the current offset value but array_ack[1] equals -999, the consumer has
begun to receive a new packet, so the rung moves -999 into the last element of the packet. The consumer waits until it receives
the value -999 before it copies the packet to the array. This guarantees that the consumer has new data.