From 1592d9407a4dab84a4febc8f90fc764f0e3e22e4 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 28 Apr 2026 16:53:02 +0200 Subject: [PATCH] =?UTF-8?q?Cleanup=20gestione=20siemens=20(non=20cambia=20?= =?UTF-8?q?davvero=20per=C3=B2...)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IOB-WIN-SIEMENS/IobSiemens/SiemensTorri.cs | 35 +--------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/IOB-WIN-SIEMENS/IobSiemens/SiemensTorri.cs b/IOB-WIN-SIEMENS/IobSiemens/SiemensTorri.cs index 5fcb8892..7de3466f 100644 --- a/IOB-WIN-SIEMENS/IobSiemens/SiemensTorri.cs +++ b/IOB-WIN-SIEMENS/IobSiemens/SiemensTorri.cs @@ -362,39 +362,6 @@ namespace IOB_WIN_SIEMENS.IobSiemens lgDebug($"SiemensTorri | Verifica ODL | IdxODL {currIdxODL}"); #endif - // 2026.04.24 tolto gestione ridondante -#if false - try - { - currODL = utils.callUrl(urlGetCurrODL); - // solo SE HO un ODL... - if (string.IsNullOrEmpty(currODL) || currODL == "0") - { - if (periodicLog) - { - lgInfo($"SiemensTorri | Lettura ODL andata a vuoto: currODL: {currODL}"); - } - } - else - { - // se variato o scaduto timeout log... - if (periodicLog || (currIdxODL.ToString() != currODL)) - { - lgInfo($"SiemensTorri | Lettura ODL, currODL: {currODL} --> currIdxODL prec: {currIdxODL}"); - } - // provo a salvare nuovo ODL - int.TryParse(currODL, out currIdxODL); - } - } - catch (Exception exc) - { - if (DateTime.Now.Subtract(lastWarnODL).TotalSeconds > 15) - { - lgError(exc, $"Errore in fase di chiamata URL x ODL corrente | URL chiamato: {urlGetCurrODL}"); - lastWarnODL = DateTime.Now; - } - } -#endif } else { @@ -406,7 +373,7 @@ namespace IOB_WIN_SIEMENS.IobSiemens } } - //verifico NON sia vietato gestione contapezzi + // verifico NON sia vietato gestione contapezzi if (!plcPzCountValid || !rawInputRead) { lgInfo($"Veto check contapezzi e ODL fino alle {dtVetoReadPzCount}");