fix init oggetti sampleVect..
This commit is contained in:
@@ -3368,7 +3368,7 @@ namespace MTC_Adapter
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (numero > 0 && istCounters.Length >= numero)
|
||||
if (numero > 0 && istCounters.Length >= numero)
|
||||
{
|
||||
istCounters[numero - 1].addValue(DateTime.Now, Convert.ToInt32(tabDatiMtz[i]));
|
||||
}
|
||||
@@ -4289,7 +4289,7 @@ namespace MTC_Adapter
|
||||
// segnalo necessità salvataggio!
|
||||
needSave = true;
|
||||
// ...aggiorno valore riferimento...
|
||||
currPathPartCount[i] = Convert.ToUInt32(istPathPartCount[i]);
|
||||
currPathPartCount[i] = Convert.ToUInt32(istPathPartCount[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettPath[i].mPathPartCount.Value);
|
||||
}
|
||||
@@ -4323,7 +4323,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
contGiriElettrom[i] = Convert.ToUInt32(istGiriElettrom[i]);
|
||||
contGiriElettrom[i] = Convert.ToUInt32(istGiriElettrom[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettUnOp[i].mUnOpAccTime.Value);
|
||||
}
|
||||
@@ -4342,7 +4342,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("UnOp_[1-{0}]_NumCU: ", currAdpConf.nUnOp);
|
||||
for (int i = 0; i < currAdpConf.nUnOp; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istNumCambiUt[i]) - currNumCambiUt[i];
|
||||
delta = Convert.ToUInt32(istNumCambiUt[i].vcMedian) - currNumCambiUt[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < uint.MaxValue / 2)
|
||||
{
|
||||
@@ -4357,7 +4357,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
currNumCambiUt[i] = Convert.ToUInt32(istNumCambiUt[i]);
|
||||
currNumCambiUt[i] = Convert.ToUInt32(istNumCambiUt[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettUnOp[i].mUnOpNumCU.Value);
|
||||
}
|
||||
@@ -4376,7 +4376,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("Axis_[1-{0}]_DistDone: ", currAdpConf.nAxis);
|
||||
for (int i = 0; i < currAdpConf.nAxis; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istDistMovAssi[i]) - contDistMovAssi[i];
|
||||
delta = Convert.ToUInt32(istDistMovAssi[i].vcMedian) - contDistMovAssi[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < double.MaxValue / 2)
|
||||
{
|
||||
@@ -4391,7 +4391,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
contDistMovAssi[i] = Convert.ToUInt32(istDistMovAssi[i]);
|
||||
contDistMovAssi[i] = Convert.ToUInt32(istDistMovAssi[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettAxis[i].mAxDistDone.Value);
|
||||
}
|
||||
@@ -4410,7 +4410,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("Axis_[1-{0}]_AccTime: ", currAdpConf.nAxis);
|
||||
for (int i = 0; i < currAdpConf.nAxis; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istAccTimeAssi[i]) - contAccTimeAssi[i];
|
||||
delta = Convert.ToUInt32(istAccTimeAssi[i].vcMedian) - contAccTimeAssi[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < double.MaxValue / 2)
|
||||
{
|
||||
@@ -4424,7 +4424,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
contAccTimeAssi[i] = Convert.ToUInt32(istAccTimeAssi[i]);
|
||||
contAccTimeAssi[i] = Convert.ToUInt32(istAccTimeAssi[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettAxis[i].mAxAccTime.Value);
|
||||
}
|
||||
@@ -4443,7 +4443,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("Axis_[1-{0}]_InvDDone: ", currAdpConf.nAxis);
|
||||
for (int i = 0; i < currAdpConf.nAxis; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istNumInvAssi[i]) - contNumInvAssi[i];
|
||||
delta = Convert.ToUInt32(istNumInvAssi[i].vcMedian) - contNumInvAssi[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < long.MaxValue / 2)
|
||||
{
|
||||
@@ -4458,7 +4458,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
contNumInvAssi[i] = Convert.ToUInt32(istNumInvAssi[i]);
|
||||
contNumInvAssi[i] = Convert.ToUInt32(istNumInvAssi[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettAxis[i].mAxInvDDone.Value);
|
||||
}
|
||||
@@ -4477,7 +4477,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("VacPump_[1-{0}]_WrkTime: ", currAdpConf.nVacuumPump);
|
||||
for (int i = 0; i < currAdpConf.nVacuumPump; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istVacPumpWrkTime[i]) - currVacPumpWrkTime[i];
|
||||
delta = Convert.ToUInt32(istVacPumpWrkTime[i].vcMedian) - currVacPumpWrkTime[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < uint.MaxValue / 2)
|
||||
{
|
||||
@@ -4492,7 +4492,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
currVacPumpWrkTime[i] = Convert.ToUInt32(istVacPumpWrkTime[i]);
|
||||
currVacPumpWrkTime[i] = Convert.ToUInt32(istVacPumpWrkTime[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettVacPump[i].mVacPumpWrkTime.Value);
|
||||
}
|
||||
@@ -4511,7 +4511,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("VacPump_[1-{0}]_Count: ", currAdpConf.nVacuumPump);
|
||||
for (int i = 0; i < currAdpConf.nVacuumAct; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istVacActCount[i]) - currVacActCount[i];
|
||||
delta = Convert.ToUInt32(istVacActCount[i].vcMedian) - currVacActCount[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < uint.MaxValue / 2)
|
||||
{
|
||||
@@ -4526,7 +4526,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
currVacActCount[i] = Convert.ToUInt32(istVacActCount[i]);
|
||||
currVacActCount[i] = Convert.ToUInt32(istVacActCount[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettVacAct[i].mVacActCount.Value);
|
||||
}
|
||||
@@ -4545,7 +4545,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("Lubro_[1-{0}]_Count: ", currAdpConf.nLubro);
|
||||
for (int i = 0; i < currAdpConf.nLubro; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istLubroCount[i]) - currLubroCount[i];
|
||||
delta = Convert.ToUInt32(istLubroCount[i].vcMedian) - currLubroCount[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < uint.MaxValue / 2)
|
||||
{
|
||||
@@ -4560,7 +4560,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
currLubroCount[i] = Convert.ToUInt32(istLubroCount[i]);
|
||||
currLubroCount[i] = Convert.ToUInt32(istLubroCount[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettLubro[i].mLubroNum.Value);
|
||||
}
|
||||
@@ -4601,9 +4601,9 @@ namespace MTC_Adapter
|
||||
}
|
||||
sb.AppendLine(mCounters[i].ToString().Replace("|", " | "));
|
||||
}
|
||||
// salvo su maschera...
|
||||
parentForm.dataMonitor_2 += sb.ToString();
|
||||
}
|
||||
// salvo su maschera...
|
||||
parentForm.dataMonitor_2 += sb.ToString();
|
||||
return needSave;
|
||||
}
|
||||
/// <summary>
|
||||
@@ -4617,7 +4617,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("SlittaMagazzino_[1-{0}]_Count: ", currAdpConf.nSlittaMag);
|
||||
for (int i = 0; i < currAdpConf.nSlittaMag; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istSlittaMag[i]) - currSlittaMag[i];
|
||||
delta = Convert.ToUInt32(istSlittaMag[i].vcMedian) - currSlittaMag[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < uint.MaxValue / 2)
|
||||
{
|
||||
@@ -4632,7 +4632,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
currSlittaMag[i] = Convert.ToUInt32(istSlittaMag[i]);
|
||||
currSlittaMag[i] = Convert.ToUInt32(istSlittaMag[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettSlittaMag[i].mSlittaMagCount.Value);
|
||||
}
|
||||
@@ -4651,7 +4651,7 @@ namespace MTC_Adapter
|
||||
string outString = string.Format("ProtMagazzino_[1-{0}]_Count: ", currAdpConf.nProtMag);
|
||||
for (int i = 0; i < currAdpConf.nProtMag; i++)
|
||||
{
|
||||
delta = Convert.ToUInt32(istProtMag[i]) - currProtMag[i];
|
||||
delta = Convert.ToUInt32(istProtMag[i].vcMedian) - currProtMag[i];
|
||||
// controllo delta < 50% max...
|
||||
if (delta < uint.MaxValue / 2)
|
||||
{
|
||||
@@ -4666,7 +4666,7 @@ namespace MTC_Adapter
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
currProtMag[i] = Convert.ToUInt32(istProtMag[i]);
|
||||
currProtMag[i] = Convert.ToUInt32(istProtMag[i].vcMedian);
|
||||
}
|
||||
outString += string.Format("{0} | ", vettProtMag[i].mProtMagCount.Value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user