diff --git a/MTC_Sim/MTC_Sim/AdapterGeneric.cs b/MTC_Sim/MTC_Sim/AdapterGeneric.cs
index c83841a..2c6b5f2 100644
--- a/MTC_Sim/MTC_Sim/AdapterGeneric.cs
+++ b/MTC_Sim/MTC_Sim/AdapterGeneric.cs
@@ -1920,6 +1920,7 @@ namespace MTC_Adapter
#region metodi che prevedono salvataggio valori su file XML
+#if false
///
/// Aggiorna un valore RefList del vettore PATH in OVERWRITE
///
@@ -2005,13 +2006,14 @@ namespace MTC_Adapter
// salvo in adapter!
currAdpConf.Axis[i].dataRefList = listaDR;
return contTot;
- }///
- /// Aggiorna un valore RefList del vettore Axis in INCREMENTO tipo double e lo restituisce
- ///
- ///
- ///
- ///
- /// Nuovo valore incrementato
+ }
+ ///
+ /// Aggiorna un valore RefList del vettore Axis in INCREMENTO tipo double e lo restituisce
+ ///
+ ///
+ ///
+ ///
+ /// Nuovo valore incrementato
private double updateAxisRefListByIncrDouble(int i, double delta, string searchString)
{
// leggo tutti i dati...
@@ -2108,6 +2110,8 @@ namespace MTC_Adapter
return contTot;
}
+#endif
+
///
/// Processing delle ore macchina ACCESA
///
@@ -2118,15 +2122,18 @@ namespace MTC_Adapter
// controllo valore riferimento...
if (istOreMaccOn > contOreMaccOn)
{
- double deltaTime = istOreMaccOn - contOreMaccOn;
- currAdpConf.ContOreMaccOn += deltaTime;
+ double delta = istOreMaccOn - contOreMaccOn;
+ double contatore = updateValDoubleByIncr(0, delta, "ACC_TIME");
+ currAdpConf.ContOreMaccOn += delta;
+ // salvo valore su persistent layer
+ mAccTime.Value = contatore.ToString("0.000", CultureInfo.InvariantCulture);
// segnalo necessità salvataggio!
needSave = true;
}
// ...aggiorno valore riferimento...
contOreMaccOn = istOreMaccOn;
- // passo valore in ORE (float) all'adapter
- mAccTime.Value = currAdpConf.ContOreMaccOn.ToString("0.000", CultureInfo.InvariantCulture);
+ //// passo valore in ORE (float) all'adapter
+ //mAccTime.Value = currAdpConf.ContOreMaccOn.ToString("0.000", CultureInfo.InvariantCulture);
return needSave;
}
///
@@ -2149,7 +2156,7 @@ namespace MTC_Adapter
}
// ...aggiorno valore riferimento...
contOreMaccLav = istOreMaccLav;
- // passo valore in ORE (float) all'adapter
+ //// passo valore in ORE (float) all'adapter
//mAccTimeWork.Value = currAdpConf.ContOreMaccLav.ToString("0.000", CultureInfo.InvariantCulture);
return needSave;
}