A completion signal belongs to the first count that reaches the requested batch size. Using a larger-than comparison delays completion by one part, while a smaller preset releases the batch too soon. Keep the sensor held at the final part to prove that repeated scans do not create extra production events.
For a four-part training batch, Q remains false after three distinct arrivals and becomes true on the fourth. Keep the final sensor high for extra scans, then reset. The completion indication must clear with CV. A preset of three releases early; omitting reset leaves a completed batch carried into the next run.
Read the tag list and the requested sequence before editing.