diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index a54d2f1..09ba8ce 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -55,8 +55,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl Dictionary WetStatus = new Dictionary(); - //读取报表 - ushort ReadFlag = 0; + //DataTable ParametersWithPCTable = new DataTable(); @@ -236,8 +235,6 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl if (conCurrentCache.Count == 0) { - Stopwatch stopwatch = new Stopwatch(); - stopwatch.Start(); conCurrentCache.TryAdd("plc", DateTime.Now); @@ -260,8 +257,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl conCurrentCache.Clear(); - stopwatch.Stop(); - var send = stopwatch.ElapsedMilliseconds; + } } @@ -283,7 +279,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl } no += 1; - if (no > 5) + if (no > 2) { no = 0; Timer1_Tick(); @@ -292,9 +288,12 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl if (UserJudge.IsNormalUser()) { + ReportReadDb.ReadFeededDry(); ReportReadDb.ReadReport(); } - + + + } catch (Exception) { @@ -317,19 +316,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl ControlsHelper.SetMCLabel(LabelE.LineKind7, dict[7]); ControlsHelper.SetMCLabel(LabelE.LineKind8, dict[8]); } - ReadFlag += 1; - if (ReadFlag >= 20) - { - ReadFlag = 0; - - if (UserJudge.IsNormalUser()) - { - ReportReadDb.ReadFeededDry(); - } - - - - } + var reachSingle = RgvPlcUtil.GetRGVAllError(); var mixSingle = Db3000Helper.ReadDb();