123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Runtime.Serialization;
- using System.Text;
- using System.Threading.Tasks;
- using SqlSugar;
- namespace WCS_Client.Frm
- {
- [DataContract]
- public class WCS_STATION523
- {
- [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
- public StationFault Fault {get;set;}
-
- public StationStatus Status {get;set;}
- public float RunTime {get;set;}
- public enum StationFault : uint
- {
- 无=0,
- 总故障 = 1 << 0,
- 急停故障 = 1 << 1,
- 超时故障 = 1 << 2,
- 驱动故障 = 1 << 3,
- 空气开关故障 = 1 << 4,
- 传感器异常故障 = 1 << 5,
- 其它故障汇入 = 1 << 6,
- 无Ready信号请检查柜内空开 = 1 << 7,
- 超时故障2 = 1 << 8,
- 驱动故障2 = 1 << 9,
- 空气开关故障2 = 1 << 10,
- 左极限故障 = 1 << 11,
- 右极限故障 = 1 << 12,
- 无Ready信号请检查柜内空开2 = 1 << 13,
- 前极限故障 = 1 << 14,
- 后极限故障 = 1 << 15
- }
- public enum StationStatus : short
- {
- 自动 = 0,
- 选中 = 1,
- 任务有货 =2,
- 光电有货 = 3,
- 运行状态位 = 4,
- 正转 = 5,
- 反转 = 6,
- 上升_右转_伸出 = 7,
- 下降_左转_缩回 = 8,
- 高位 = 9,
- 中位 = 10,
- 低位 = 11,
- 前位 = 12,
- 后位 = 13,
- }
- }
- }
|