跳到主要內容

臺灣博碩士論文加值系統

(216.73.216.17) 您好!臺灣時間:2026/06/15 17:47
字體大小: 字級放大   字級縮小   預設字形  
回查詢結果 :::

詳目顯示

: 
twitterline
研究生:林尊民
研究生(外文):LIN,TSUN-MIN
論文名稱:現場總線通訊協定建構於RS-485之特性探討
論文名稱(外文):To Study on the Characteristics of Communication Protocol Based on RS-485 for the Fieldbus Application
指導教授:莊國強
指導教授(外文):CHUANG,KUO-CHIANG
口試委員:張凱雄葉旻彥莊國強陳博源楊奇達
口試委員(外文):CHANG,KAI-HSIUNGYEH,MIN-YENCHUANG,KUO-CHIANGCHEN,PO-YUANYANG,CHI-TA
口試日期:2022-06-28
學位類別:碩士
校院名稱:國立高雄科技大學
系所名稱:半導體工程系
學門:工程學門
學類:電資工程學類
論文種類:學術論文
論文出版年:2022
畢業學年度:110
語文別:中文
論文頁數:85
中文關鍵詞:現場總線ModbusRS-485多匯流排故障注入終端電阻共模電阻方波干擾模型
外文關鍵詞:fieldbusModbusRS-485multibusfault injectionterminal resistorcommon-mode resistorsquare wave interference model
相關次數:
  • 被引用被引用:2
  • 點閱點閱:481
  • 評分評分:
  • 下載下載:46
  • 收藏至我的研究室書目清單書目收藏:0
本論文提出現場總線技術應用在工業自動化生產設備界面間通訊品質正確率提昇方法,因為Modbus現場總線協議技術是最早期的技術之一,且獲得工業界的長期廣泛使用。這當中,各設備端長時間不中斷的運作需求下,若設備老舊又加上通訊線路不穏定下,易於受到外部干擾因素,各設備主-從端之間無法正確判讀邏輯訊號準位,誤報情形時常發生,各設備無法正常通訊,造成設備運轉效率低落,嚴重時自動化產線停擺。本論文針對Modbus通訊參數、串列埠通訊參數及RS-485傳輸特性等各項參數進行探討,目的在提高訊號傳輸正確率,提昇自動化設備運作效率及穏定性。
基於工作經驗,實驗設計是在Modbus RTU通訊模式下,透過調整通訊參數,在Modbus應用層,實現一個RS-485實體層的測試方式,對Modbus從端設備的掃描及測試,在可調整範圍通訊參數下,選擇最適合使用者需求的Modbus RTU傳輸方式,並以資料庫儲存資料作為後端分析和表列化的統計,讓工程人員能夠更精確、更容易掌握現場狀況,透過數據分析找出癥結點,不但進行改善缺失與維修,而且事先因應迅速維護,將可免除生產線停止運作的情況發生。
經由實驗結果測試得知RS-485特性;首先,若為鮑率越高與線阻越大及干擾電壓越大,則傳輸正確率越低;再者,在單端電阻與方波干擾模型下,則方波可以補償在電阻衰減的訊號;最後,在共模電阻與方波干擾模型下,低鮑率受到地端干擾影響較大,則傳輸正確率較低。因此本論文提出,為維持訊號傳輸的正確率,在高線阻的情況下引用方波訊號,及在地端存在電位差時提高鮑率,可以使傳遞訊號的邏輯準位在合理的準位,避免主-從端傳輸線路電阻動態變化,造成邏輯訊號準位漂移,提昇邏輯訊號準位判讀,以達成強健的Modbus RTU通訊系統。
Fieldbus is a technology commonly used in manufacturing automation, while Modbus is one of the earliest protocols used in Fieldbus technologies. It can be found, that many fieldbus equipment disconnects constantly as a result of operating under an electrically noisy environment. Without proper maintenance, this can cause the equipment to have a poor quality of bus communication. In this study, we seek to improve data transmission stability and accuracy. This can be done, by adjusting Modbus parameters, serial parameters, and RS-485 operation characteristics.
Based on Modbus RTU architecture, one can then design a communication testing model. This can be complemented on the RS-485 physical layer, by using the Modbus application layer. In other words, scanning the Modbus device communication parameters and testing communication stability, by adjusting the communication parameters. Choosing a more suitable parameter of Modbus RTU communication, can be helpful in achieving the users’ requirements. Also storing data to the SQL for back-end analysis and tabulated statistics, is a great way of troubleshooting potential problems through data analysis. In addition, preventative maintenance can be implemented, to mitigate the chance of device failure, which could otherwise be the cause of production line downtime.
According to the experimental results of RS-485 characteristics: experiencing a higher baud rate, and additional resistance, coupled with an increased interference voltage, will surely be the cause of lower accuracy in data transmission. However, applying a single square wave interference on the RS-485, could possibly compensate for the loss of impedance. Applying a ground-potential difference square wave, could cause lower data transmission accuracy on lower baud. This effect can be minimized by implementing a Modbus RTU communication system with higher stability.

