aggiunto try-catch lettura allarmi CNC x FANUC (machcina no-axis con Fabio)
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user