From 39b0bc1cd0f2b8faa0cee2751c2369f6222764c8 Mon Sep 17 00:00:00 2001 From: Frederic Chastagnol Date: Tue, 13 Jun 2023 20:38:09 +0200 Subject: [PATCH] Fix write function codes Replace 0x15 with 0x0F and 0x16 with 0x10 Remove 0x17 (it should be 0x11) since this is a machine dependent code --- pymodbus/datastore/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymodbus/datastore/remote.py b/pymodbus/datastore/remote.py index 2eeb1b4ca..73f59cdfa 100644 --- a/pymodbus/datastore/remote.py +++ b/pymodbus/datastore/remote.py @@ -113,7 +113,7 @@ def __build_mapping(self): a, v, **kwargs ), } - self._write_fc = (0x05, 0x06, 0x15, 0x16, 0x17) + self._write_fc = (0x05, 0x06, 0x0F, 0x10) def __extract_result(self, fc_as_hex, result): """Extract the values out of a response.