From 67341653aaaf7cfe1be2012ddb2529e76e82ad74 Mon Sep 17 00:00:00 2001 From: lfncel Date: Wed, 16 Oct 2024 09:57:48 +0800 Subject: [PATCH] PLCTYPE_BYTE means uint8, so ADST_INT8 should mapped to PLCTYPE_SINT TYPE_BYTE means uint8, so ADST_INT8 should mapped to PLCTYPE_SINT --- pyads/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyads/constants.py b/pyads/constants.py index 9ca252f..d89f23e 100644 --- a/pyads/constants.py +++ b/pyads/constants.py @@ -127,7 +127,7 @@ class PLCTYPE_WSTRING: ads_type_to_ctype = { # ADST_VOID - ADST_INT8: PLCTYPE_BYTE, + ADST_INT8: PLCTYPE_SINT, ADST_UINT8: PLCTYPE_UBYTE, ADST_INT16: PLCTYPE_INT, ADST_UINT16: PLCTYPE_UINT,