You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/modbus_controller.rst
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,14 +73,14 @@ Configuration variables:
73
73
74
74
- **max_cmd_retries** (*Optional*, integer): How many times a command will be retried if no response is received. It doesn't include the initial transmition. Defaults to 4.
75
75
76
-
- **server_courtesy_response** (*Optional*): A configuration block used to enable a courtesy response when acting as a Modbus server.
77
-
If present in the configuration, the courtesy response feature is enabled.
78
-
79
-
- **register_count** (*Optional*, integer): The highest Modbus register address (inclusive) up to which undefined registers are allowed to be read and will be padded with a default value.
80
-
Any read request that includes undefined registers within this range will return the value specified by ``register_value`` instead of triggering an exception.
81
-
Defaults to ``65535``.
82
-
83
-
- **register_value** (*Optional*, integer): The 16-bit value (range: 0–65535) to return for undefined registers within the address range defined by ``register_count``.
76
+
- **server_courtesy_response** (*Optional*): Configuration block to enable the courtesy response feature when the device is acting as a Modbus server.
77
+
78
+
- **enabled** (*Optional*, boolean): Whether to enable the courtesy response feature.
79
+
Defaults to ``false``.
80
+
- **register_last_address** (*Optional*, integer): The highest Modbus register address (inclusive) up to which undefined registers are allowed to be read and will be padded with a default value.
81
+
Any read request that includes undefined registers within this range will return the value specified by ``register_value`` instead of triggering an exception.
82
+
Defaults to ``65535``
83
+
- **register_value** (*Optional*, integer): The 16-bit value (range: 0–65535) to return for undefined registers within the address range defined by ``register_last_address``.
84
84
Defaults to ``0``.
85
85
86
86
- **server_registers** (*Optional*): A list of registers that are responded to when acting as a server.
0 commit comments