CcsAction.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. using IMCS_CCS.Utils;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace IMCS.CCS.Entitys
  5. {
  6. [Table("ccs_action")]
  7. public class CcsAction
  8. {
  9. [Key]
  10. [Column("id")]
  11. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  12. public int Id { get; set; }
  13. [Column("protocol_type")]
  14. public string ProtocolType { get; set; }
  15. [Column("ip")]
  16. public string Ip { get; set; }
  17. [Column("operate_type")]
  18. public string OperateType { get; set; }
  19. [Column("operate_name")]
  20. public string OperateName { get; set; }
  21. [Column("file_path")]
  22. public string FilePath { get; set; }
  23. [Column("plc_ip")]
  24. public string PlcIp { get; set; }
  25. [Column("order_index")]
  26. public string OrderIndex { get; set; }
  27. [Column("description")]
  28. public string Description { get; set; }
  29. }
  30. /// <summary>
  31. /// 动作类型
  32. /// </summary>
  33. public enum ActionTypeEnum
  34. {
  35. [EnumDescription("智能单元取物品")]
  36. GetIntelligenceUnit,
  37. [EnumDescription("柔性线取物品")]
  38. GetFlexibleWire,
  39. [EnumDescription("质量中心取物品")]
  40. GetQualityCenter,
  41. [EnumDescription("智能单元送物品")]
  42. SendIntelligenceUnit,
  43. [EnumDescription("柔性线送物品")]
  44. SendFlexibleWire,
  45. [EnumDescription("质量中心送物品")]
  46. SendQualityCenter,
  47. [EnumDescription("柔性线机器人移动物品")]
  48. MoveRobotPosition,
  49. [EnumDescription("上传文件")]
  50. UploadFile,
  51. [EnumDescription("启动机床程序")]
  52. StartNCProgram,
  53. [EnumDescription("粗偏写入")]
  54. SendLinShift,
  55. [EnumDescription("粗偏写入")]
  56. SendLinShiftFine,
  57. [EnumDescription("启动清洗机")]
  58. StartCleanMachine,
  59. [EnumDescription("启动打标机")]
  60. StartLabelMachine,
  61. [EnumDescription("查询三坐标检测空闲位置")]
  62. QueryThreeCoordinatesFreePos,
  63. [EnumDescription("放三坐标滑台")]
  64. SendThreeCoordinates,
  65. [EnumDescription("伺服舵机取物品")]
  66. GetServoStacker,
  67. [EnumDescription("伺服舵机放物品")]
  68. SendServoStacker,
  69. [EnumDescription("读RFID")]
  70. ReadRFID,
  71. [EnumDescription("写RFID")]
  72. WriteRFID,
  73. }
  74. /// <summary>
  75. /// 动作名称
  76. /// </summary>
  77. public enum ActionNameEnum
  78. {
  79. 智能单元取物品,
  80. 柔性线取物品,
  81. 质量中心取物品,
  82. 智能单元送物品,
  83. 柔性线送物品,
  84. 质量中心送物品,
  85. 柔性线机器人移动物品,
  86. 上传文件,
  87. 启动机床程序,
  88. 粗偏写入,
  89. 精偏写入,
  90. 启动清洗机,
  91. 启动打标机,
  92. 启动三坐标,
  93. 伺服舵机取物品,
  94. 伺服舵机放物品,
  95. 读RFID,
  96. 写RFID,
  97. }
  98. public enum ThreeCoordinatesPosEnum
  99. {
  100. L = 1,
  101. M = 2,
  102. R = 3,
  103. }
  104. public enum ThreeCoordinatesFinishedEnum
  105. {
  106. [EnumDescription("DB200.18")]
  107. L,
  108. [EnumDescription("DB200.20")]
  109. M,
  110. [EnumDescription("DB200.22")]
  111. R,
  112. }
  113. public enum ThreeCoordinatesFinishedWrokIdEnum
  114. {
  115. [EnumDescription("db200.2668.0")]
  116. L,
  117. [EnumDescription("db200.2708.0")]
  118. M,
  119. [EnumDescription("db200.2748.0")]
  120. R,
  121. }
  122. }