摘要
为推进传统铸造车间智能化、数字化转型,解决车间数据管理效率低、利用效率低等问题,引入WebSocket技术建立了一套实时在线的车间数据监测系统,实现了工业数据接入、数据实时监测、报警提示、历史数据分析等功能。首先,通过Modbus/TCP采集设备的参数实时值,将数据转储到MySQL数据库中;其次,利用Django服务器监听数据库更新事件,并创建服务器与浏览器之间的WebSocket双向数据通信通道,实现数据高效稳定传输;最后,通过Vue双向数据绑定技术将实时数据绑定到ECharts折线图、面积图等组件中,实现数据的科学展示。所提系统覆盖车间所有设备的126个参数,响应时间相较于传统Ajax轮询至少缩短了10 ms,数据同步周期可达到200 ms;所提系统在实际工程应用中已实现稳定运行,能有效降低前后端通信带宽,提高响应速度,为管理人员提供详细的生产信息,大幅提升了管理效率和生产效率。
Focused on the issue of low efficiency of workshop data management and utilization,to promote the intelligent and digital transformation of traditional casting workshop,WebSocket technology was introduced to establish a real-time online workshop data monitoring system,which realized industrial data access,real-time data monitoring,alarm prompts,historical data analysis and other functions.Firstly,the real-time parameter values of all equipments were collected by Modbus/TCP,and the data was dumped into the MySQL database.Secondly,Django server was used to monitor database update events,and a WebSocket duplex data communication channel between server and browser was created to realize efficient and stable transmission of monitoring data.Finally,real-time data was bound to ECharts line chart,area chart and other components through Vue bidirectional data binding technology to realize scientific display of monitoring data.The proposed system covers 126 parameters of all equipments.Compared with traditional Ajax polling,the response time of the proposed system is shortened by at least 10 ms,and data synchronization cycle can reach 200 ms.And the system has achieved stable operation in practical engineering applications,which can effectively reduce the communication bandwidths of front and backend,accelerate the response speed,provide detailed production information for managers,and greatly improve the management efficiency and production efficiency.
作者
高志辉
秦琦
段暕
沈旭
计效园
刘智勇
廖广兰
GAO Zhihui;QIN Qi;DUAN Jian;SHEN Xu;JI Xiaoyuan;LIU Zhiyong;LIAO Guanglan(School of Mechanical Science&Engineering,Huazhong University of Science and Technology,Wuhan Hubei 430074,China;School of Materials Science and Engineering,Huazhong University of Science and Technology,Wuhan Hubei 430074,China)
出处
《计算机应用》
CSCD
北大核心
2023年第S01期201-206,共6页
journal of Computer Applications