fix impiego valRead x evitare exceptions
This commit is contained in:
@@ -2520,7 +2520,16 @@ namespace MTC_Adapter
|
||||
{ }
|
||||
if (numero > 0)
|
||||
{
|
||||
istLoadAssi[numero - 1] = tabDatiAnag[i];
|
||||
try
|
||||
{
|
||||
valRead = tabDatiAnag[i];
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
valRead = 0;
|
||||
lg.Error(string.Format("Errore in recupero load assi:{0}parametro: {1}{0}i: {2}{0}Exc: {3}", Environment.NewLine, analogData[i].varName, i, exc));
|
||||
}
|
||||
istLoadAssi[numero - 1] = valRead;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user