fix init oggetti sampleVect
This commit is contained in:
@@ -1787,6 +1787,11 @@ namespace MTC_Adapter
|
||||
// resetto running flag...
|
||||
adpCommAct = false;
|
||||
|
||||
// avvio i sample vectors...
|
||||
istOreMaccOn = new sampleVect();
|
||||
istOreMaccLav = new sampleVect();
|
||||
istSlittaTast = new sampleVect();
|
||||
|
||||
// carico valori da adapter x i conteggi
|
||||
contOreMaccOn = currAdpConf.ContOreMaccOn;
|
||||
contOreMaccLav = currAdpConf.ContOreMaccLav;
|
||||
@@ -1809,6 +1814,7 @@ namespace MTC_Adapter
|
||||
// salvo valore letto
|
||||
contGiriElettrom[i] = contTotGiri;
|
||||
currNumCambiUt[i] = contNumCU;
|
||||
istGiriElettrom[i] = new sampleVect();
|
||||
}
|
||||
// imposto num assi e leggo valori salvati...
|
||||
contDistMovAssi = new double[currAdpConf.nAxis];
|
||||
@@ -1833,7 +1839,10 @@ namespace MTC_Adapter
|
||||
contAccTimeAssi[i] = Convert.ToDouble(riAccTime.Value);
|
||||
vettAxis[i].mAxAlarmCNC.Normal();
|
||||
vettAxis[i].mAxAlarmPLC.Normal();
|
||||
|
||||
istDistMovAssi[i] = new sampleVect();
|
||||
istLoadAssi[i] = new sampleVect();
|
||||
istAccTimeAssi[i] = new sampleVect();
|
||||
istNumInvAssi[i] = new sampleVect();
|
||||
}
|
||||
currPathPartId = new string[currAdpConf.nPath];
|
||||
istPathPartId = new string[currAdpConf.nPath];
|
||||
@@ -1854,6 +1863,7 @@ namespace MTC_Adapter
|
||||
currPathProgrName[i] = "";
|
||||
vettPath[i].mPathAlarmCNC.Normal();
|
||||
vettPath[i].mPathAlarmPLC.Normal();
|
||||
istPathPartCount[i] = new sampleVect();
|
||||
}
|
||||
currVacPumpWrkTime = new uint[currAdpConf.nVacuumPump];
|
||||
istVacPumpWrkTime = new sampleVect[currAdpConf.nVacuumPump];
|
||||
@@ -1865,6 +1875,7 @@ namespace MTC_Adapter
|
||||
DataRefItem<string, string> riVacPumpWrk = listaDR.Find(x => x.Key == string.Format("VacPump_{0:00}_WrkTime", i + 1));
|
||||
// recupero valori...
|
||||
currVacPumpWrkTime[i] = Convert.ToUInt32(riVacPumpWrk.Value);
|
||||
istVacPumpWrkTime[i] = new sampleVect();
|
||||
}
|
||||
currVacActCount = new uint[currAdpConf.nVacuumAct];
|
||||
istVacActCount = new sampleVect[currAdpConf.nVacuumAct];
|
||||
@@ -1876,6 +1887,7 @@ namespace MTC_Adapter
|
||||
DataRefItem<string, string> riVacActCount = listaDR.Find(x => x.Key == string.Format("VacAct_{0:00}_Count", i + 1));
|
||||
// recupero valori...
|
||||
currVacActCount[i] = Convert.ToUInt32(riVacActCount.Value);
|
||||
istVacActCount[i] = new sampleVect();
|
||||
}
|
||||
currLubroCount = new uint[currAdpConf.nLubro];
|
||||
istLubroCount = new sampleVect[currAdpConf.nLubro];
|
||||
@@ -1887,6 +1899,7 @@ namespace MTC_Adapter
|
||||
DataRefItem<string, string> riLubro = listaDR.Find(x => x.Key == string.Format("Lubro_{0:00}_Count", i + 1));
|
||||
// recupero valori...
|
||||
currLubroCount[i] = Convert.ToUInt32(riLubro.Value);
|
||||
istLubroCount[i] = new sampleVect();
|
||||
}
|
||||
currSlittaMag = new uint[currAdpConf.nSlittaMag];
|
||||
istSlittaMag = new sampleVect[currAdpConf.nSlittaMag];
|
||||
@@ -1898,6 +1911,7 @@ namespace MTC_Adapter
|
||||
DataRefItem<string, string> riSlittaMag = listaDR.Find(x => x.Key == string.Format("SlittaMagazzino_{0:00}_Count", i + 1));
|
||||
// recupero valori...
|
||||
currSlittaMag[i] = Convert.ToUInt32(riSlittaMag.Value);
|
||||
istSlittaMag[i] = new sampleVect();
|
||||
}
|
||||
currProtMag = new uint[currAdpConf.nProtMag];
|
||||
istProtMag = new sampleVect[currAdpConf.nProtMag];
|
||||
@@ -1909,6 +1923,7 @@ namespace MTC_Adapter
|
||||
DataRefItem<string, string> riProtMag = listaDR.Find(x => x.Key == string.Format("ProtMagazzino_{0:00}_Count", i + 1));
|
||||
// recupero valori...
|
||||
currProtMag[i] = Convert.ToUInt32(riProtMag.Value);
|
||||
istProtMag[i] = new sampleVect();
|
||||
}
|
||||
|
||||
//mAlarmSystem.Normal();
|
||||
|
||||
Reference in New Issue
Block a user