摘要
串行通讯在工业控制中有着广泛的应用,Modbus协议是应用于电子控制器上的一种通用语言,它已经成为一种通用工业标准。本文针对变频器与上位机之间需要进行通讯以方便数据处理的问题设计了基于Modbus协议的变频器串行通讯程序,首先介绍了Modbus协议的工作原理,基于Modbus中的RTU模式在TMS320LF2407上使用汇编语言进行串行通信程序编写,对设计中的关键程序通过程序流程图的方式进行了重点分析,并通过硬件平台验证了方法的可行性,最终实现了变频器和上位机的串行通信功能。
Serial communication has been widely used in industrial control. The Modbus protocol is a common language which is applied to electronic control. Serial communication program is designed based on Modbus protocol in order to communicate between the inverter and the computer for data processing. This paper introduces the Modbus protocol and programs on TMS320LF2407 with assembly language based on RTU model in Modbus. The key point of design procedure is analyzed through flow chart and the feasibility of method is verified by hardware platform. The serial communication between inverter and PC is finally achieved.
出处
《自动化博览》
2015年第2期88-90,共3页
Automation Panorama1