J4 ›› 2011, Vol. 24 ›› Issue (1): 102-105.

• 目录 • 上一篇    下一篇

基于.NET的全自动试验机控制系统中数据通信的实现

 张艳芳, 郑江花, 刘广亮, 刘成业, 李倩   

  1. 山东省科学院自动化研究所,山东 济南 250014
  • 出版日期:2011-02-20 发布日期:2011-02-20

Implementation of data communications in the control system of a .NET based completely automatic tester

 ZHANG Yan-Fang, ZHENG Jiang-Hua, LIU Guang-Liang, LIU Cheng-Ye, LI Qian   

  1. Institute of Automation, Shandong Academy of Sciences, Jinan 250014, China
  • Online:2011-02-20 Published:2011-02-20

摘要:

        在全自动试验机控制系统中,利用.NET环境下的C#开发语言,通过自带的SerialPort类实现了上位机与台达PLC的串行通信,该方法可以提高串行通信程序设计的灵活性和串口传输数据的可靠性。实际运行结果表明,系统传送数据准确,程序运行稳定。

关键词: .NET, 全自动试验机, PLC, 通信协议

Abstract:

         We implement serial communications between PC and DVP Series PLC in the control system of a completely automatic tester with the internal SerialPort class of C# and .NET based C#. This can increase the flexibility of serial communications program design and the reliability of data transmission through serial ports. Application results show that the transmitted data is accurate and reliable and the program runs stably.

Key words: .NET, completely automatic tester, PLC, communications protocol

中图分类号: 

  • TP311.1