using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SamplePre.Communication { public interface ICommunication { /// /// 下发下位机指令 /// /// /// /// /// bool WriteArraysBtye(int Dbno, int start, T[] bytes); /// /// 读取监控数据,读取数组 /// /// ushort[] ReadArraysShort(int Dbno, int start, int lenth); /// /// 写入数据 /// /// 地址(如"M0.0", "DB1.DBW2") /// 要写入的值 /// 是否写入成功 public bool WriteSingleData(string address, object value); } }