using FLY.OBJComponents.IService;
using Misc;
using System.ComponentModel;
using System.Windows.Media;
namespace FLY.Weight2.Common
{
public class WeighterC : INotifyPropertyChanged, IPropertyOpt
{
public WeighterC(string number, int index)
{
Number = number;
Index = index;
}
#region IWeighterC实现
///
/// 名称:A,B,C,D,E
///
public string Number { get; set; }
///
/// 序号 0,1,2,3,4.....
///
public int Index { get; set; }
///
/// 颜色
///
public Brush Color { get; set; }
#endregion
#region 辅助代码生成
///
/// 当前流量(kg/h) xxx.x
///
[Description("当前流量(kg/h) xxx.x")]
public float CurrentFlow{ get; set; }
///
/// 运行比例(%) xx.x
///
[Description("运行比例(%) xx.x")]
public float ScrewPDisp{ get; set; }
///
/// 自动模式时,当前流量(kg/h) xxx.x
///
[Description("自动模式时,当前流量(kg/h) xxx.x")]
public float CurrentFlowAuto{ get; set; }
///
/// 自动模式时,运行比例(%) xx.x
///
[Description("自动模式时,运行比例(%) xx.x")]
public float ScrewPDispAuto{ get; set; }
///
/// 当前重量(Kg) x.xxx
///
[Description("当前重量(Kg) x.xxx")]
public float BinWeight{ get; set; }
///
/// 电机运行频率(Hz) xx.x
///
[Description("电机运行频率(Hz) xx.x")]
public float ScrewMotorFreq{ get; set; }
///
/// 电机设定频率(Hz)
///
[Description("电机设定频率(Hz)")]
public float ScrewManualFreq{ get; set; }
///
/// 设定频率确定(取反)
///
[Description("设定频率确定(取反)")]
public bool ScrewManualFreqIsSet{ get; set; }
///
/// 螺杆自动
///
[Description("螺杆自动")]
public bool ScrewIsAutoMode{ get; set; }
///
/// 螺杆操作
///
[Description("螺杆操作")]
public bool ScrewMotorIsOn{ get; set; }
///
/// 螺杆启动设置(┴)
///
[Description("螺杆启动设置(┴)")]
public bool ScrewMotorOnSet{ get; set; }
///
/// 最高频率(Hz) xxx.x
///
[Description("最高频率(Hz) xxx.x")]
public float MaxFreq{ get; set; }
///
/// 稳定时间(s) xxx.x
///
[Description("稳定时间(s) xxx.x")]
public float StableTime{ get; set; }
///
/// 采样时间(s) xxx.x
///
[Description("采样时间(s) xxx.x")]
public float SampleTime{ get; set; }
///
/// 料位上限(kg) xxx.x
///
[Description("料位上限(kg) xxx.x")]
public float BinUpperLimit{ get; set; }
///
/// 料位下限(kg) xxx.x
///
[Description("料位下限(kg) xxx.x")]
public float BinLowerLimit{ get; set; }
///
/// 螺杆下限(kg) xxx.x
///
[Description("螺杆下限(kg) xxx.x")]
public float ScrewLowerLimit{ get; set; }
///
/// 加料时间(s) xxx.x
///
[Description("加料时间(s) xxx.x")]
public float ChargeTime{ get; set; }
///
/// 快速标准(s) xxx.x
///
[Description("快速标准(s) xxx.x")]
public float FastStandard{ get; set; }
///
/// 稳定级别 xxx.x
///
[Description("稳定级别 xxx.x")]
public float StableLv{ get; set; }
///
/// 调整级别 xxx.x
///
[Description("调整级别 xxx.x")]
public float AdjustLv{ get; set; }
///
/// 高系数 xxx.x
///
[Description("高系数 xxx.x")]
public float HighFactor{ get; set; }
///
/// 低系数 xxx.x
///
[Description("低系数 xxx.x")]
public float LowFactor{ get; set; }
///
/// 调节限制 xxxx
///
[Description("调节限制 xxxx")]
public float AdjustLimit{ get; set; }
///
/// 比例系数 xxx.x
///
[Description("比例系数 xxx.x")]
public float Pc{ get; set; }
///
/// 积分时间(s) xxx
///
[Description("积分时间(s) xxx")]
public float It{ get; set; }
///
/// 微分增益 xxx.x
///
[Description("微分增益 xxx.x")]
public float Dg{ get; set; }
///
/// 微分时间(s) xxx.x
///
[Description("微分时间(s) xxx.x")]
public float Dt{ get; set; }
///
/// 滤波常数 xxx.x
///
[Description("滤波常数 xxx.x")]
public float Filter{ get; set; }
///
/// 快速频率(Hz) xxx.x
///
[Description("快速频率(Hz) xxx.x")]
public float FastFreq{ get; set; }
///
/// 快速时间(s) xxx.x
///
[Description("快速时间(s) xxx.x")]
public float FastTime{ get; set; }
///
/// 计算运用 xxx.x
///
[Description("计算运用 xxx.x")]
public float Cal{ get; set; }
///
/// 偏差报警(%) xxx
///
[Description("偏差报警(%) xxx")]
public float Tolerance{ get; set; }
///
/// PID输出 xxx
///
[Description("PID输出 xxx")]
public float PIDResult{ get; set; }
///
/// PID调节 xxx
///
[Description("PID调节 xxx")]
public float PIDAdjust{ get; set; }
///
/// 螺杆缺料!!
///
[Description("螺杆缺料!!")]
[IsError()]
public bool IsErrorOfScrewLack{ get; set; }
///
/// 料仓缺料!!
///
[Description("料仓缺料!!")]
[IsError()]
public bool IsErrorOfBinLack{ get; set; }
///
/// 流量超偏差!!
///
[Description("流量超偏差!!")]
[IsError()]
public bool IsErrorOfFlow{ get; set; }
#endregion
public event PropertyChangedEventHandler PropertyChanged;
public string[] GetSyncPropNames()
{
return null;
}
public string[] GetNoSyncPropNames()
{
return new string[] {
"Number",
"Color"
};
}
}
}