摘要
Modbus作为一种工业通信标准,已经被广泛应用于工业实践。根据通信中网络类型的不同,Modbus通信的实现方式主要有TCP/IP和RTU串行两种。TCP/IP方式的底层实现依赖于Internet和TCP/IP协议,而RTU方式的底层实现则依赖于异步串行传输(通常是RS-232/422/485)即串口通信。基于此,主要研究和分析Modbus TCP和Modbus RTU这两种通信方式下,不同电气设备数据采集中的传感器通信、通信中的数据格式、数据解析以及数据存储方法。在实际应用中,Modbus通信可以快速建立主从机之间的通信,采集和存储环境温湿度、电流电压功率以及光强信号等数据,在一般的工业实践中具有较好的运用价值。
As an industrial communication standard,Modbus has been widely used in industrial practice.According to the different network types in communication,Modbus communication can be realized in two main ways:TCP/IP and RTU serial.The bottom layer of the TCP/IP method depends on the Internet and TCP/IP protocols,while the bottom layer of the RTU method is asynchronous serial transmission(Usually RS-232/422/485)namely serial communication.This article mainly focuses on the research and analysis of the sensor communication in the data collection of different electrical equipment,the data format in the communication,the data analysis,and the data storage method under the two communication methods of Modbus TCP and Modbus RTU.In practical applications,the communication between the master and the slave can be quickly established to collect and store data such as ambient temperature and humidity,current,voltage,power,and light intensity signals,which has good application value in general industrial practice.
作者
王勇平
张英豪
WANG Yongping;ZHANG Yinghao(Guangzhou Zhixin Power Technology Co.,Ltd.,Guangzhou 510540)
出处
《通信电源技术》
2020年第20期31-33,共3页
Telecom Power Technology