aggiunto NumInvAssi
This commit is contained in:
@@ -2387,24 +2387,27 @@ namespace MTC_Adapter
|
||||
/// <returns></returns>
|
||||
public bool procNumInvAssi(bool needSave)
|
||||
{
|
||||
long delta = 0;
|
||||
string outString = string.Format("Axis_[1-{0}]_InvDDone: ", currAdpConf.nAxis);
|
||||
for (int i = 0; i < currAdpConf.nAxis; i++)
|
||||
{
|
||||
long delta = 0;
|
||||
// controllo valore riferimento...
|
||||
if (istNumInvAssi[i] > contNumInvAssi[i])
|
||||
{
|
||||
delta = istNumInvAssi[i] - contNumInvAssi[i];
|
||||
// segnalo necessità salvataggio!
|
||||
needSave = true;
|
||||
}
|
||||
delta = istNumInvAssi[i] - contNumInvAssi[i];
|
||||
// processo comunque sempre...
|
||||
long contTot = updateValLongByIncr(i, delta, "Axis_{0:00}_InvDDone");
|
||||
// passo valore totale all'adapter
|
||||
vettAxis[i].mAxInvDDone.Value = contTot;
|
||||
// controllo valore riferimento...
|
||||
if (delta > 0)
|
||||
{
|
||||
// segnalo necessità salvataggio!
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
contNumInvAssi[i] = istNumInvAssi[i];
|
||||
outString += string.Format("{0} | ", vettAxis[i].mAxInvDDone.Value);
|
||||
}
|
||||
|
||||
// salvo su maschera...
|
||||
parentForm.dataMonitor += string.Format("{0}{1}", outString.Substring(0, outString.Length - 3), Environment.NewLine);
|
||||
return needSave;
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user