Whole Machine and System Design
XU Zhe, SUN Shufeng, ZHANG Xingbo, WANG Qian, ZHANG Fengyun, WANG Pingping, XIE Zhangwei, ZHANG Yu, LIU Jixin, SUN Weili, CAO Aixia
In order to solve the problems of inconvenience in experimental operation, difficulty in monitoring equipment operation status and poor interactivity caused by concealed installation position and difficulty in installing auxiliary devices on the self-built laser parallel processing experimental platform, taking a single optical displacement stage in the experimental platform as an example, an interactive control system based on digital twin technology was designed by using Unity engine. This interactive control system used MQTT(message queuing telemetry transport) communication protocol protocol to complete the cross-software information interaction by using the server to transfer data. The Kinesis control software of optical displacement stage and the virtual control panel in Unity engine served as clients in MQTT communication, acting as subscribers and publishers. The digital twin model of the optical displacement stage performed real-time mapping of the motion state of its physical entity based on data information. Users completed synchronous interactive control of the physical entity and the digital twin model through the Kinesis control software or virtual control panel. The secondary development of Kinesis control software was carried out by referencing.dll file, and the motion control class of Kinesis control software was called to complete the motion control of the optical displacement stage. The motion data variables were set to high-precision float type and decimal type to ensure that the data precision was not lost. Ten groups of actual processing data were selected to test the operation latency and synchronization of the interactive control system. The results showed that the data publishing time on the Kinesis control software and the data subscription time on the Unity engine were controlled within 20 ms and 10 ms, respectively. The designed system can better ensure the consistency of synchronous control and real-time action mapping between the digital twin model and the physical entity, which achieves the visual monitoring function of the motion state of the optical displacement stage. In addition, the motion data type can meet the micron level information transmission, ensuring the accuracy requirements of the optical displacement stage. At the same time, the functions of virtual control panel run normally, which improves the convenience of the optical displacement stage control.