Topic.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Shaker.Models
  7. {
  8. public class Topic
  9. {
  10. /// <summary>
  11. /// The port number of the discovery server.
  12. /// </summary>
  13. public const int DISCOVERYPORT = 16666;
  14. /// <summary>
  15. /// 同步配置命令
  16. /// </summary>
  17. public const string SYNCCONFIG = "SyncConfig";
  18. public const string START = "Start";
  19. public const string STOP = "Stop";
  20. public const string EXIT = "Exit";
  21. public const string VAVLECONTROL = "VavleControl";
  22. public const string RISETABLE = "RiseTable";
  23. public const string DROPTABLE = "DropTable";
  24. public const string ZEROCHANGE = "ZeroChange";
  25. public const string STOPSIGNALGEN = "StopSignalGen";
  26. public const string DATA = "Data";
  27. public const string VALVEPOWER = "ValvePower";
  28. public const string RESETERROR = "ResetError";
  29. public const string STARTSIGNALGEN = "StartSignalGen";
  30. public const string OILMAINPUMP = "OilSourceMainPump";
  31. public const string OILMAINPRESSURE = "OilSourceMainPressure";
  32. public const string OILFORERUNNERPUMP = "OilSourceForerunnerPump";
  33. public const string OILFORERUNNERPRESSURE = "OilSourceForerunnerPressure";
  34. public const string OILSOURCEENABLED = "OilSourceEnabled";
  35. public const string OILLOADPRESSOURCE = "OilSourceLoadPressure";
  36. public const string OILEMERGENCYSTOP = "OilSourceEmergencyStop";
  37. public const string STARTRANDOMTEST = "StartRandomTest";
  38. public const string DisConnect = "DisConnect";
  39. /// <summary>
  40. /// 连接后的初始消息
  41. /// </summary>
  42. public const string SERVICERESULT = "ServiceResult";
  43. }
  44. }