This paper presents the modelling and control of a flexible manufacturing system with integrated Industry 4.0 concepts using Petri nets. The flexible manufacturing system is composed of 7 workstations that ensure the assembly and disassembly of two types of products on two parallel production processes. The two parallel processes, in-line and in-cell production processes, ensure the assembly of the products and disassembly of the defects with a minimal number of stations. wo types of controls, local and centralized, are implemented in the control of production processes. The local control, based on the PLCs of each station, ensures the control of the assembly process at the workstation level. The centralized control ensures the obtaining of desired results at the level of interaction between the stations and also the implementation of the optimization algorithm results. To better understand and develop the control of the system a Petri net model was developed. Based on the properties of the Petri nets was possible to simulate and verify the assembly process and data flow inside the flexible manufacturing system. The developed model also ensures no bottlenecks at the data transmission and processing of the production information from the client to the production hardware.