DB2107WriteHelper.CleanSpare(deviceno);

dep
我叫锄头 11 months ago
parent 0a51acac3a
commit 5ef5b7db2f

@ -43,6 +43,7 @@ namespace Mesnac.Action.ChemicalWeighing.Report
if (nornalStatus.spare1) if (nornalStatus.spare1)
{ {
FeededDry(1, dB2111Helper.DryDosing_A); FeededDry(1, dB2111Helper.DryDosing_A);
} }
if (nornalStatus.spare2) if (nornalStatus.spare2)
@ -133,7 +134,7 @@ namespace Mesnac.Action.ChemicalWeighing.Report
private static void FeededDry(int deviceno, ReportDosEntity entity) private static void FeededDry(int deviceno, ReportDosEntity entity)
{ {
DB2107WriteHelper.CleanSpare(deviceno);
int no = deviceno * 2; int no = deviceno * 2;
if (entity.eqNo == 1) if (entity.eqNo == 1)
{ {
@ -143,7 +144,8 @@ namespace Mesnac.Action.ChemicalWeighing.Report
string logName = $"用户[{UserInfo.Instance.UserName}] 螺旋{deviceno}向湿混机 [{no}] 投料 {actValue}"; string logName = $"用户[{UserInfo.Instance.UserName}] 螺旋{deviceno}向湿混机 [{no}] 投料 {actValue}";
LoggingService<ReportReadDb>.Info(logName); LoggingService<ReportReadDb>.Info(logName);
LjLogControl.ManualLogControl(logName, actValue, 4, no, 2); LjLogControl.ManualLogControl(logName, actValue, 4, no, 2);
DB2107WriteHelper.CleanSpare(deviceno);
} }
public static void ReadReport() public static void ReadReport()

@ -16,6 +16,9 @@ namespace DataBlockHelper.DBHelpers
siemensS7Net.Write($"{DbName}.8.{dian}", false); siemensS7Net.Write($"{DbName}.8.{dian}", false);
} }
public static void CleanWater(int no) public static void CleanWater(int no)
{ {
int dian = no + 1; int dian = no + 1;

Loading…
Cancel
Save