Changes done on Fuzhou300 system:
- ControlComDev.SetFMFreq() modifications (array size) - StatusP and Route logging - StatusP bit assignments: bit3 -> bit5 - MettlerToledo logging
This commit is contained in:
@@ -50,6 +50,7 @@ namespace TBF.BenchControl.MettlerToledo
|
||||
{
|
||||
result.Val = balanceDev.Mass;
|
||||
done = true;
|
||||
log.InfoFormat("ReadMassOp.Run() ... mass={0} ... returning Event.BalanceDone", balanceDev.Mass);
|
||||
balanceDev.GetImmediateMassMeasurement(); /// Start another measurement
|
||||
return Event.BalanceDone; /// Mass read OK
|
||||
}
|
||||
|
||||
@@ -72,6 +72,8 @@ namespace TBF.BenchControl.MettlerToledo
|
||||
for (int i = 1; i < totalReadingsCount - 1; i++) calcMass += massReadings[i];
|
||||
calcMass = (calcMass / (totalReadingsCount - 2));
|
||||
|
||||
log.InfoFormat("ReadStableMassOp.Run() ... valid mass={0} ... returning Event.BalanceDone", calcMass);
|
||||
|
||||
result.Val = calcMass;
|
||||
return Event.BalanceDone; /// Mass has just been calculated
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user