The machine is set to the type and number of objects to be grouped in one packaging unit, as well as the size of the box blank. The machine is provided with an EAN code reader which is used to read a code printed on the box bank, for input to a program controller.