From b760ee037a475cfd8de78faa775e6e66a51a5c33 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 30 Jun 2020 15:20:33 +0200 Subject: [PATCH] update PLC_RFunctionAccess (604.6) forced to true --- CMS_CORE_Library/S7Net/Nc_S7Net.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMS_CORE_Library/S7Net/Nc_S7Net.cs b/CMS_CORE_Library/S7Net/Nc_S7Net.cs index 96417c2..c65eb04 100644 --- a/CMS_CORE_Library/S7Net/Nc_S7Net.cs +++ b/CMS_CORE_Library/S7Net/Nc_S7Net.cs @@ -41,8 +41,7 @@ namespace CMS_CORE_Library.S7Net private static string UnitOfMeasure; // Alarms data - private static Dictionary PlcMessages; - private const string PLC_MESSAGE_PATH = "C:/CMS/S7NET/"; + private static Dictionary PlcMessages = new Dictionary(); private const string THERMO_DICT_PATH = @"Dict\"; private static ushort SelectedProcess = 1; @@ -221,7 +220,7 @@ namespace CMS_CORE_Library.S7Net langName = cultureInfo.Parent.EnglishName; //Setup the Path - filePath = PLC_MESSAGE_PATH + @"Messaggi_" + langName + @".txt"; + filePath = THERMO_DICT_PATH + @"Messaggi_" + langName + @".txt"; //Read From Files messages = File.ReadAllLines(filePath, Encoding.Default) @@ -760,7 +759,8 @@ namespace CMS_CORE_Library.S7Net functions.Add(new FunctionalityModel() { Id = (uint)i + 1, - IsActive = bits[i] + // forzo a true perché non gestita dal PLC + IsActive = true //bits[i] }); }