Thanks to the digitalization of industry, maintenance is a trending topic. The amount of data available for analyses and optimizations in this field has increased considerably. In addition, there are more and more complex systems to maintain, and to keep all these devices in proper conditions, which requires maintenance management to gain efficiency and effectiveness. Within maintenance, Condition-Based Maintenance (CBM) programs can provide significant advantages, but often these programs are complex to manage and understand. The problem becomes more complex when equipment is analyzed in the context of a plant, where equipment can be more or less saturated, critical regarding quality, etc. Thus, this paper focuses on CBM optimization of a full industrial chain, with the objective of determining its optimal values of preventive intervention limits for equipment under economic criteria. It develops a mathematical plus discrete-event-simulation based model that takes the evolution in quality and production speed into consideration as well as condition based, corrective and preventive maintenance. The optimization process is performed using a Multi-Objective Evolutionary Algorithm. Both the model and the optimization approach are applied to an industrial case, where the data gathered by the IoT (Internet of Things) devices at edge level can detect when some premises of the CBM model are no longer valid and request a new simulation. The simulation performed in a centralized way can thus obtain new optimal values who fit better to the actual system than the existing ones. Finally, these new optimal values can be transferred to the model whenever it is necessary. The approach developed has raised the interest of a partner of the Deusto Digital Industry Chair.