The invention discloses a
system, a method and a program for delivering, sorting and packaging cigarettes. The
system comprises a sorting
machine and a
packaging machine, wherein the sorting mechanism of the sorting
machine is provided with a special cabinet for cigarette filling pieces. When the
system generates a bar cigarette code, the generated cigarette code is integral multiple of n. When the order of a customer is less than the integral multiple of n, the system makes automatic
complementation till the order of the customer approaches a value of the integral multiple of n. The complemented bar cigarette codes are uniform preset pseudo-codes, so as to form an order code section. With the special cabinet for cigarette filling pieces arranged in the forting mechanism, the system, the method and the program use cigarette filling pieces to complement orders less than the integral multiple of n of the orders to the integral multiple of n, print bar cigarette pseudo-codes generated by a control
host machine and deliver the cigarette filling pieces to a packing
machine for packing in an order sorting process, so the number of the bars of the cigarettes packed is the integral multiple of n, the packed cigarette bars are order, all in
square shape and contribute to transportation in stack and the cigarette cases and bars are not damaged.