Merge branch 'release/Siemens_FixGetCurrOdlCalls_01'
This commit is contained in:
@@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user