display numCU
This commit is contained in:
@@ -2298,24 +2298,27 @@ namespace MTC_Adapter
|
||||
/// <returns></returns>
|
||||
public bool procNumCU(bool needSave)
|
||||
{
|
||||
uint delta = 0;
|
||||
string outString = string.Format("UnOp_[1-{0}]_NumCU: ", currAdpConf.nUnOp);
|
||||
for (int i = 0; i < currAdpConf.nUnOp; i++)
|
||||
{
|
||||
uint delta = 0;
|
||||
// controllo valore riferimento...
|
||||
if (istNumCambiUt[i] > currNumCambiUt[i])
|
||||
{
|
||||
delta = istNumCambiUt[i] - currNumCambiUt[i];
|
||||
// segnalo necessità salvataggio!
|
||||
needSave = true;
|
||||
}
|
||||
delta = istNumCambiUt[i] - currNumCambiUt[i];
|
||||
// processo comunque sempre...
|
||||
uint contatore = updateValUIntByIncr(i, delta, "UnOp_{0:00}_NumCU");
|
||||
// passo valore num CU all'adapter
|
||||
vettUnOp[i].mUnOpNumCU.Value = contatore;
|
||||
// controllo valore riferimento...
|
||||
if (delta > 0)
|
||||
{
|
||||
// segnalo necessità salvataggio!
|
||||
needSave = true;
|
||||
}
|
||||
// ...aggiorno valore riferimento...
|
||||
currNumCambiUt[i] = istNumCambiUt[i];
|
||||
outString += string.Format("{0} | ", vettAxis[i].mAxDistDone.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