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
Expose modbus `scan_batching` setting as a configurable field in the YAML. This devices how many contiguous registers are scanned in one read operation. The default of 100 remains the same.
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ port: 502
37
37
update_rate: 5
38
38
address_offset: 0
39
39
variant: sungrow
40
+
scan_batching: 100
40
41
```
41
42
42
43
`ip` (Required) The IP address of the modbus device to be polled. Presently only modbus TCP/IP is supported.
@@ -45,10 +46,12 @@ variant: sungrow
45
46
46
47
`update_rate` (Optional: default 5) The number of seconds between polls of the modbus device.
47
48
48
-
`address_offset` (Optional: default 0) This offset is applied to every register address to accomodate different Modbus addressing systems. In many Modbus devices the first register is enumerated as 1, other times 0. See section 4.4 of the Modbus spec.
49
+
`address_offset` (Optional: default 0) This offset is applied to every register address to accommodate different Modbus addressing systems. In many Modbus devices the first register is enumerated as 1, other times 0. See section 4.4 of the Modbus spec.
49
50
50
51
`variant`(Optional) Allows variants of the ModbusTcpClient library to be used. Setting this to 'sungrow' enables support of SungrowModbusTcpClient. This library transparently decrypts the modbus comms with sungrow SH inverters running newer firmware versions.
51
52
53
+
`scan_batching` (Optional: default 100) Modbus read operations are more efficient in bigger batches of contiguous registers, but different devices have different limits on the size of the batched reads. This setting can also be helpful when building a modbus register map for an uncharted device. In some modbus devices a single invalid register in a read range will fail the entire read operation. By setting `scan_batching` to `1` each register will be scanned individually. This will be very inefficient and should not be used in production as it will saturate the link with many read operations.
0 commit comments