The logic created thus far detects box size and quantity, both useful quantities for determining when a full pallet has been built.
Earlier, we had indicated that a full pallet consists of 4 small boxes or 4 large boxes. We will now set the C5:0 and C5:1 preset values to 4. That way, when the counters reach their preset value, we will know that a full pallet has been stacked and is ready for shrink-wrapping.
One of the most useful advanced instructions that is often used in packaging applications is the First In / First Out stack, also known as a FIFO.