The purpose of this bachelor's degree project is to address the problem of automation of a storing system complex enough to be able to understand and manage the most important and critical aspects of the storage plant. The plant has been designed and built in a simulation program called Simumatik due to its obvious simplicity in comparison to what it would take to assemble it in the real plant.Therefore, some technical aspects have been integrated in connection with OPC-UA and with programming of CODESYS. Thus, a system with a variety of components has been proposed in aim to get as close as possible to a storing plant and a real distribution. The system includes ten conveyors. The bags are moved from the filling station to a door where the next operator take each bag.In turn, the resolution of the problem has been tackled from a realistic and general point of view so that all the final objectives of automation systems are achieved, such as the design and organization of a plant, control, and supervision.In general terms, the outcome of the final degree project is a deep analysis of current production, and a new storing processes with an automation solution and leveled production line as well. This automation would increase the flexibility of the operator as well as decrease the number of tasks of the operator and therefore it would be more efficient. The project begins by facing a problem in which the limitations are defined beforehand, which meets a complex and new requirement according to the development of a final degree project. This is equivalent to designing a storing plant with all the transport and distribution equipment in combination with sensors that provide information on the system.