CcsAction.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. StartCoordinateMeasuringMachine,
  63. [EnumDescription("伺服舵机取物品")]
  64. GetServoStacker,
  65. [EnumDescription("伺服舵机放物品")]
  66. SendServoStacker,
  67. [EnumDescription("读RFID")]
  68. ReadRFID,
  69. [EnumDescription("写RFID")]
  70. WriteRFID,
  71. }
  72. /// <summary>
  73. /// 动作名称
  74. /// </summary>
  75. public enum ActionNameEnum
  76. {
  77. 智能单元取物品,
  78. 柔性线取物品,
  79. 质量中心取物品,
  80. 智能单元送物品,
  81. 柔性线送物品,
  82. 质量中心送物品,
  83. 柔性线机器人移动物品,
  84. 上传文件,
  85. 启动机床程序,
  86. 粗偏写入,
  87. 精偏写入,
  88. 启动清洗机,
  89. 启动打标机,
  90. 启动三坐标,
  91. 伺服舵机取物品,
  92. 伺服舵机放物品,
  93. 读RFID,
  94. 写RFID,
  95. }
  96. }