You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

8 months ago
  1. namespace Mirle.Component.MPLC.Interfaces
  2. {
  3. /// <summary>
  4. /// 控制器介面
  5. /// </summary>
  6. public interface IPLCHost
  7. {
  8. /// <summary>
  9. /// 啟動自動重新連線
  10. /// </summary>
  11. bool EnableAutoReconnect { get; set; }
  12. /// <summary>
  13. /// 啟動寫入資料
  14. /// </summary>
  15. bool EnableWriteRawData { get; set; }
  16. /// <summary>
  17. /// 時間間隔
  18. /// </summary>
  19. int Interval { get; set; }
  20. /// <summary>
  21. /// 控制器逾時
  22. /// </summary>
  23. int MPLCTimeout { get; set; }
  24. /// <summary>
  25. /// 記錄檔資料夾
  26. /// </summary>
  27. string LogBaseDirectory { get; set; }
  28. /// <summary>
  29. /// 取得控制器資料提供介面
  30. /// </summary>
  31. /// <returns></returns>
  32. IMPLCProvider GetMPLCProvider();
  33. /// <summary>
  34. /// 開始
  35. /// </summary>
  36. void Start();
  37. /// <summary>
  38. /// 暫停
  39. /// </summary>
  40. void Stop();
  41. }
  42. }