CcsAction.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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("启动吹干机")]
  44. StartDryMachine,
  45. [EnumDescription("手动移动点位模式回调")]
  46. ManualModeCallback,
  47. [EnumDescription("三坐标检测")]
  48. SendThreeCoordinates,
  49. [EnumDescription("三坐标状态查询")]
  50. QueryThreeCoordinatesFreePos
  51. }
  52. /// <summary>
  53. /// 动作名称
  54. /// </summary>
  55. public enum ActionNameEnum
  56. {
  57. 智能单元取物品,
  58. 柔性线取物品,
  59. 质量中心取物品,
  60. 智能单元送物品,
  61. 柔性线送物品,
  62. 质量中心送物品,
  63. 柔性线机器人移动物品,
  64. 上传文件,
  65. 启动机床程序,
  66. 粗偏写入,
  67. 精偏写入,
  68. 启动清洗机,
  69. 启动打标机,
  70. 启动三坐标,
  71. 伺服舵机取物品,
  72. 伺服舵机放物品,
  73. 读RFID,
  74. 写RFID,
  75. }
  76. public enum ThreeCoordinatesPosEnum
  77. {
  78. L = 1,
  79. M = 2,
  80. R = 3,
  81. }
  82. public enum ThreeCoordinatesFinishedEnum
  83. {
  84. [EnumDescription("DB200.18")]
  85. L,
  86. [EnumDescription("DB200.20")]
  87. M,
  88. [EnumDescription("DB200.22")]
  89. R,
  90. }
  91. public enum ThreeCoordinatesFinishedWrokIdEnum
  92. {
  93. [EnumDescription("DB200.2668")]
  94. L,
  95. [EnumDescription("DB200.2708")]
  96. M,
  97. [EnumDescription("DB200.2748")]
  98. R,
  99. }
  100. }