添加项目文件。
This commit is contained in:
40
SamplePre.Communication/Communication/ICommunication.cs
Normal file
40
SamplePre.Communication/Communication/ICommunication.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SamplePre.Communication
|
||||
{
|
||||
public interface ICommunication
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 下发下位机指令
|
||||
/// </summary>
|
||||
/// <param name="Dbno"></param>
|
||||
/// <param name="start"></param>
|
||||
/// <param name="bytes"></param>
|
||||
/// <returns></returns>
|
||||
bool WriteArraysBtye<T>(int Dbno, int start, T[] bytes);
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 读取监控数据,读取数组
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
ushort[] ReadArraysShort(int Dbno, int start, int lenth);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 写入数据
|
||||
/// </summary>
|
||||
/// <param name="address">地址(如"M0.0", "DB1.DBW2")</param>
|
||||
/// <param name="value">要写入的值</param>
|
||||
/// <returns>是否写入成功</returns>
|
||||
public bool WriteSingleData(string address, object value);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user