| 
									
										
										
										
											2023-05-04 17:25:41 +08:00
										 |  |  | ESP-Modbus
 | 
					
						
							|  |  |  | ==========
 | 
					
						
							|  |  |  | :link_to_translation:`en:[English]`
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 乐鑫的 ESP-Modbus 库 (esp-modbus) 支持基于 RS485、Wi-Fi 和以太网接口的 Modbus 通信。
 | 
					
						
							| 
									
										
										
										
											2023-05-05 10:54:26 +08:00
										 |  |  | 自 ESP-IDF v5.0 版本以来, 组件 ``freemodbus`` 已被移动到单独的代码仓库中:
 | 
					
						
							| 
									
										
										
										
											2023-05-04 17:25:41 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | * `GitHub 上的 ESP-Modbus 组件 <https://github.com/espressif/esp-modbus>`__
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 托管文档
 | 
					
						
							|  |  |  | --------------------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 相应文档请参阅:
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * `ESP-Modbus 文档 <https://docs.espressif.com/projects/esp-modbus>`__
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 应用示例
 | 
					
						
							|  |  |  | -------------------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 以下示例分别介绍了 ESP-Modbus 库的串行端口、TCP 端口的从机和主机实现。
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | - :example:`protocols/modbus/serial/mb_slave`
 | 
					
						
							|  |  |  | - :example:`protocols/modbus/serial/mb_master`
 | 
					
						
							|  |  |  | - :example:`protocols/modbus/tcp/mb_tcp_slave`
 | 
					
						
							|  |  |  | - :example:`protocols/modbus/tcp/mb_tcp_master`
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 详情请参阅具体示例的 ``README.md`` 。
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 协议参考
 | 
					
						
							|  |  |  | -------------------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     -  Modbus 组织与规范协议请参阅 `The Modbus Organization <https://modbus.org/specs.php>`_。
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 |