DigitalTwinVM1.cs 3.19 KB
namespace DataAcquisition.ViewModels.Board
{
    /// <summary>
    /// 数字孪生看板1
    /// </summary>
    public class DigitalTwinVM1
    {
        /// <summary>
        /// 机器人1坐标数据
        /// </summary>
        public RobotMonitor RobotMonitor1 { get; set; } = null!;

        /// <summary>
        /// 机器人2坐标数据
        /// </summary>
        public RobotMonitor RobotMonitor2 { get; set; } = null!;
    }

    /// <summary>
    /// 机器人实时数据
    /// </summary>
    public class RobotMonitor
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public string EquipmentCode { get; set; } = null!;

        /// <summary>
        /// 设备名称
        /// </summary>
        public string EquipmentName { get; set; } = null!;

        /// <summary>
        /// 设备状态
        /// </summary>
        public string Status { get; set; } = null!;

        /// <summary>
        /// 焊接电压
        /// </summary>
        public double Weld_V { get; set; }

        /// <summary>
        /// 焊接电流
        /// </summary>
        public double Weld_I { get; set; }

        /// <summary>
        /// 送丝速度
        /// </summary>
        public double Weld_Speed { get; set; }

        /// <summary>
        /// 工作模式
        /// </summary>
        /// <remarks>1:T1模式,2:T2模式;3:自动模式;4:外部自动模式;</remarks>
        public string Work_Mode { get; set; } = null!;

        /// <summary>
        /// A1轴
        /// </summary>
        public double A1 { get; set; }

        public double A2 { get; set; }

        public double A3 { get; set; }

        public double A4 { get; set; }

        public double A5 { get; set; }

        public double A6 { get; set; }

        /// <summary>
        /// E1坐标
        /// </summary>
        public double E1 { get; set; }

        public double E2 { get; set; }

        public double E3 { get; set; }

        public double E4 { get; set; }

        /// <summary>
        /// 开机标志
        /// </summary>
        public bool BootFlag { get; set; }

        /// <summary>
        /// 工作标志
        /// </summary>
        public bool WorkFlag { get; set; }

        /// <summary>
        /// 焊接标志
        /// </summary>
        public bool WeldFlag { get; set; }

        /// <summary>
        /// 焊接完成标志
        /// </summary>
        public bool WeldCompleteFlag { get; set; }

        /// <summary>
        /// 焊接送气状态
        /// </summary>
        public bool Weld_Gas { get; set; }

        /// <summary>
        /// 焊接清枪状态
        /// </summary>
        public bool Weld_CleanGun { get; set; }

        /// <summary>
        /// 报警
        /// </summary>
        public bool Alarm { get; set; }

        //工作时长
        //public bool Work_Time { get; set; }

        /// <summary>
        /// 红灯
        /// </summary>
        public bool RedLight { get; set; }

        /// <summary>
        /// 黄灯
        /// </summary>
        public bool YellowLight { get; set; }

        /// <summary>
        /// 绿灯
        /// </summary>
        public bool GreenLight { get; set; }
    }
}