From 2fdd7b15b81ed0866753023fddddf8c07e04cc8c Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 10 May 2017 11:17:51 +0200 Subject: [PATCH] fix IP x OSAI, fix indirizzi OSAI... --- MTC_Adapter/MTC_Adapter/AdapterGeneric.cs | 2 +- MTC_Adapter/MTC_Adapter/AdapterOsai.cs | 6 +++--- MTC_Adapter/MTC_Adapter/App.config | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) 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"--> - + - - +