added ac300

This commit is contained in:
Patrick762 committed 2024-02-17 20:09:59 +01:00
1 parent d9d4860d44
commit 928ff2bf5d
4 files changed
+158 -10

No files matched your search

@@ -31,18 +31,18 @@ class AC200M(ProtocolV1Device):
@property
def pack_num_max(self):
return 3
@property
def polling_commands(self) -> List[ReadHoldingRegisters]:
return super().polling_commands + [
ReadHoldingRegisters(70, 4),
ReadHoldingRegisters(86, 3),
]
@property
def writable_ranges(self) -> List[range]:
return super().writable_ranges + [range(3060, 3061)]
@property
def pack_polling_commands(self) -> List[ReadHoldingRegisters]:
return super().pack_polling_commands + [ReadHoldingRegisters(105, 16)]