目錄

摘 要 i
ABSTRACT iii
誌謝 v
目錄 vi
表目錄 viii
圖目錄 ix
第一章 緒論 1
1-1 前言 1
1-2 研究動機與研究目的 2
第二章 理論基礎 4
2-1 Modbus通訊協議 4
2-1-1 Modbus RTU 5
2-1-2 Modbus TCP 8
2-2 傳輸介質 9
2-2-1 同軸電纜 10
2-2-2 雙絞線 10
2-2-3 光纖 11
2-3 傳輸方式 12
2-3-1 串列通訊、並列通訊 12
2-3-2 同步傳輸、異步傳輸 13
2-3-3 傳輸接口 RS-422、RS-485 14
第三章 實驗方法 17
3-1 架構設計 17
3-1-1 硬體架構 17
3-1-2 軟體架構 22
3-1-3 系統流程圖 23
3-2 定義通訊參數 29
3-3 通訊埠自動掃描 35
3-4 通訊埠測試及統計分析 40
第四章 結果與討論 44
4-1 結果分析 44
4-2 缺陷及改善方法 64
第五章 結論 66
參考文獻 67


[1]Etschberger, Konrad. "Controller area network: basics, protocols, chips and applications." (2001).
[2]Li Zhengjun, "Design of Field Bus and Industrial Ethernet and Application System," published by China Posts & Telecom Press, 2006.
[3]Zhang hui, Zhou weike. The Environment Measuremern-Control System Based CAN Bus Technology. Journal of Computing Technology and Automation. 2005.
[4]Wang, D. and Q.-z. Wu (2011). Design of multi-detectors imaging control system based on field bus. Proceedings of 2011 Cross Strait Quad-Regional Radio Science and Wireless Technology Conference.
[5]Shoshani, G., et al. (2010). Industrial Fieldbus technology and Fieldbus cable overview — Cable standards and electrical qualifications. 2010 Record of Conference Papers Industry Applications Society 57th Annual Petroleum and Chemical Industry Conference (PCIC).
[6]"computer network". Electropedia. International Electrotechnical Commission (IEC). 2010. definition 732-01-03.
[7]"IEC 61158 Technology Comparison" (PDF). Fieldbus, Inc. 2008-11-13. Retrieved 2020-05-11.
[8]"Industrial communication networks - Profiles Part 1: Fieldbus profiles". IEC TC 65/SC 65C. 2019. IEC 61784-1. Retrieved 2020-04-28.
[9]Qishen, Z. (2010). Research and application of industrial field bus gateway based on AT91RM9200. 2010 IEEE International Conference on Software Engineering and Service Sciences.
[10]Wang Zhongfen, Yu Haibin, “Research and Application of MultiFieldbus Integrating Distributed Industrial Control System”, Chinese Journal of Scientific Instrument, 2004.
[11]Modbus Wikipedia,(2022) Retrieved from https://en.wikipedia.org/wiki/Modbus.
[12]Modbus Organization,(2022) Retrieved from https://modbus.org/
[13]Modbus Tool,(2022) Retrieved from https://www.modbustools.com/
[14]Sridhar, K., et al. (2003). EMI issues of universal serial bus and solutions. 8th International Conference on Electromagnetic Interference and Compatibility.
[15]MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1b,(2022) Retrieved from https://modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf
[16]MODBUS over Serial Line Specification and Implementation Guide V1.02,(2022) Retrieved from https://modbus.org/docs/Modbus_over_serial_line_V1_02.pdf
[17]Klinachev, N. V. and P. O. Shaburov (2017). Technique for debugging of the data exchange between the PC and microprocessor-controlled electromechanical systems based on the modbus RTU protocol. 2017 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM).
[18]MODBUS MESSAGING ON TCP/IP IMPLEMENTATION GUIDE V1.0b,(2022) Retrieved from
https://www.modbus.org/docs/Modbus_Messaging_Implementation_Guide_V1_0b.pdf
[19]Deng, L., et al. (2016). Intrusion Detection Method Based on Support Vector Machine Access of Modbus TCP Protocol. 2016 IEEE International Conference on Internet of Things (iThings) and IEEE Green Computing and Communications (GreenCom) and IEEE Cyber, Physical and Social Computing (CPSCom) and IEEE Smart Data (SmartData).
[20]資料傳輸_百度百科,(2022) Retrieved from https://baike.baidu.com/item/%E6%95%B0%E6%8D%AE%E4%BC%A0%E8%BE%93/2987565
[21]同軸電纜- 維基百科,自由的百科全書,(2022) Retrieved from https://zh.wikipedia.org/wiki/%E5%90%8C%E8%BD%B4%E7%94%B5%E7%BC%86
[22]Chen, J., et al. (2009). EMC comparison of unshielded twisted pair and shielded twist pair in automotive CAN-bus. 2009 IEEE Intelligent Vehicles Symposium.
[23]光導纖維- 維基百科,自由的百科全書,(2022) Retrieved from https://zh.wikipedia.org/wiki/%E5%85%89%E5%B0%8E%E7%BA%96%E7%B6%AD
[24]第一章基本通訊介紹,(2022) Retrieved from
https://www.ccut.edu.tw/adminSection/ace/downloads/ch01.pdf
[25]同步傳輸 - 中文百科知識,(2022) Retrieved from
https://www.easyatm.com.tw/wiki/%E5%90%8C%E6%AD%A5%E5%82%B3%E8%BC%B8
[26]異步傳輸 - 中文百科知識,(2022) Retrieved from
https://www.easyatm.com.tw/wiki/%E7%95%B0%E6%AD%A5%E5%82%B3%E8%BC%B8
[27]Jin, X., et al. (2014). Design of silicon-based Transient Voltage Suppressor to meet IEC system-level ESD specification for RS485 transceiver. 2014 12th IEEE International Conference on Solid-State and Integrated Circuit Technology (ICSICT).
[28]必備的RS485接口知識 - THC鴻慶科技有限公司,(2017) Retrieved from http://www.thcsys.com.tw/tech-inner.php?tech_id=25
[29]Saha, S., et al. (2013). Design and implementation of a BIST embedded high speed RS-422 utilized UART over FPGA. 2013 Fourth International Conference on Computing, Communications and Networking Technologies (ICCCNT).
[30]RS-485 Basics Series,(2022) Retrieved from https://www.ti.com.cn/cn/lit/pdf/slla545
[31]Sun, L. and P. Xu (2011). Design and implement of RS-485 bus fault injection. The Proceedings of 2011 9th International Conference on Reliability, Maintainability and Safety.
[32]Hongwei, L. (2011). Study on the fault detection of railway signaling cable based on wavelet and virtual instrument. 2011 IEEE 3rd International Conference on Communication Software and Networks.
[33]SHT3x-DIS Humidity and Temperature Sensor,(2022) Retrieved from https://www.mouser.com/datasheet/2/682/Sensirion_Humidity_Sensors_SHT3x_Datasheet_digital-971521.pdf
[34]STM8S003F3 16-MHz STM8S 8-bit MCU,(2022) Retrieved from https://www.st.com/resource/en/datasheet/stm8s003f3.pdf
[35]RS-485/RS-422 Transceivers,(2022) Retrieved from https://datasheets.maximintegrated.com/en/ds/MAX1487-MAX491.pdf
[36]STM32F103C8 32-bit MCU with 64 or 128 KB Flash,(2022) Retrieved from https://www.st.com/resource/en/datasheet/stm32f103c8.pdf
[37]SSP3085 RS-485/RS-422 收發器,(2022) Retrieved from https://datasheet.lcsc.com/lcsc/2101201031_Shanghai-Siproin-Microelectronics-SSP3085_C410986.pdf
[38]DAQM-4206使用說明書2021(1),(2022) Retrieved from http://www.xazeal.com/col.jsp?id=111
[39]USB 匯流排轉接晶片 CH341,(2022) Retrieved from https://datasheet.lcsc.com/lcsc/2008191734_WCH-Jiangsu-Qin-Heng-CH341A_C13517.pdf
[40]Bai, L., et al. (2010). Research on the detecting system of distributed nodes based on RS-485 bus. 2010 International Conference on Educational and Network Technology.
[41]American wire gauge,(2022) Retrieved from https://en.wikipedia.org/wiki/American_wire_gauge
[42]WinForm - 中文百科知識,(2022) Retrieved from https://www.easyatm.com.tw/wiki/WinForm
[43]System.IO.Ports 命名空間,(2022) Retrieved from https://docs.microsoft.com/zh-tw/dotnet/api/system.io.ports?view=dotnet-plat-ext-6.0
[44]Microsoft SQL Server - 維基百科,自由的百科全書,(2022) Retrieved from https://zh.wikipedia.org/wiki/Microsoft_SQL_Server
[45]John L. Hennessy, David A. Patterson, “Computer Architecture: A Quantitative Approach”, 4th Edition. Elsevier Inc, 2007.
[46]Silberschatz, A., Galvin, P. B., & Gagne, G. (2003). Operating system concepts. Hoboken, NJ: Wiley.
[47]RS-485 Cable: Critical to System Operation,(2018) Retrieved from
https://www.belden.com/blogs/rs-485-cable-critical-to-system-operation
[48]C# 使用BackgroundWorker 背景執行 - Tony Blog,(2011) Retrieved from
https://blog.tonycube.com/2011/04/backgroundworker.html
[49]EventHandler Delegate (System) | Microsoft Docs,(2022) Retrieved from
https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler?view=net-6.0
[50]Dapper - a simple object mapper for .Net - GitHub,(2021) Retrieved from
https://github.com/DapperLib/Dapper
[51]RS485 & RS422 Basics - NOVUS Automation,(2021) Retrieved from
https://www.novusautomation.com/downloads/Arquivos/rs485%20&%20rs422%20basics%20-%20english.pdf
[52]The RS-485 Design Guide (Rev. D) - Texas Instruments,(2021) Retrieved from https://www.ti.com/lit/an/slla272d/slla272d.pdf?ts=1655168816047&ref_url=https%253A%252F%252Fwww.google.com%252F
[53]M. Siripruchyanun and P. Wardkein, “Temperature-insensitive and electronically adjustable triangular/square wave generation based on novel Schmitt trigger oscillator,” International symposium on Integrated Circuits (ISIC01), Singapore, 2001.
QRCODE
 
 
 
 
 
                                                                                                                                                                                                                                                                                                                                                                                                               
第一頁 上一頁 下一頁 最後一頁 top