diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
index bf205f1..f2222b7 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs
@@ -78,7 +78,9 @@ namespace Mesnac.Action.ChemicalWeighing.Test
private void MCButton_Click(object sender, EventArgs e)
{
- ReportReadDb.ReadFeededDry();
+ // ReportReadDb.ReadFeededDry();
+
+ var list= DB2105WriteHelper.GetWaterStatus();
}
}
}
diff --git a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs
index e38ad63..57c765e 100644
--- a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs
+++ b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs
@@ -644,5 +644,45 @@ namespace DataBlockHelper.DBHelpers
}
+
+ ///
+ /// 0 冷水A 1 热水A 2 冷水B 3 热水B
+ ///
+ ///
+ public static void StopWater(int no)
+ {
+ var siemensS7Net = PlcConnect.Instance;
+ siemensS7Net.Write($"{DbName}.{53}.{no}",true);
+ }
+
+ ///
+ /// 0 冷水A 1 热水A 2 冷水B 3 热水B
+ ///
+ ///
+
+ public static void StartWater(int no)
+ {
+ var siemensS7Net = PlcConnect.Instance;
+ siemensS7Net.Write($"{DbName}.{53}.{no}", false);
+ }
+
+ ///
+ /// true 状态是停止
+ ///
+ ///
+
+ public static List GetWaterStatus()
+ {
+ var siemensS7Net = PlcConnect.Instance;
+ List status = new List();
+ for (int i = 0; i < 4; i++)
+ {
+ var b= siemensS7Net.ReadBool($"{DbName}.{53}.{i}");
+ status.Add(b.Content);
+ }
+ return status;
+ }
+
+
}
}
\ No newline at end of file