using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QM.Exchange.Adapters.OPC
{
///
/// OPCSERVER适配器客户端
///
public class OPCAdapter
{
#region 通过opcserver获取plc数据
///
/// 通过opcserver获取plc数据
///
/// 请求
/// 返回结果
public OPCService.OPCResult ReadData(OPCService.OpcDeviceData odData)
{
OPCService.MainServiceClient client = new OPCService.MainServiceClient();
return client.ReadData(odData);
}
#endregion
#region 通过opcserver写入plc数据
///
/// 通过opcserver写入plc数据
///
/// 请求
/// 返回结果
public OPCService.OPCResult WriteData(OPCService.OpcDeviceData odData)
{
OPCService.MainServiceClient client = new OPCService.MainServiceClient();
return client.WriteData(odData);
}
#endregion
}
}