|
|
@ -652,7 +652,7 @@ namespace DataBlockHelper.DBHelpers
|
|
|
|
public static void StopWater(int no)
|
|
|
|
public static void StopWater(int no)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
siemensS7Net.Write($"{DbName}.{53}.{no}",false);
|
|
|
|
siemensS7Net.Write($"{DbName}.{53}.{no}",true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -663,9 +663,13 @@ namespace DataBlockHelper.DBHelpers
|
|
|
|
public static void StartWater(int no)
|
|
|
|
public static void StartWater(int no)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
siemensS7Net.Write($"{DbName}.{53}.{no}", true);
|
|
|
|
siemensS7Net.Write($"{DbName}.{53}.{no}", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// true 状态是停止
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
public List<bool> GetWaterStatus()
|
|
|
|
public List<bool> GetWaterStatus()
|
|
|
|
{
|
|
|
|
{
|
|
|
|