ProductionUiCordonel: - Accu reset: - Backup sealing state as for the NA region it may be unsealed

This commit is contained in:
Thomas Wiedebusch 2025-09-22 13:03:51 +02:00
parent 5cd09f1094
commit 0c86c58f4e
3 changed files with 6 additions and 2 deletions

View File

@ -13,4 +13,4 @@ using System.Reflection;
//
//[assembly: AssemblyVersion("1.2.*.0")]
[assembly: AssemblyVersion("2.8.6.*")]
[assembly: AssemblyVersion("2.8.5.*")]

View File

@ -183,6 +183,10 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.EolPr
while (retryCtr-- > 0 &&
(readBackScaledBilling != 0 || readBackUnscaledFwd != 0 || readBackUnscaledRev != 0))
{
// Backup sealing state as for the NA region it may be unsealed
var displaySealingState =
RegisterConverter.ByteArrayToValue<Byte>(Meter.ReadRegister("GENESISFLOW_SealDisplay"));
// Unseal accumulator reset capability
retValBol = WriteRegisterLogAndProcessCtr(new ProgrammingParameters("GENESISFLOW_SealDisplay",
new Byte[] { 0x00 }, ProgrammingSource.ProgramInternal));
@ -201,7 +205,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.EolPr
// Seal accumulator reset capability
// ReSharper disable once RedundantAssignment as it is used for DEBUG
retValBol &= WriteRegisterLogAndProcessCtr(new ProgrammingParameters("GENESISFLOW_SealDisplay",
new Byte[] { 0x01 }, ProgrammingSource.ProgramInternal));
new[] { displaySealingState }, ProgrammingSource.ProgramInternal));
WarningMsgDispatcher(Resources.StrWarningMsgRepeatedAccumulatorReset);