国产精品婷婷久久久久久,日本中文字幕平台,天天躁夜夜躁av天天爽,国内极度色诱视频网站

基于modbus協(xié)議的pc機和msc-51單片機之間的通信-----外文資料翻譯.doc

約10頁DOC格式手機打開展開

基于modbus協(xié)議的pc機和msc-51單片機之間的通信-----外文資料翻譯,摘要:這篇文章講述了一個可靠的方法去接收rtu(遠方終端)方式的信息幀[12],它是通過使用mscomm控制,與在用vb6.0控制下的定時器相聯(lián)系,這是根據(jù)信息的特征來確定的。 這種信息的開始與完成都是通過時間間隙長度來做記號的,它的長度一般是不會變的,而且用微機接收信息的過程通常都會被簡短的描述一下。 此外,在這篇文...
編號:11-270432大小:75.00K
分類: 論文>外文翻譯

內(nèi)容介紹

此文檔由會員 wanli1988go 發(fā)布

摘要:這篇文章講述了一個可靠的方法去接收RTU(遠方終端)方式的信息幀[12],它是通過使用MSCOMM控制,與在用VB6.0控制下的定時器相聯(lián)系,這是根據(jù)信息的特征來確定的。 這種信息的開始與完成都是通過時間間隙長度來做記號的,它的長度一般是不會變的,而且用微機接收信息的過程通常都會被簡短的描述一下。 此外,在這篇文章中也講述了PC和MSC-51 SCM(單片機) 的連接是通過使用RS-485 網(wǎng)絡連接通信的。
關鍵字:MODBUS(控制總線)協(xié)議; MSCOMM(微軟商業(yè)) 控制; 串行通信
1 前言:
目前,工業(yè)控制已經(jīng)趨向集中控制和M&C (測量和控制)的分配測量、MODBUS 作為現(xiàn)在在工業(yè)應用領域最廣泛的網(wǎng)絡適用協(xié)議,已經(jīng)被廣泛的使用在電力儀器和M&C 系統(tǒng)使用一個PC作為主要裝置,其他許多智能設備都是建立在微機的基礎上,這樣可以通過自己的從屬裝置串行端口和其他設備相互通信。主要裝置和從屬裝置都是通過串行端口通信。在MODBUS M&C系統(tǒng)中錯誤信息的傳送模式是遠方終端(RTU) . 在RTU 方式下,信息幀通常被默認間隔至少是3.5倍字符時間所分離.當幀的長度是可變的時,在分析了MODBUS協(xié)議和MSCOMM控制性能的基礎上, 這篇文章還為PC和智能設備之間提供了一個非常有效的RTU通信方式,而且還包括了一些過程提示.
2. MODBUS協(xié)議的產(chǎn)生
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