An industrial PC (IPC) device comprising means for executing: a real time operating system (RTOS) ; a general-purpose operating system (GPOS) ; a control application running within the RTOS for generating control data (CD) and controlling an operation of a physical factory device in accordance with the generated control data (CD); a digital twin running within the GPOS for providing a digital copy of the physical factory device including a virtual control application for generating virtual control data (VCD) and a simulation application for simulating an operation of the physical factory device when it is controlled with the virtual control data (VCD) using the digital twin ; a real-time artificial intelligence (AI-R) application interacting with the control application for executing a first artificial intelligence algorithm (AI1), the first artificial intelligence algorithm (AI1) receiving physical factory device data (PD) and the control data (CD) as an input and providing first modification data (MD1) as an output, wherein the physical factory device data (PD) includes data indicative of the operation of the physical factory device , and wherein the control application is configured to modify the control data (CD) as a function of the first modification data (MD1); and a general-purpose artificial intelligence (AI-G) application interacting with the digital twin for executing a second artificial intelligence algorithm (AI2), the second artificial intelligence algorithm (AI2) using digital twin data (DD) and the virtual control data (VCD) as an input and providing second modification data (MD2) as an output, wherein the digital twin data (DD) includes data indicative of the simulation of the physical factory device using the digital twin , and wherein the virtual control application is configured to modify the virtual control data (VCD) as a function of the second modification data (MD2). a real time operating system (RTOS) ; a general-purpose operating system (GPOS) ; a control application running within the RTOS for generating control data (CD) and controlling an operation of a physical factory device in accordance with the generated control data (CD); a digital twin running within the GPOS for providing a digital copy of the physical factory device including a virtual control application for generating virtual control data (VCD) and a simulation application for simulating an operation of the physical factory device when it is controlled with the virtual control data (VCD) using the digital twin ; a real-time artificial intelligence (AI-R) application interacting with the control application for executing a first artificial intelligence algorithm (AI1), the first artificial intelligence algorithm (AI1) receiving physical factory device data (PD) and the control data (CD) as an input and providing first modification data (MD1) as an output, wherein the physical factory device data (PD) includes data indicative of the operation of the physical factory device , and wherein the control application is configured to modify the control data (CD) as a function of the first modification data (MD1); and a general-purpose artificial intelligence (AI-G) application interacting with the digital twin for executing a second artificial intelligence algorithm (AI2), the second artificial intelligence algorithm (AI2) using digital twin data (DD) and the virtual control data (VCD) as an input and providing second modification data (MD2) as an output, wherein the digital twin data (DD) includes data indicative of the simulation of the physical factory device using the digital twin , and wherein the virtual control application is configured to modify the virtual control data (VCD) as a function of the second modification data (MD2). <EOS>