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] }); }