diff --git a/IOB-WIN/IobSiemens.cs b/IOB-WIN/IobSiemens.cs index 49b4f424..7f75a05f 100644 --- a/IOB-WIN/IobSiemens.cs +++ b/IOB-WIN/IobSiemens.cs @@ -932,7 +932,6 @@ namespace IOB_WIN } else { - lgInfo("getDynData: step 01"); try { // processo x ogni valore configurato... @@ -1002,7 +1001,10 @@ namespace IOB_WIN { lgInfo($"Non processo getDynData: enableTSVC = false"); } - lgInfo($"Esito getDynData: {outVal.Count} valori in outVal"); + if (periodicLog || outVal.Count > 0) + { + lgInfo($"Esito getDynData: {outVal.Count} valori VALIDI in outVal"); + } return outVal; } diff --git a/IOB-WIN/IobSiemensAt2001.cs b/IOB-WIN/IobSiemensAt2001.cs index c58ea171..653c7613 100644 --- a/IOB-WIN/IobSiemensAt2001.cs +++ b/IOB-WIN/IobSiemensAt2001.cs @@ -2,7 +2,6 @@ using Newtonsoft.Json; using System; using System.Collections.Generic; -using System.Linq; namespace IOB_WIN { @@ -164,9 +163,12 @@ namespace IOB_WIN { Dictionary outVal = new Dictionary(); // controllo se eseguire versione base del getDynData +#if false if (getOptPar("NEW_DYN_DATA") != "") - { - outVal = base.getDynData(); + { +#endif + outVal = base.getDynData(); +#if false } else { @@ -263,7 +265,8 @@ namespace IOB_WIN lgError(exc, "Errore in getDynData x Siemens AT2001"); } } - } + } +#endif return outVal; }