An industrial PC device (1, 50, 51) 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 and controlling an operation of a physical factory device in accordance with the generated control data; 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 and a simulation application for simulating an operation of the physical factory device when it is controlled with the virtual control data using the digital twin; a real-time artificial intelligence (AI-R) application interacting with the control application for executing a first artificial intelligence algorithm, the first artificial intelligence algorithm receiving physical factory device data and the control data as an input and providing first modification data as an output, wherein the physical factory device data includes data indicative of the operation of the physical factory device, and wherein the control application is configured to modify the control data as a function of the first modification data; and a general-purpose artificial intelligence (AI-G) application interacting with the digital twin for executing a second artificial intelligence algorithm, the second artificial intelligence algorithm using digital twin data and the virtual control data as an input and providing second modification data as an output, wherein the digital twin data 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 as a function of the second modification data. a real time operating system (RTOS); a general-purpose operating system (GPOS); a control application running within the RTOS for generating control data and controlling an operation of a physical factory device in accordance with the generated control data; 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 and a simulation application for simulating an operation of the physical factory device when it is controlled with the virtual control data using the digital twin; a real-time artificial intelligence (AI-R) application interacting with the control application for executing a first artificial intelligence algorithm, the first artificial intelligence algorithm receiving physical factory device data and the control data as an input and providing first modification data as an output, wherein the physical factory device data includes data indicative of the operation of the physical factory device, and wherein the control application is configured to modify the control data as a function of the first modification data; and a general-purpose artificial intelligence (AI-G) application interacting with the digital twin for executing a second artificial intelligence algorithm, the second artificial intelligence algorithm using digital twin data and the virtual control data as an input and providing second modification data as an output, wherein the digital twin data 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 as a function of the second modification data.