The paper presents how an automated manufacturing system for the packaging of detergents can be modelled using Petri nets. The complexity of the Detergent Packing System and the high level of automation,require the use of efficient modelling and simulation methods to verify the validity of the solutions adopted. For this purpose, a modern modelling and simulation method based on Petri nets is used. The models associated with the system are developed into a hierarchical structure: the model of some modules in a line; the model of a line; system model as a whole. The model of a packing line consists of the following sub-modules corresponding to the modules of the line: filling the bags, grouping the bags in boxes, grouping the boxes in a row, palletizing, supplying with new empty pallets, full pallets evacuation. The six lines of the manufacturing system can work in various ways: they can pack detergent bags of the same mass or of different masses. Under these conditions, the operating mode is checked step by step, and the necessary adjustments can be done as to ensure continuous operation of the system without any blockages.