LabVIEW与基于Modbus协议的温度控制器通信研究

2016-05-30 15:02:34崔阳
软件工程 2016年3期

崔阳

摘 要:温度控制软件是工业控制软件中的一类,对温度数据采集有严格要求。为了能够准确实现温度数据的采集和表示,首先总结了温控数据的主要特点,对Modbus协议和地址规范做了介绍。在此基础上对LabVIEW与基于Modbus协议的温控硬件设备通信模式进行了研究,对通信过程中可能出现的一些问题做出分析,并予以解决。最后在横河电机的UP35A温控调节器上进行了编程实验。实验结果表明这一通信模式能够较好地满足温控数据采集的要求。

关键词:Modbus协议;LabVIEW;温度控制

中图分类号:TP319 文献标识码:A

Abstract:Temperature data collection is one of the critical issues in temperature control software.To solve the problem of accurateness in collection and display of temperature data,specification of the Modbus protocol and address,as well as characteristics of the temperature data are introduced briefly at first,based on which the communication model between LabVIEW and Modbus-supported hardware is studied and programmed on Yokogawa UP35A.Results show that model can meet the requirements of temperature control data collection and display better.

Keywords:modbus protocol;LabVIEW;temperature control

1 引言(Introduction)

温控系统软件是工业控制软件中常用的一类,广泛用于纺织品印染、锂电池制造、家电生产等领域。由于对温控数据的采集、处理、显示要求都比较高,因此当前对温控数据的采集和处理已经基本实现了自动化[1]。

LabVTEW是由美国国家仪器(NI)公司研制开发的一种程序开发环境,它使用图形化编辑语言编写程序,是NI设计平台的核心,在开发工业控制系统方面具有极大优势[2]。目前很多温控设备是基于Modbus协议通信的,这类设备不但可以实现对温控数据的准确、实时、多通道采集,还能在无线网络环境下进行配置,这就扩大了设备的使用范围。因此在温控软件系统研发中越来越多地采用以LabVIEW作为温控数据显示界面、Modbus设备实现温控数据采集的模式。本文针对工作中LabVIEW与基于Modbus协议设备的通信原理、过程及常见问题进行研究。

2 温控数据的主要特点(Primary characteristics of thermostat data)

温控系统数据的特点与其应用领域密切相关,主要有以下几点[3]:

登录APP查看全文