diff --git a/MTC_Adapter/SCMA/AdapterGeneric.cs b/MTC_Adapter/SCMA/AdapterGeneric.cs index 67930f1..5e8f9b1 100644 --- a/MTC_Adapter/SCMA/AdapterGeneric.cs +++ b/MTC_Adapter/SCMA/AdapterGeneric.cs @@ -114,12 +114,6 @@ namespace SCMA /// public class SlittaMag : element { -#if false - /// - /// valore numero attivazioni/disattivazioni slitta magazzino - /// - public MTConnect.Event mSlittaMagCount; -#endif /// /// valore contatore (numero attivazioni/disattivazioni slitta magazzino) /// @@ -138,9 +132,6 @@ namespace SCMA { ident = baseElem.ident; dataRefList = baseElem.dataRefList; -#if false - mSlittaMagCount = new MTConnect.Event(string.Format("{0}_Count", ident)); -#endif } } /// @@ -148,12 +139,6 @@ namespace SCMA /// public class ProtMag : element { -#if false - /// - /// valore numero attivazioni/disattivazioni valvola - /// - public MTConnect.Event mProtMagCount; -#endif /// /// valore contatore (numero attivazioni/disattivazioni valvola) /// @@ -172,9 +157,6 @@ namespace SCMA { ident = baseElem.ident; dataRefList = baseElem.dataRefList; -#if false - mProtMagCount = new MTConnect.Event(string.Format("{0}_Count", ident)); -#endif } } /// @@ -182,12 +164,6 @@ namespace SCMA /// public class Cooler : element { -#if false - /// - /// Stato istantaneo (evento aperto/chiuso) - /// - public MTConnect.Event mCoolStatus; -#endif /// /// Stato: ACTIVE/INACTIVE /// @@ -206,9 +182,6 @@ namespace SCMA { ident = baseElem.ident; dataRefList = baseElem.dataRefList; -#if false - mCoolStatus = new MTConnect.Event(string.Format("{0}_Status", ident)); -#endif } } /// @@ -3886,9 +3859,6 @@ namespace SCMA if (numero > 0) { currGateway.updateItemNodeValue(vettCooler[numero - 1].statusKey, status); -#if false - vettCooler[numero - 1].mCoolStatus.Value = status; -#endif } } } @@ -4909,9 +4879,6 @@ namespace SCMA uint contTot = updateValUIntByIncr(i, delta, "SlittaMagazzino_{0:00}_Count"); // passo valore totale all'adapter currGateway.updateItemNodeValue(vettSlittaMag[i].countKey, contTot); -#if false - vettSlittaMag[i].mSlittaMagCount.Value = contTot; -#endif // controllo valore riferimento... if (delta > 0) { @@ -4924,9 +4891,6 @@ namespace SCMA currSlittaMag[i] = valore; } outString += string.Format("{0} | ", currGateway.itemNodes[vettSlittaMag[i].countKey]); -#if false - outString += string.Format("{0} | ", vettSlittaMag[i].mSlittaMagCount.Value); -#endif } // salvo su maschera... parentForm.dataMonitor_2 += string.Format("{0}{1}", outString.Substring(0, outString.Length - 3), Environment.NewLine); @@ -4957,9 +4921,6 @@ namespace SCMA uint contTot = updateValUIntByIncr(i, delta, "ProtMagazzino_{0:00}_Count"); // passo valore totale all'adapter currGateway.updateItemNodeValue(vettProtMag[i].countKey, contTot); -#if false - vettProtMag[i].mProtMagCount.Value = contTot; -#endif // controllo valore riferimento... if (delta > 0) { @@ -4972,9 +4933,6 @@ namespace SCMA currProtMag[i] = valore; } outString += string.Format("{0} | ", currGateway.itemNodes[vettProtMag[i].countKey]); -#if false - outString += string.Format("{0} | ", vettProtMag[i].mProtMagCount.Value); -#endif } // salvo su maschera... parentForm.dataMonitor_2 += string.Format("{0}{1}", outString.Substring(0, outString.Length - 3), Environment.NewLine);