using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using OpcRcw.Da; using System.ComponentModel; namespace Common { /// /// 对db模块的 写操作 /// public interface IPLCAbstract { object WriteDataValue { get; set; } object ReadDataValue { get; } // /// // /// 1)写操作的入口 // /// // /// 算法生成的数据 // /// plc的类 // /// 当前的窗体类 // /// 用于多线程的类控件 //void DataTableBill(DataTable dataPLC, string remoteServerName, string remoteServerIP, object Form_Main, BackgroundWorker work); /// /// plc的链接 /// /// 链接的名字() /// 链接的ip地址 /// string ConnectRemoteServer(); /// /// 增加一个group /// /// /// string PLCGroupAdd(object Form_Main); /// /// 给group增加item /// /// /// string PLCItemAdd(OPCITEMDEF[] items); /// /// 进行写plc数据 /// /// 要写入的数据(可以是数据集,也可以是数组) /// string WirtePlc(object[] values); /// /// 对plc进行读操作 /// /// string ReadPlc(); /// /// 检测plc数据改变时,触发事件 /// /// string DataChange(); /// /// 对外提供的plc读或者写的方法 /// /// /// /// /// string ReadWritePlcData(); /// /// 断开连接 /// /// string DisConnection(); } }