typo x pulizia commenti

This commit is contained in:
Samuele E. Locatelli
2018-08-24 12:28:09 +02:00
parent e8882c852f
commit aed58d5e1e
-44
View File
@@ -14,7 +14,6 @@ namespace SCMA
#region macro oggetti da istanziare a blocchi da configurazione XML
#if true
/// <summary>
/// Singola pompa da vuoto, 0..n
/// </summary>
@@ -50,36 +49,6 @@ namespace SCMA
dataRefList = baseElem.dataRefList;
}
}
#endif
#if false
/// <summary>
/// Singola pompa da vuoto, 0..n
/// </summary>
public class VacuumPump : element
{
/// <summary>
/// valore indca stato aperto/chiuso
/// </summary>
public MTConnect.Event mVacPumpStatus;
/// <summary>
/// valore work time della pompa vuoto
/// </summary>
public MTConnect.Event mVacPumpWrkTime;
/// <summary>
/// Classe Vacuum Pump (pompa)
/// </summary>
/// <param name="baseElem">element base contenente parametri (da XML)</param>
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
/// <summary>
/// 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);