From aed58d5e1e9b61fe9904de7e44a997ced86bbc52 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 24 Aug 2018 12:28:09 +0200 Subject: [PATCH] typo x pulizia commenti --- MTC_Adapter/SCMA/AdapterGeneric.cs | 44 ------------------------------ 1 file changed, 44 deletions(-) diff --git a/MTC_Adapter/SCMA/AdapterGeneric.cs b/MTC_Adapter/SCMA/AdapterGeneric.cs index dbcba57..b2e397f 100644 --- a/MTC_Adapter/SCMA/AdapterGeneric.cs +++ b/MTC_Adapter/SCMA/AdapterGeneric.cs @@ -14,7 +14,6 @@ namespace SCMA #region macro oggetti da istanziare a blocchi da configurazione XML -#if true /// /// Singola pompa da vuoto, 0..n /// @@ -50,36 +49,6 @@ namespace SCMA dataRefList = baseElem.dataRefList; } } -#endif - -#if false - /// - /// Singola pompa da vuoto, 0..n - /// - public class VacuumPump : element - { - /// - /// valore indca stato aperto/chiuso - /// - public MTConnect.Event mVacPumpStatus; - /// - /// valore work time della pompa vuoto - /// - public MTConnect.Event mVacPumpWrkTime; - /// - /// Classe Vacuum Pump (pompa) - /// - /// element base contenente parametri (da XML) - public VacuumPump(element baseElem) - { - ident = baseElem.ident; - dataRefList = baseElem.dataRefList; - - mVacPumpStatus = new MTConnect.Event(string.Format("{0}_Status", ident)); - mVacPumpWrkTime = new MTConnect.Event(string.Format("{0}_WrkTime", ident)); - } - } -#endif /// /// Singolo attuatore vuoto, 0..n @@ -737,10 +706,6 @@ namespace SCMA vettVacPump[i] = new VacuumPump(adpConf.VacuumPump[i]); currGateway.addItemNodeAndSet(vettVacPump[i].statusKey, itemType.Event, availStatus.UNAVAILABLE.ToString()); currGateway.addItemNodeAndSet(vettVacPump[i].workTimeKey, itemType.Event, availStatus.UNAVAILABLE.ToString()); -#if false - currGateway.addItemNode(vettVacPump[i].mVacPumpStatus); - currGateway.addItemNode(vettVacPump[i].mVacPumpWrkTime); -#endif } // Attuatori vuoto @@ -3800,9 +3765,6 @@ namespace SCMA if (numero > 0) { currGateway.updateItemNodeValue(vettVacPump[numero - 1].statusKey, status); -#if false - vettVacPump[numero - 1].mVacPumpStatus.Value = status; -#endif } } } @@ -4714,9 +4676,6 @@ namespace SCMA uint contTot = updateValUIntByIncr(i, delta, "VacPump_{0:00}_WrkTime"); // passo valore totale all'adapter currGateway.updateItemNodeValue(vettVacPump[i].workTimeKey, contTot); -#if false - vettVacPump[i].mVacPumpWrkTime.Value = contTot; -#endif // controllo valore riferimento... if (delta > 0) { @@ -4729,9 +4688,6 @@ namespace SCMA currVacPumpWrkTime[i] = valore; } outString += string.Format("{0} | ", currGateway.itemNodes[vettVacPump[i].workTimeKey]); -#if false - outString += string.Format("{0} | ", vettVacPump[i].mVacPumpWrkTime.Value); -#endif } // salvo su maschera... parentForm.dataMonitor_2 += string.Format("{0}{1}", outString.Substring(0, outString.Length - 3), Environment.NewLine);