You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace DataBlockHelper.DBHelpers
|
|
|
|
|
{
|
|
|
|
|
public class DB2107WriteHelper
|
|
|
|
|
{
|
|
|
|
|
static string DbName = "DB2107";
|
|
|
|
|
public static void CleanSpare(int no)
|
|
|
|
|
{
|
|
|
|
|
int dian = no + 1;
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}.8.{dian}", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void CleanWater(int no)
|
|
|
|
|
{
|
|
|
|
|
int dian = no + 1;
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}.5.{dian}", false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|