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
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,18 @@ 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``.
84
+
Defaults to ``0``.
85
+
76
86
- **server_registers** (*Optional*): A list of registers that are responded to when acting as a server.
87
+
77
88
- **address** (**Required**, integer): start address of the first register in a range
78
89
- **value_type** (*Optional*): datatype of the mod_bus register data. The default data type for ModBUS is a 16 bit integer in **big endian** format (network byte order, MSB first)
0 commit comments