IOpcHelper.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using SIASUN.Autopilot.Model;
  4. namespace SIASUN.Autopilot.Device
  5. {
  6. public interface IOpcHelper
  7. {
  8. /// <summary>
  9. /// OPC初始化
  10. /// </summary>
  11. void Opc_Init(List<MoBeckhoffNode> mlist);
  12. /// <summary>
  13. /// OPC断开连接
  14. /// </summary>
  15. void Opc_disConnect();
  16. /// <summary>
  17. /// 添加事件通知
  18. /// </summary>
  19. /// <param name="command"></param>
  20. /// <returns></returns>
  21. bool Opc_AddNotification(string command);
  22. /// <summary>
  23. /// 删除事件通知
  24. /// </summary>
  25. /// <returns></returns>
  26. bool Opc_DelNotification(string command);
  27. /// <summary>
  28. /// 向opc发送数据
  29. /// </summary>
  30. void SetOpcSend(string nodeName, string value);
  31. /// <summary>
  32. /// 从opc接收数据
  33. /// </summary>
  34. string GetOpcRecv(string nodeName, out Type _type);
  35. /// <summary>
  36. /// 获取opc状态
  37. /// </summary>
  38. /// <returns></returns>
  39. bool OpcConnectState();
  40. }
  41. }