123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- using IMCS_CCS.Utils;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
-
- namespace IMCS.CCS.Entitys
- {
- [Table("ccs_action")]
- public class CcsAction
- {
- [Key]
- [Column("id")]
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- public int Id { get; set; }
- [Column("protocol_type")]
- public string ProtocolType { get; set; }
- [Column("ip")]
- public string Ip { get; set; }
- [Column("operate_type")]
- public string OperateType { get; set; }
- [Column("operate_name")]
- public string OperateName { get; set; }
- [Column("file_path")]
- public string FilePath { get; set; }
- [Column("plc_ip")]
- public string PlcIp { get; set; }
- [Column("order_index")]
- public string OrderIndex { get; set; }
- [Column("description")]
- public string Description { get; set; }
- }
- /// <summary>
- /// 动作类型
- /// </summary>
- public enum ActionTypeEnum
- {
- [EnumDescription("机器人动作")]
- RobotAction,
- [EnumDescription("上传文件")]
- UploadFile,
- [EnumDescription("启动机床程序")]
- StartNCProgram,
- [EnumDescription("启动清洗机")]
- StartCleanMachine,
- [EnumDescription("启动吹干机")]
- StartDryMachine,
-
- }
- /// <summary>
- /// 动作名称
- /// </summary>
- public enum ActionNameEnum
- {
- 智能单元取物品,
- 柔性线取物品,
- 质量中心取物品,
- 智能单元送物品,
- 柔性线送物品,
- 质量中心送物品,
- 柔性线机器人移动物品,
- 上传文件,
- 启动机床程序,
- 粗偏写入,
- 精偏写入,
- 启动清洗机,
- 启动打标机,
- 启动三坐标,
- 伺服舵机取物品,
- 伺服舵机放物品,
- 读RFID,
- 写RFID,
- }
- public enum ThreeCoordinatesPosEnum
- {
- L = 1,
- M = 2,
- R = 3,
- }
- public enum ThreeCoordinatesFinishedEnum
- {
- [EnumDescription("DB200.18")]
- L,
- [EnumDescription("DB200.20")]
- M,
- [EnumDescription("DB200.22")]
- R,
- }
- public enum ThreeCoordinatesFinishedWrokIdEnum
- {
- [EnumDescription("DB200.2668")]
- L,
- [EnumDescription("DB200.2708")]
- M,
- [EnumDescription("DB200.2748")]
- R,
- }
- }
|