Depending on end-user requirements, modular CPS (Carton Printing System) prints 1D or 2D data matrix codes on up to 400 folding cartons per minute. Camera system enables both codes to be checked on different carton qualities with maximum reliably, and products are automatically sorted out if data matrix codes' contrast and readability do not conform with required quality. Ability to connect to machine software and company IT in multi-level process ensures reliable serial number attribution.