From 151346bb19c81774009b9cc205fa0492492ce909 Mon Sep 17 00:00:00 2001 From: drunsinn Date: Thu, 20 Jun 2024 19:44:59 +0200 Subject: [PATCH] add dword support for plc input and output (#63) * add dword for input and output memory * add test and demo for input/output word and dword --- pyLSV2/client.py | 10 ++++++++++ pyLSV2/const.py | 2 ++ pyLSV2/scripts/demo.py | 6 +++++- tests/test_plc_read.py | 5 ++++- 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/pyLSV2/client.py b/pyLSV2/client.py index 6babd6d..d807725 100644 --- a/pyLSV2/client.py +++ b/pyLSV2/client.py @@ -1280,6 +1280,16 @@ def read_plc_memory( max_elements = self._sys_par.number_of_output_words mem_byte_count = 2 unpack_string = "