WindturbineCmdInfo.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace IntelligentControlForsx.Service.WindturbineControl.Domain.Cmd
  7. {
  8. /// <summary>
  9. /// 风机控制信息
  10. /// </summary>
  11. public class WindturbineCmdInfo
  12. {
  13. /// <summary>
  14. /// 控制句柄
  15. /// </summary>
  16. public IntPtr CmdIntPtr { set; get; }
  17. /// <summary>
  18. /// 风机编号
  19. /// </summary>
  20. public string WindturbineId { set; get; }
  21. /// <summary>
  22. /// 风场Id
  23. /// </summary>
  24. public string StationId { set; get; }
  25. /// <summary>
  26. /// 命令类型(启动,停止,维护,取消维护等)
  27. /// </summary>
  28. public CmdType CmdType { set; get; }
  29. /// <summary>
  30. /// 控制类型 遥信-0,遥测-1,遥控-2,遥调-3,遥视-4
  31. /// </summary>
  32. public byte ControlType { set; get; }
  33. /// <summary>
  34. /// 命令编号(映射Modbus地址)
  35. /// </summary>
  36. public int CmdId { set; get; }
  37. /// <summary>
  38. /// 命令值(遥控为:0,1;遥调(限转速,限功率)为具体的限速值)
  39. /// </summary>
  40. public float CmdValue { set; get; }
  41. /// <summary>
  42. /// 控制值(遥控)
  43. /// </summary>
  44. public int ControlValue { set; get; }
  45. /// <summary>
  46. /// 操作人
  47. /// </summary>
  48. public int UserId { set; get; }
  49. /// <summary>
  50. /// 操作描述
  51. /// </summary>
  52. public string Description { set; get; }
  53. /// <summary>
  54. /// 操作时间
  55. /// </summary>
  56. public DateTime Time { set; get; }
  57. /// <summary>
  58. /// 不允许操控原因
  59. /// </summary>
  60. public string ForbidenDescription { set; get; }
  61. /// <summary>
  62. /// 命令是否发送成功
  63. /// </summary>
  64. public bool IsSuccessSend { set; get; }
  65. }
  66. }