123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- using System;
- using System.ComponentModel;
- using System.Reflection;
- using System.Runtime.Serialization;
- using System.Windows.Input;
- using Aitex.Core.UI.MVVM;
- using MECF.Framework.Common.CommonData;
- namespace Aitex.Core.Common.DeviceData
- {
- [Serializable]
- public enum EnumRfPowerRegulationMode
- {
- [EnumMember]
- Undefined = 0,
- [EnumMember]
- Forward = 1,
- [EnumMember]
- Load = 2,
- [EnumMember]
- DcBias = 3,
- [EnumMember]
- VALimit = 4,
- }
- [Serializable]
- public enum EnumRfPowerWorkMode
- {
- [EnumMember]
- ContinuousWaveMode = 0,
- [EnumMember]
- PulsingMode = 1,
- }
- [Serializable]
- public enum EnumRfPowerControlMode
- {
- [EnumMember]
- ManualMode = 0,
- [EnumMember]
- AnalogMode = 1,
- [EnumMember]
- RS232Mode = 2,
- }
- [DataContract]
- [Serializable]
- public class AITRfPowerData : NotifiableItem, IDeviceData
- {
- [DataMember]
- public string Module { get; set; }
- [DataMember]
- public string DeviceName { get; set; }
- /// <summary>
- /// 显示在界面上的名称
- /// </summary>
- [DataMember]
- public string DisplayName { get; set; }
- /// <summary>
- /// IO 表中定义的物理编号,物理追溯使用 比如: M122
- /// </summary>
- [DataMember]
- public string DeviceSchematicId { get; set; }
- [DataMember]
- public string Description { get; set; }
- [DataMember]
- public string UnitPower { get; set; }
- [DataMember]
- public string UnitFrequency { get; set; }
- [DataMember]
- public string UnitDuty { get; set; }
- [DataMember]
- public double ScalePower { get; set; }
- [DataMember]
- public double ScaleFrequency { get; set; }
- [DataMember]
- public double ScaleDuty { get; set; }
- [DataMember]
- public float PowerSetPoint { get; set; }
- [DataMember]
- public float FrequencySetPoint { get; set; }
- [DataMember]
- public float DutySetPoint { get; set; }
- [DataMember]
- public bool IsInterlockOk { get; set; }
- [DataMember]
- public bool IsRfOn { get; set; }
- [DataMember]
- public bool IsRfAlarm { get; set; }
- [DataMember]
- public float ForwardPower { get; set; }
- [DataMember]
- public float ReflectPower { get; set; }
- [DataMember]
- public float Frequency { get; set; }
- [DataMember]
- public float PulsingFrequency { get; set; }
- [DataMember]
- public float PulsingDutyCycle { get; set; }
- public string TextOnOff
- {
- get
- {
- return IsRfOn ? "On" : "Off";
- }
- }
- [DataMember]
- public EnumRfPowerRegulationMode RegulationMode { get; set; }
- public AITRfPowerData()
- {
- DisplayName = "Undefined";
- }
- public void Update(IDeviceData data)
- {
- }
- }
- public enum AITRfPowerOperation
- {
- SetPowerOnOff,
- SetMode,
- SetContinuousPower,
- SetPulsingPower,
- SetPower,
- SetPulsingFrequency,
- SetPulsingDuty,
- SetMatchMode,
- SetMatchProcessMode,
- SetMatchPosition, //同时设置2个
- SetMatchPositionC1,
- SetMatchPositionC2,
- }
- public class AITRfPowerProperty
- {
- public const string RFEnable = "RFEnable";
- public const string RFSetPoint = "RFSetPoint";
- public const string RFForwardPower = "RFForwardPower";
- public const string RFReflectPower = "RFReflectPower";
- public const string RFRatio = "RFRatio";
- public const string RFInterlock = "RFInterlock";
- public const string RFDuty = "RFDuty";
- public const string RFFrequency = "RFFrequency";
- public const string RFMode = "RFMode";
- public const string RFMatchPositionC1Feedback = "RFMatchPositionC1Feedback";
- public const string RFMatchPositionC2Feedback = "RFMatchPositionC2Feedback";
- public const string RFMatchPositionC1SetPoint = "RFMatchPositionC1SetPoint";
- public const string RFMatchPositionC2SetPoint = "RFMatchPositionC2SetPoint";
- public const string RFAlarm = "RFAlarm";
- public const string Voltage = "Voltage";
- public const string Current = "Current";
- public const string IsOverTemp = "IsOverTemp";
- }
- }
|