【原創】ESP32學習之modbus通信


what is modbus?
Modbus 是一種用於在設備與設備、設備與軟件/應用程序以及設備與 HMI 之間進行通信的協議。它廣泛用於工業領域以控制/監視設備。
簡單來說,Modbus 是一種設備用來與其他設備、軟件/應用程序和 HMI 設備進行通信的語言。

When to use and Not use Modbus?
系統復雜
系統要求可靠性高
ESP32需要與其它設備配合使用

How Modbus protocol works?

  1. Master and Slave
  2. Request and Response
    Fucntion Code (FC) and Address

1 byte, is the command,which tells Slave what to do.

modbus RTU/ASCll 和 Modbus TCP
three popular Modbus types:modbus RTU,modbus ASCII, and modbus TCP.
I considered that using modbus RTU/UART,ignoring modbus TCP.
未完待續


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM