From 02aa343f99a6d5d0a1d748f5f318e5f8f736108f Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 29 Jun 2020 18:56:26 +0200 Subject: [PATCH] Added path for PLC Alarm/message decoding + other translations --- CMS_CORE_Library/S7Net/Nc_S7Net.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMS_CORE_Library/S7Net/Nc_S7Net.cs b/CMS_CORE_Library/S7Net/Nc_S7Net.cs index 80ff905..147d314 100644 --- a/CMS_CORE_Library/S7Net/Nc_S7Net.cs +++ b/CMS_CORE_Library/S7Net/Nc_S7Net.cs @@ -41,6 +41,8 @@ namespace CMS_CORE_Library.S7Net // Alarms data private static Dictionary PlcMessages; + private const string PLC_MESSAGE_PATH = "C:/CMS/S7NET/"; + private const string THERMO_DICT_PATH = "C:/CMS/ThermoActive/Dict/"; private static ushort SelectedProcess = 1; @@ -206,8 +208,6 @@ namespace CMS_CORE_Library.S7Net /// public override CmsError NC_GetTranslatedPlcMessages(string language, ref Dictionary messages) { - // FIXME TODO -#if false string filePath; try { @@ -234,8 +234,7 @@ namespace CMS_CORE_Library.S7Net { return ManageException(ex); } -#endif - return FUNCTION_NOT_ALLOWED_ERROR; + return NO_ERROR; } /// /// Elenco lingue disponibili @@ -568,7 +567,6 @@ namespace CMS_CORE_Library.S7Net for (i = 0; i < ALARMS_STATUS.Size * 8; i++) { // If alarm is active - //if (statusBits[i]) if (bArray[i]) { // Calculate matching alarm byte info address