CcsAction.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. RobotAction,
  37. [EnumDescription("上传文件")]
  38. UploadFile,
  39. [EnumDescription("启动机床程序")]
  40. StartNCProgram,
  41. [EnumDescription("启动喷墨机")]
  42. StartCleanMachine,
  43. [EnumDescription("写RFID")]
  44. WriteRFID,
  45. [EnumDescription("读RFID")]
  46. ReadRFID,
  47. [EnumDescription("手动刀具出库")]
  48. ToolOut,
  49. }
  50. /// <summary>
  51. /// 动作名称
  52. /// </summary>
  53. public enum ActionNameEnum
  54. {
  55. 智能单元取物品,
  56. 柔性线取物品,
  57. 质量中心取物品,
  58. 智能单元送物品,
  59. 柔性线送物品,
  60. 质量中心送物品,
  61. 柔性线机器人移动物品,
  62. 上传文件,
  63. 启动机床程序,
  64. 粗偏写入,
  65. 精偏写入,
  66. 启动清洗机,
  67. 启动打标机,
  68. 启动三坐标,
  69. 伺服舵机取物品,
  70. 伺服舵机放物品,
  71. 读RFID,
  72. 写RFID,
  73. }
  74. public enum ThreeCoordinatesPosEnum
  75. {
  76. L = 1,
  77. M = 2,
  78. R = 3,
  79. }
  80. public enum ThreeCoordinatesFinishedEnum
  81. {
  82. [EnumDescription("DB200.18")]
  83. L,
  84. [EnumDescription("DB200.20")]
  85. M,
  86. [EnumDescription("DB200.22")]
  87. R,
  88. }
  89. public enum ThreeCoordinatesFinishedWrokIdEnum
  90. {
  91. [EnumDescription("DB200.2668")]
  92. L,
  93. [EnumDescription("DB200.2708")]
  94. M,
  95. [EnumDescription("DB200.2748")]
  96. R,
  97. }
  98. }