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 DB92WriterHelp
|
|
|
|
|
{
|
|
|
|
|
private static readonly string DbName = "DB92";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void Add(Pipe pipe)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}.2.0", pipe.MainPipieA);
|
|
|
|
|
siemensS7Net.Write($"{DbName}.6.0", pipe.AuxPipieA);
|
|
|
|
|
|
|
|
|
|
siemensS7Net.Write($"{DbName}.10.0", pipe.MainPipieB);
|
|
|
|
|
siemensS7Net.Write($"{DbName}.14.0", pipe.AuxPipieB);
|
|
|
|
|
|
|
|
|
|
siemensS7Net.Write($"{DbName}.18.0", pipe.MainPipieC);
|
|
|
|
|
siemensS7Net.Write($"{DbName}.22.0", pipe.AuxPipieC);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
siemensS7Net.Write($"{DbName}.26.0", pipe.UpperPressure);
|
|
|
|
|
siemensS7Net.Write($"{DbName}.30.0", pipe.LowerPressure);
|
|
|
|
|
}
|
|
|
|
|
}
|