CcsAction.cs 2.5 KB

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