IFaHost.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System.Collections.Generic;
  2. namespace Aitex.RT.FactoryAutomation
  3. {
  4. public interface IFaHost
  5. {
  6. /// <summary>
  7. /// Disabled = 0,
  8. /// Enabled = 1,
  9. /// EnabledNotCommunicating = 2,
  10. /// EnabledCommunicating = 3,
  11. /// WaitCRA = 4,
  12. /// WaitDelay = 5,
  13. /// WaitCRFromHost = 6,
  14. /// </summary>
  15. /// <returns></returns>
  16. string FaCommunicationState { get; }
  17. /// <summary>
  18. /// Unknown = 0,
  19. /// EquipmentOffline = 1,
  20. /// AttemptOnline = 2,
  21. /// HostOffline = 3,
  22. /// OnlineLocal = 4,
  23. /// OnlineRemote = 5,
  24. /// </summary>
  25. /// <returns></returns>
  26. string FaControlState { get; }
  27. string FaControlSubState { get; }
  28. /// <summary>
  29. /// 是否连接上Host
  30. /// </summary>
  31. bool IsConnected { get; }
  32. int SpoolingState { get; }
  33. string SpoolingActual { get; }
  34. string SpoolingTotal { get; }
  35. string SpoolingFullTime { get; }
  36. string SpoolingStartTime { get; }
  37. bool IsSpoolingEnable { get; }
  38. void Initialize(IHostCallback equipment, string modelFile);
  39. void Terminate();
  40. void Enable();
  41. void Disable();
  42. void SetLocalControl();
  43. void SetRemoteControl();
  44. //void Invoke(string method, object[] args);
  45. /// <summary>
  46. ///
  47. /// </summary>
  48. /// <param name="eventName"></param>
  49. void NotifyEvent(string eventName, Dictionary<string,string> dvid);
  50. /// <summary>
  51. ///
  52. /// </summary>
  53. /// <param name="alarmName"></param>
  54. /// <param name="dvid"></param>
  55. void NotifyAlarm(string alarmName, Dictionary<string, string> dvid, string text);
  56. }
  57. }