From 8f94fe85bca0722bd6b7f28a48db2e7157564203 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 15 Sep 2020 13:04:56 +0200 Subject: [PATCH] Fix S7net x M156 cycle --- CMS_CORE_Library/S7Net/Nc_S7Net.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMS_CORE_Library/S7Net/Nc_S7Net.cs b/CMS_CORE_Library/S7Net/Nc_S7Net.cs index 2c97612..05877a5 100644 --- a/CMS_CORE_Library/S7Net/Nc_S7Net.cs +++ b/CMS_CORE_Library/S7Net/Nc_S7Net.cs @@ -1051,7 +1051,7 @@ namespace CMS_CORE_Library.S7Net byte val = 0; List vals = new List(); - CmsError libraryError = MEM_RWByte(R, true, 0, M156_INPUT_NEEDED.MemType, M156_INPUT_NEEDED.Address, M156_INPUT_NEEDED.SubAddress, 0, ref val); + CmsError libraryError = MEM_RWByte(R, false, 0, M156_INPUT_NEEDED.MemType, M156_INPUT_NEEDED.Address, M156_INPUT_NEEDED.SubAddress, 0, ref val); if (libraryError.IsError()) return libraryError; @@ -3432,7 +3432,7 @@ namespace CMS_CORE_Library.S7Net List ListValue = new List() { Value }; //uses the List method with one-element list - CmsError libraryError = MEM_RWDoubleList(bWrite, Process, MemType, MemTable, MemIndex, 1, ref ListValue); + CmsError libraryError = MEM_RWDoubleList(bWrite, Process, MemType, MemTable, MemIndex, 4, ref ListValue); if (libraryError.IsError()) return libraryError;