diff --git a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs index 02acdfa..d14d973 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs @@ -1422,7 +1422,7 @@ namespace MTC_Adapter // chiudo file file.Close(); // ora trimmo vettore al solo numero VERO dei valori caricati... - Array.Resize(ref maintData, numRiga); + Array.Resize(ref analogData, numRiga); if (utils.CRB("verbose")) lg.Info(string.Format("Fine caricamento vettore di {0} variabili analogiche gestite", numRiga)); } diff --git a/MTC_Adapter/MTC_Adapter/AdapterOsai.cs b/MTC_Adapter/MTC_Adapter/AdapterOsai.cs index 5fa5617..6306cf5 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterOsai.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterOsai.cs @@ -1257,9 +1257,9 @@ namespace MTC_Adapter protected override void loadOtherFile() { base.loadOtherFile(); - loadMaintData("MW", 19166, 2); - //loadStatusData("ML", 19426, 2); - loadStatusData("GL", 500, 1); + //loadMaintData("MW", 19166, 2); + loadMaintData("GL", 500, 1); + loadStatusData("M", 19426, 1); //loadAnalogData("ML", 19434, 2); loadAnalogData("ML", 9717, 1); } diff --git a/MTC_Adapter/MTC_Adapter/App.config b/MTC_Adapter/MTC_Adapter/App.config index 86cbef2..d0d2fe0 100644 --- a/MTC_Adapter/MTC_Adapter/App.config +++ b/MTC_Adapter/MTC_Adapter/App.config @@ -25,14 +25,14 @@ ipPLC = "192.168.139.100"--> - + - - +