基于modbus协议的pc机和msc-51单片机之间的通信-----外文资料翻译.doc

约10页DOC格式手机打开展开

基于modbus协议的pc机和msc-51单片机之间的通信-----外文资料翻译,摘要:这篇文章讲述了一个可靠的方法去接收rtu(远方终端)方式的信息帧[12],它是通过使用mscomm控制,与在用vb6.0控制下的定时器相联系,这是根据信息的特征来确定的。 这种信息的开始与完成都是通过时间间隙长度来做记号的,它的长度一般是不会变的,而且用微机接收信息的过程通常都会被简短的描述一下。 此外,在这篇文...
编号:11-270432大小:75.00K
分类: 论文>外文翻译

内容介绍

此文档由会员 wanli1988go 发布

摘要:这篇文章讲述了一个可靠的方法去接收RTU(远方终端)方式的信息帧[12],它是通过使用MSCOMM控制,与在用VB6.0控制下的定时器相联系,这是根据信息的特征来确定的。 这种信息的开始与完成都是通过时间间隙长度来做记号的,它的长度一般是不会变的,而且用微机接收信息的过程通常都会被简短的描述一下。 此外,在这篇文章中也讲述了PC和MSC-51 SCM(单片机) 的连接是通过使用RS-485 网络连接通信的。
关键字:MODBUS(控制总线)协议; MSCOMM(微软商业) 控制; 串行通信
1 前言:
目前,工业控制已经趋向集中控制和M&C (测量和控制)的分配测量、MODBUS 作为现在在工业应用领域最广泛的网络适用协议,已经被广泛的使用在电力仪器和M&C 系统使用一个PC作为主要装置,其他许多智能设备都是建立在微机的基础上,这样可以通过自己的从属装置串行端口和其他设备相互通信。主要装置和从属装置都是通过串行端口通信。在MODBUS M&C系统中错误信息的传送模式是远方终端(RTU) . 在RTU 方式下,信息帧通常被默认间隔至少是3.5倍字符时间所分离.当帧的长度是可变的时,在分析了MODBUS协议和MSCOMM控制性能的基础上, 这篇文章还为PC和智能设备之间提供了一个非常有效的RTU通信方式,而且还包括了一些过程提示.
2. MODBUS协议的产生
Abstract: The paper presents a reliable method of receiving RTU (Remote Terminal Unit) mode MODBUS message frame by using MSComm control associated with Timer control in Visual Basic 6.0 according to the message frame, whose starting and finishing is marked by the time gap length and the message length is not changeless, also the receiving process of message in SCM (Single Chip Microprocessor) is described briefly. In addition, the connection of PC and MSC-51 SCM using RS-485 network to communicate is given in this paper.
Keyword: MODBUS protocol; MSComm control; serial communication
1 Foreword
At present, Industrial control is up to centralized control and distributed measurement from single processor M&C (measurement & control) The MODBUS, as the most popular network application protocol in industrial field, is used widely in electrical instruments and M&C system design. Usually, the M&C system uses a PC (personal computer) as the master device, and many other intelligent instruments based on SCM (single chip microprocessor) that communicates with others by its serial port as slave device both the master device and the slave device communicate via the serial port In MODBUS M&C system, the default message transmission mode is RTU (Remote Terminal Unit). In RTU mode, message frame are separated by a silent interval of at least 3.5 character times, while the length of the frames is changeable, that results in the difficulty for programming. Based on the analysis of MODBUS protocol and MSComm control attributes, this paper has provided an efficient RTU communication method between PC and intelligent instrument, also including some suggestions for programming
2 Introduction of MODBUS Protocol