Digital Twin Used in Real-Time Monitoring of Operations Performed on CNC Technological Equipment
Abstract
:Featured Application
Abstract
1. Introduction
1.1. Background
1.2. Research Topic, Goals, and Objectives
1.3. Novel Contribution
2. Related Work
2.1. Digital Twin Market
2.2. Early Development of Digital Twin Technology
2.3. Expansion of Digital Twin Technology in Manufacturing
2.4. Digital Twin in CNC Machine Monitoring
2.5. Digital Twin Technology in Healthcare and Smart Cities
2.6. Future Prospects of Digital Twin Technology
2.7. The Architecture of Digital Twin
2.8. The Maturity Levels of Digital Twin Technology
2.9. Digital Twins in the Smart Manufacturing Process
3. Research and Development Methodology
3.1. Models—WPF Applications with the Model-View-ViewModel (MVVM) Design Pattern for CNC Machine Interface
- Real-Time Monitoring: The application can monitor critical CNC parameters such as spindle speed, feed rate, tool wear, and temperature. Using data binding, the ViewModel updates the UI in real-time with the latest sensor data from the CNC machine.
- Machine Control: The interface allows operators to control the CNC machine remotely. Buttons in the UI can be bound to commands in the ViewModel, enabling operations such as starting, pausing, or stopping the machine. The ViewModel would then translate these commands into machine-specific API calls or instructions.
- Data Visualization: Using WPF’s data visualization libraries (like OxyPlot or LiveCharts), operators can view graphs, tool paths, and other CNC performance data. These can be customized to show historical trends or real-time machine data, providing insights into the CNC process.
- Fault Detection and Alerts: The MVVM pattern allows for the seamless display of alerts and notifications when the machine encounters errors or operational anomalies. The Model layer would handle the logic for detecting faults, while the ViewModel would notify the View to display alerts.
- Historical Data and Reporting: Operators can access historical machine data, such as previous jobs, tool paths, and machine performance, using the WPF interface. This allows operators to review past performance and adjust parameters for optimal efficiency.
- CNC Machine Connectivity: The ViewModel acts as the mediator between the UI and the CNC machine’s control system (e.g., via an API or communication protocol like OPC UA). This enables the application to send instructions to the machine and receive updates on its operational status.
- Data Binding: WPF’s powerful data binding feature allows for real-time updates in the UI whenever the underlying data (Model) change. For a CNC machine, this could include real-time updates of the machine’s status (e.g., temperature, spindle speed, tool wear).
- Commands: In MVVM, user interactions (e.g., button clicks) are handled through commands in the ViewModel, which executes business logic in the Model. For example, a “Start” or “Stop” button in the CNC machine control panel would trigger commands that interact with the machine via the ViewModel.
- Dependency Injection: using frameworks like Prism or Unity, MVVM allows for dependency injection, where machine services (e.g., machine control APIs) are injected into the ViewModel, making the code more modular and easier to test.
- Notifications and Alerts: The application can be designed to notify operators of any anomalies, errors, or performance deviations in the CNC machine, allowing for timely interventions. WPF’s binding to ObservableCollection or INotifyPropertyChanged interfaces ensures real-time updates of any changes in the machine’s operational status.
3.2. Real-Time Notifications and Actions Using Microsoft SignalR Hub
- Simplified API: sending and receiving messages is easy to implement.
- Multi-Platform Support: compatible with various platforms and languages, including .NET and JavaScript.
- Connection Management: automates reconnections and redirects for reliability.
- Integrated Security: supports authentication and authorization, protecting against unauthorized access.
- Chat and Messaging Applications: provides instant updates and bidirectional communication.
- Live Notifications: sends real-time notifications for news and social media platforms.
- Real-Time Monitoring: displays updated data in monitoring applications.
3.3. Dapper ORM
- Real-Time Data Querying: Dapper can fetch real-time sensor data from SQL-based databases efficiently. This is particularly important in Digital Twin environments where up-to-the-second data accuracy is necessary for simulating the physical manufacturing environment.
- High-Performance Data Operations: the performance advantages of Dapper make it ideal for high-frequency data operations in Digital Twin systems, where large volumes of machine and sensor data must be processed quickly.
- Batch Updates for Monitoring States: Manufacturing systems may need to frequently update machine states, sensor readings, or production statuses. Dapper can handle batch updates, ensuring that the digital twin stays in sync with real-world conditions without lag.
- Compatibility with Various Databases: whether your manufacturing system stores data in SQL Server, PostgreSQL, or other relational databases, Dapper can easily integrate, allowing for flexible data management across different platforms.
- Efficient Resource Management: with minimal overhead, Dapper can reduce the computational resource consumption of your monitoring system, which is critical when scaling a Digital Twin to monitor multiple production lines or machines.
- By using Dapper in your Digital Twin system for manufacturing, you ensure that data flow efficiently between the physical environment and the virtual model, enabling real-time decision-making and optimization of production processes.
3.4. Android Interfaces
- Real-Time Data Access: Operators can monitor live data from the factory floor via an intuitive mobile app. The interface can display metrics such as machine status, energy consumption, temperature, pressure, or any other IoT data generated by the Digital Twin system.
- Remote Access and Mobility: Operators can access the manufacturing system’s Digital Twin from anywhere on the plant floor or remotely, increasing responsiveness and decision-making speed. This is especially valuable for large-scale facilities where operators are not always near desktop workstations.
- Interactive Dashboards: By utilizing libraries like MPAndroidChart or Android Plot, developers can integrate interactive graphs, data trends, and KPIs (Key Performance Indicators) into the operator interface. This allows for more dynamic monitoring, enabling operators to zoom into specific data ranges or investigate anomalies.
- Alert and Notification System: with Android’s notification APIs, the app can push critical alerts to the operators’ devices when real-time data signal equipment failure or process inefficiency, enhancing proactive maintenance and reducing downtime.
- Seamless Integration with Existing Systems: the app can integrate with the backend infrastructure of the Digital Twin, pulling data from SCADA systems, PLCs, and ERP systems, providing operators with a unified interface to monitor the entire production environment in real-time.
- Offline Mode: for environments with unreliable connectivity, the app can be designed with an offline mode, allowing operators to view and update data locally, syncing with the backend when connectivity is restored.
4. Detailed Design and Implementation
4.1. The Architecture of the Proposed Solution
4.2. The Architecture of the Database
- A clear structure of the tables was established, using descriptive column and table names.
- Each table contains information strictly related to a single defined object.
- Each table has a distinct primary key.
- The data types of the fields have been optimized by applying appropriate functions.
- In Figure 9, we will illustrate the database diagram before deriving the tables.
4.3. The Monitoring Windows Application
- Controls: Contains reusable interfaces for other windows. For example, ResourceControl contains the design for each resource on the real-time map and is reused for each resource without the need to define these settings for every individual resource. This allows for configuring a responsive interface for each resource in the live map without having to rewrite the same code.
- Helpers: contains classes necessary for executing commands, value converters, and implementing the dialog system.
- Resources: contains all project resources such as images, styles, and global information that is available across all interfaces for reuse.
- Models: defines the tables and fields existing in the database for an entity.
- ViewModels: provides the functionality for each interface to allow the separation of processed data.
- Windows: the main interface that contains the other interfaces used in the application.
4.3.1. Configuring Real-Time Events
4.3.2. Data Model Configuration
4.3.3. Logging Method in the Application
4.3.4. Retrieving the Necessary Information for Each CNC Machine to Process the Orders
4.4. Development of the Android Module for Recording the Operations Performed by the Operator
4.4.1. Global Declaration of Reusable Information at the Code Project Level
4.4.2. Defining the Data Model for the Information Required by the CNC Machine Operator
4.4.3. Method for Retrieving the Data Required by the Operator (Figure 18)
4.5. Create the 3D Virtual Model of the Machine
- Data Collection: gather real-time operational data from CNC machines to inform the Digital Twin.
- Model Development: create an accurate 3D model in AutoCAD, reflecting the machine’s design and specifications.
- Integration: embed monitoring features into the model using data from the Digital Twin to visualize performance and detect anomalies.
- Simulation: use the Digital Twin for scenario simulations to predict machine behavior and optimize operations.
- Continuous Improvement: update the Digital Twin with new data for ongoing refinement of the 3D model.
5. Results
5.1. Logging Interface for Windows and Android
5.2. Windows Module for Monitoring the Production Process
5.3. Android Module for Monitoring Operator Activities on CNC Equipment
5.4. Results of the Software Modules Applied to 150 Printing Resources
- Processor: Intel(R) Xeon(R) Gold 6346 CPU @ 3.10 GHz 3.09 GHz (4 processors)
- Installed RAM: 16 GB
- Total resources monitored: 150 machines.
- Data synchronization rate: 1 s average/resource.
- Production time reduced by approx. 10%.
6. Conclusions
- Real-time Synchronization:
- Reduction in Production Time:
- Windows and Android Modules:
- Server Performance:
- Comparison with Other Solutions:
- Order Tracking:
- Performance Tracking and Notifications:
- Automated data collection system: The development of software or hardware capable of automatically retrieving CNC operating parameters without manual operator input. This will ensure more accurate and efficient data collection.
- Performance analysis and reporting software: A dedicated software solution will be created to analyze the gathered data and generate detailed reports on CNC performance. These reports will provide valuable insights for optimizing production processes and identifying potential issues early on.
- Predictive productivity and maintenance system: leveraging historical data and advanced analytical algorithms, the system will predict future CNC performance and identify the need for preventive maintenance, helping to avoid downtime and improve overall efficiency.
- Monitoring the activity of one specific equipment using cameras and sensors.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Uhlemann, T.; Lehmann, C.; Steinhilper, R. The Digital Twin: Realizing the Cyber-Physical Production System for Industry 4.0. Procedia Cirp 2017, 61, 335–340. [Google Scholar] [CrossRef]
- Qi, Q.; Tao, F. Digital Twin and Big Data Towards Smart Manufacturing and Industry 4.0: 360 Degree Comparison. IEEE Access 2018, 6, 3585–3593. [Google Scholar] [CrossRef]
- Kritzinger, W.; Karner, M.; Traar, G.; Henjes, J.; Sihn, W. Digital Twin in Manufacturing: A Categorical Literature Review and Classification. IFAC-PapersOnLine 2018, 51, 1016–1022. [Google Scholar] [CrossRef]
- Grieves, M. Digital Twin: Manufacturing Excellence Through Virtual Factory Replication. 2015. Available online: https://www.researchgate.net/publication/275211047_Digital_Twin_Manufacturing_Excellence_through_Virtual_Factory_Replication (accessed on 9 October 2024).
- Denkena, B.; Bergmann, B.; Schmidt, A. Preload Monitoring of Single Nut Ball Screws Based on Sensor Fusion. CIRP J. Manuf. Sci. Technol. 2021, 33, 63–70. [Google Scholar] [CrossRef]
- Govindasamy, A.; Devarajan, R.; Rajendran, S.; Arivarasi, A. Cost-Effective Digital Twin Design for Entertainment Enterprises through Machine Learning. Entertain. Comput. 2024, 50, 100648. [Google Scholar] [CrossRef]
- Groff, J.R.; Weinberg, P.N.; Oppel, A.J. SQL: The Complete Reference, 3rd ed.; McGraw-Hill: New York, NY, USA, 2009; Available online: https://ci-ceit.edu.ck/wp-content/uploads/2021/01/sql-the-complete-reference-third-edition-sep-2009.pdf (accessed on 5 October 2024).
- Thai, T.L.; Lam, H. NET Framework Essentials, 2nd ed.; O’Reilly Media: Sebastopol, CA, USA, 2000; Available online: http://box.cs.istu.ru/public/docs/other/_Unsorted/new/NET/NET%20Framework%20Essentials,%202nd%20Edition%20(O'Reilly).pdf (accessed on 5 October 2024).
- Savaliya, R.R. Study of Synchronization Mechanism Between the Databases for Distributed Database Systems. 2017. Available online: https://www.jetir.org/papers/JETIR1702075.pdf (accessed on 5 October 2024).
- United Nations Industrial Development Organization (UNIDO). Unlocking the Potential of Industry 4.0 for Developing Countries. In Proceedings of the Regional Conference on Industrial Development,, Bali, Indonesia, 8–9 November 2018. Available online: https://hub.unido.org/sites/default/files/publications/Unlocking%20the%20Potential%20of%20Industry%204.0%20for%20Developing%20Countries.pdf (accessed on 5 October 2024).
- Grieves, M.; Vickers, J. Digital Twin: Mitigating Unpredictable, Undesirable Emergent Behavior in Complex Systems. In Transdisciplinary Perspectives on Complex Systems; Kahlen, F.-J., Flumerfelt, S., Alves, A., Eds.; Springer: Cham, Switzerland, 2017; pp. 85–113. [Google Scholar] [CrossRef]
- IMARC Group. Available online: https://www.imarcgroup.com (accessed on 5 October 2024).
- Mishra, A.; El Barachi, M.; Kumar, M. Transforming Industry Using Digital Twin Technology; Springer Science and Business Media LLC: Berlin/Heidelberg, Germany, 2024; Available online: https://link.springer.com/book/10.1007/978-3-031-58523-4 (accessed on 9 October 2024).
- Jiang, Y.; Yin, S.; Li, K.; Luo, H.; Kaynak, O. Industrial Applications of Digital Twins. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2021, 379, 20200360. [Google Scholar] [CrossRef] [PubMed]
- Kumar, S.; Verma, A.K.; Mirza, A. Digital Transformation, Artificial Intelligence, and Society; Springer Science and Business Media LLC: Berlin/Heidelberg, Germany, 2024; Available online: https://www.springerprofessional.de/en/digital-transformation-artificial-intelligence-and-society/27482874 (accessed on 9 October 2024).
- Lehmacher, W. The Global Supply Chain; Springer Science and Business Media LLC: Berlin/Heidelberg, Germany, 2017. [Google Scholar] [CrossRef]
- Jose, D.; Nanjundan, P.; Paul, S.; Mohanty, S.N. AI-Driven IoT Systems for Industry 4.0; CRC Press: Boca Raton, FL, USA, 2024; Available online: https://www.routledge.com/AI-Driven-IoT-Systems-for-Industry-40/Jose-Nanjundan-Paul-Mohanty/p/book/9781032554150?srsltid=AfmBOood4zeDdqJznhE0eWvWt69ZkHP4bsxMCu6I0uRW654x-Y-WJu2d (accessed on 9 October 2024).
- Digital Twin Market: Global Industry Analysis and Forecast (2024–2030). Available online: https://www.stellarmr.com/report/Digital-Twin-Market/1606 (accessed on 5 October 2024).
- Glaessgen, E.; Stargel, D. The Digital Twin Paradigm for Future NASA and U.S. Air Force Vehicles. In Proceedings of the AIAA Infotech@Aerospace Conference, Honolulu, HI, USA, 23–26 April 2012. [Google Scholar] [CrossRef]
- Lyu, Z. Handbook of Digital Twins; CRC Press: Boca Raton, FL, USA, 2024; Available online: https://books.google.ro/books?hl=ro&lr=&id=6KQIEQAAQBAJ&oi=fnd&pg=PP1&dq=Lyu,+Z.+Handbook+of+Digital+Twins.+CRC+Press,+2024.&ots=8nQu4Crmfh&sig=NNKIZD71mXBfVM43zgLULJySWXM&redir_esc=y#v=onepage&q=Lyu%2C%20Z.%20Handbook%20of%20Digital%20Twins.%20CRC%20Press%2C%202024.&f=false (accessed on 5 October 2024).
- General Electric. Digital Twin Technology: A GE Research Perspective; GE Digital: San Ramon, CA, USA, 2016; Available online: https://hi.dcsmodule.com/js/htmledit/kindeditor/attached/20210916/20210916172149_81906.pdf (accessed on 5 October 2024).
- Gartner. Market Guide for Digital Twins; Gartner Research: Stamford, CT, USA, 2020; Available online: https://www.gartner.com/en/documents/4003512 (accessed on 5 October 2024).
- FANUC. CNC Digital Twin Technology; FANUC Corporation: Yamanashi, Japan, 2021; Available online: https://www.fanuc.eu/ro/ro/cnc?gad_source=1&gclid=CjwKCAjw9eO3BhBNEiwAoc0-jWA3ZP0l0-Blk_ZfYih-scBwUEjeEOp9Y8PUUaOjlqLNkYB0jKqD_RoCcyQQAvD_BwE (accessed on 5 October 2024).
- Digital Twin Market Size, Share, and Trends. Available online: https://www.marketsandmarkets.com/Market-Reports/digital-twin-market-225269522.html (accessed on 5 October 2024).
- Siemens. Sinumerik ONE: The Digital Native CNC; Siemens AG: Munich, Germany, 2020; Available online: https://static.dc.siemens.com/cnc4you/magazines/cnc4you_2020_1_en.pdf (accessed on 5 October 2024).
- Philips Healthcare. Digital Twin for Predictive Maintenance in Healthcare; Philips: Amsterdam, The Netherlands, 2021; Available online: https://www.philips.co.uk/healthcare/consulting/articles/article/hospital-digital-twin-virtual-simulation (accessed on 5 October 2024).
- Bruynseels, K.; Santoni de Sio, F.; van den Hoven, J. Digital Twins in Health Care. Front. Genet. 2018, 9, 31. Available online: https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2018.00031/full (accessed on 5 October 2024). [CrossRef] [PubMed]
- Nguyen, T.D.; Adhikari, S. The Role of BIM in Integrating Digital Twin in Building Construction: A Literature Review. Sustainability 2023, 15, 10462. [Google Scholar] [CrossRef]
- Virtual Singapore. Digital Twin: Urban Simulation Platform; Government of Singapore: Singapore, 2020. Available online: https://www.sbt-durabi.org/articles/xml/KGOd/ (accessed on 5 October 2024).
- McKinsey & Company. Mastering the Duality of Digital: How Companies Withstand Disruption, 2019. Available online: https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/mastering-the-duality-of-digital-how-companies-withstand-disruption (accessed on 5 October 2024).
- Thoben, K.; Wiesner, S.; Wuest, T. Industrie 4.0 and Smart Manufacturing: A Review of Research Issues and Application Examples. Int. J. Autom. Technol. 2017, 11, 4–16. [Google Scholar] [CrossRef]
- Ericsson. 5G and the Digital Twin; Ericsson: Hong Kong, China, 2021; Available online: https://blogs.nvidia.com/blog/ericsson-digital-twins-omniverse/ (accessed on 5 October 2024).
- Digital Twin Technology Challenges and Applications. Available online: https://research-management.mq.edu.au/ws/portalfiles/portal/195738450/195689060.pdf (accessed on 5 October 2024).
- Wang, Z.; OuYang, Y.; Kochan, O. Research on Virtual Monitoring Method Based on Digital Twin. Available online: https://ceur-ws.org/Vol-3387/paper11.pdf (accessed on 5 October 2024).
- Jeong, D.-Y.; Baek, M.-S.; Lim, T.-B.; Kim, Y.-W.; Kim, S.-H.; Lee, Y.-T.; Jung, W.-S.; Lee, I.-B. Digital Twin: Technology Evolution Stages and Implementation Layers with Technology Elements. IEEE Access 2022, 10, 52609–52620. [Google Scholar] [CrossRef]
- National Institute of Standards and Technology (NIST). Smart Manufacturing Systems Design and Analysis. Available online: https://www.nist.gov (accessed on 5 October 2024).
- Digital Twin Implementation in Transition of Smart Manufacturing. Available online: https://ceur-ws.org/Vol-3468/paper2.pdf (accessed on 5 October 2024).
- Patterns-WPF Apps with the Model-View-ViewModel Design Pattern. Available online: https://learn.microsoft.com/en-us/archive/msdn-magazine/2009/february/patterns-wpf-apps-with-the-model-view-viewmodel-design-pattern (accessed on 5 October 2024).
- Real-Time Notifications Using SignalR and SQL Dependency. Available online: https://www.codeproject.com/Articles/883702/Real-Time-Notifications-using-SignalR-and-SQL-Depe (accessed on 5 October 2024).
- Dapper Tutorial. Available online: https://dappertutorial.net/ (accessed on 5 October 2024).
- Android Developer Codelabs. Available online: https://developer.android.com/get-started/codelabs (accessed on 5 October 2024).
- Mvvm-Model-View-Viewmodel-Pattern1. Available online: https://yinyangit.wordpress.com/wp-content/uploads/2011/12/mvvm-model-view-viewmodel-pattern1.png?w=513 (accessed on 11 October 2024).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Daraba, D.; Pop, F.; Daraba, C. Digital Twin Used in Real-Time Monitoring of Operations Performed on CNC Technological Equipment. Appl. Sci. 2024, 14, 10088. https://doi.org/10.3390/app142210088
Daraba D, Pop F, Daraba C. Digital Twin Used in Real-Time Monitoring of Operations Performed on CNC Technological Equipment. Applied Sciences. 2024; 14(22):10088. https://doi.org/10.3390/app142210088
Chicago/Turabian StyleDaraba, Dinu, Florina Pop, and Catalin Daraba. 2024. "Digital Twin Used in Real-Time Monitoring of Operations Performed on CNC Technological Equipment" Applied Sciences 14, no. 22: 10088. https://doi.org/10.3390/app142210088
APA StyleDaraba, D., Pop, F., & Daraba, C. (2024). Digital Twin Used in Real-Time Monitoring of Operations Performed on CNC Technological Equipment. Applied Sciences, 14(22), 10088. https://doi.org/10.3390/app142210088