aggiunto try-catch lettura allarmi CNC x FANUC (machcina no-axis con Fabio)

This commit is contained in:
Samuele E. Locatelli
2017-09-05 15:55:30 +02:00
parent 1b9f5c6896
commit eb48e13f80
3 changed files with 1664 additions and 1655 deletions
Binary file not shown.
File diff suppressed because it is too large Load Diff
+10 -3
View File
@@ -845,10 +845,17 @@ namespace MTC_Adapter
parentForm.commPlcActive = true;
inizio = DateTime.Now;
allarmiCNC = FANUC_ref.getCncAlarm();
if (utils.CRB("recTime")) TimingData.addResult("R-CNC-ALARMS", DateTime.Now.Subtract(inizio).Ticks);
try
{
allarmiCNC = FANUC_ref.getCncAlarm();
if (utils.CRB("recTime")) TimingData.addResult("R-CNC-ALARMS", DateTime.Now.Subtract(inizio).Ticks);
checkCNCAlarms();
}
catch (Exception exc)
{
lg.Error(string.Format("Errore in recupero Allarmi CNC{0}{1}", Environment.NewLine, exc));
}
parentForm.commPlcActive = false;
checkCNCAlarms();
}
else
{