【原创】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.
未完待续

posted @ 2021-11-01 11:22  肆月黄妙之  阅读(2910)  评论(0编辑  收藏  举报