diff --git a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs
index 2f5cfa7..5cc7678 100644
--- a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs
+++ b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs
@@ -806,7 +806,7 @@ namespace MTC_Adapter
/// Contenuto valori status data da PLC
///
public otherData[] statusData;
-
+
///
/// data-ora ultimo controllo movimento assi
///
@@ -1036,6 +1036,14 @@ namespace MTC_Adapter
/// Stato protezioni (0/1, off/on)
///
public Event mProtectionStatus = new Event("PROTECTION_STATUS");
+ ///
+ /// Vettore EVENTS letti da area status
+ ///
+ public Event[] mStatusEvents;
+ ///
+ /// Vettore SAMPLES letti da area AnalogData
+ ///
+ public Event[] mAnalogDataSamples;
#endregion
@@ -1480,6 +1488,13 @@ namespace MTC_Adapter
Array.Resize(ref statusData, numRiga);
if (utils.CRB("verbose")) lg.Info(string.Format("Fine caricamento vettore di {0} variabili status gestite", numRiga));
+ // ora inizializzo l''insieme degli eventi di status
+ mStatusEvents = new Event[numRiga];
+ for (int i = 0; i < numRiga; i++)
+ {
+ mStatusEvents[i] = new Event(statusData[i].varName);
+ }
+ if (utils.CRB("verbose")) lg.Info(string.Format("inizializzato vettore di {0} MTC.EVENTS di status", numRiga));
}
///
/// caricamento allarmi da file