电加工总线控制模块的软件设计

Software design based on bus control module for EDM

  • 摘要: 为实现自主研发的微细组合电加工机床操作指令的高效传递和状态监测,提出了异种网络互联方案,利用“PCI_CAN卡+工控机”作为硬件平台实现了CAN总线系统的数据传输和TCP端的通信设计,分析了Socket原理,利用MFC中的CAsyncSocket类完成服务器/客户端模型的建立。在此基础上通过分析客户端与服务器通信服务协议和CAN数据帧用户协议,在服务器上实现了两种协议的转换以及传递信息的监测,该软件同时具有检测系统各模块状态的功能。通过软件测试与调试验证了本方案的可行性与正确性。

     

    Abstract: In order to realize the efficient transmission and state monitoring of the operation instructions of the self-developed micro combined EDM machine tools, a scheme of heterogeneous network interconnection is proposed, which uses "PCI_CAN + industrial computer "as the hardware platform realizes the data transmission of CAN bus system and the communication design of TCP end, analyzes the Socket principle, and uses the CAsyncSocket class in MFC to complete the establishment of Server/Client model. On this basis, by analyzing the communication service protocol between the client and the server and the CAN data frame user protocol, the conversion of the two protocols and the monitoring of the transmission information are realized on the server. The software has the function of detecting the status of each module of the system at the same time. The feasibility and correctness of the scheme are verified by software testing and debugging.

     

/

返回文章
返回