diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index 8c749f2..31681bd 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -283,7 +283,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl ControlsHelper.SetMCLabel(LabelE.LineKind8, dict[8]); } ReadFlag += 1; - if(ReadFlag >= 60) + if(ReadFlag >= 10) { ReadFlag = 0; ReportReadDb.ReadFeededDry(); diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/ReportReadDb.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/ReportReadDb.cs index ffbb5ed..70912d6 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/ReportReadDb.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/ReportReadDb.cs @@ -37,7 +37,6 @@ namespace Mesnac.Action.ChemicalWeighing.Report public static void ReadFeededDry() { LoggingService.Debug("读取加料信息"+DateTime.Now.ToString()); - DB2105Helper dB2105Helper = new DB2105Helper(); List list=dB2105Helper.FeededDryList(); for (int i = 0; i < list.Count; i++) @@ -49,8 +48,10 @@ namespace Mesnac.Action.ChemicalWeighing.Report var deviceno = (i + 3) / 2; // 螺旋1启动向湿混机1 string logName = $"螺旋{deviceno}启动向湿混机{i + 1}"; - LoggingService.Info(logName); + var value = Convert.ToInt32(Convert.ToDouble(feedValue)); + LoggingService.Info(logName+":"+feedValue); + ManualLogControl(logName, value, 5, i + 1); DB2105WriteHelper.WriteFalseFeededDry(i + 1); }