using DataBlockHelper.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataBlockHelper.DBHelpers { public class DB2108Helper { // public static List GetClickEntities() { List ls = new List(); for (int i = 0; i < 8; i++) { var entity=new ClickEntity(); entity.ClickValue= PlcConnect.Instance.ReadFloat($"DB2108.{(i * 6)+2}.0").Content; ls.Add(entity); } return ls; } public static void WriteClick(int no, ClickEntity click) { int start=(no * 6) + 2; var sss= PlcConnect.Instance.Write($"DB2108.{start}.0", click.ClickValue); } } }