采用面向对象的模块化方式对基于RFID的单件生产实验系统的上位机监控系统进行了设计,目的是通过对于该上位机监控系统的设计,能够对于生产过程进行实时控制和监控。为此通过多线程技术的应用实现了各模块的并发异步运行与通讯。文中给出了上位机与PLC通信模块,共享内存区服务模块及其访问模块,上位机与机械手控制程序通信模块,生产过程调度模块以及监控结果显示模块等5个模块的具体实现方法。系统运行良好,能够完成对整个生产过程的实时监控,证明了采用多线程技术确实可以很好地解决对于生产过程的实时控制和监控。
In this paper, object - oriented modularization approach has been used to design a supervisory control system on the host com puter of an RFID- based one - of- a - kind production system. The purpose of designing this kind of monitoring system is that this system can be carried out for real - time controlling and monitoring for production process. The concurrent asynchronous operation of modules and communication between several modules is implemented by using multi - thread method. This paper shows the concrete design method of 5 modules such as the communication module for the host computer and the PLC, the shared memory areas module and its access module, the communication module for the host computer and the rnanipulator, the production scheduling module and the monitoring module for production data. This system is running well and can complete the real - time supervisory control for the entire production proceas. The result proves that the multi - thread method can solve the problems of controlling and monitoring production process well.