|
|
/*namespace Service.Ups.UpsMsg;
|
|
|
|
|
|
/// <summary>
|
|
|
/// UPS读取到的二次处理数据
|
|
|
/// </summary>
|
|
|
public class UpsInfoMsgHandling
|
|
|
{
|
|
|
|
|
|
#region 1警告项目
|
|
|
|
|
|
public bool Reservation05 { get; set; } = new(0x0000,start:0,length:1);
|
|
|
public bool Reservation04 { get; set; } = new(0x0000,start:1,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 充电器故障
|
|
|
/// </summary>
|
|
|
public bool ChargerFail { get; set; } = new(0x0000,start:2,length:1);
|
|
|
/// <summary>
|
|
|
/// 过温
|
|
|
/// </summary>
|
|
|
public bool OverTemperature{ get; set; } = new(0x0000,start:3,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 保留
|
|
|
/// </summary>
|
|
|
public bool Reservation03{ get; set; } = new(0x0000,start:4,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// EPO活跃
|
|
|
/// </summary>
|
|
|
public bool EPOActive { get; set; } = new(0x0000,start:5,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 保留
|
|
|
/// </summary>
|
|
|
public bool Reservation02 { get; set; } = new(0x0000,start:6,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 过载警告
|
|
|
/// </summary>
|
|
|
public bool OverloadWarning { get; set; } = new(0x0000,start:7,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// Battery低
|
|
|
/// </summary>
|
|
|
public bool BatteryLow { get; set; } = new(0x0000,start:8,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 电池电量过量
|
|
|
/// </summary>
|
|
|
public bool BatteryOverCharge { get; set; } = new(0x0000,start:9,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 电池打开0:FALSE/1:TRUE
|
|
|
/// </summary>
|
|
|
public bool Battery { get; set; } = new(0x0000,start:15,length:1);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 警告Battery放回
|
|
|
/// </summary>
|
|
|
public bool WarningForBatteryReplace { get; set; } = new(0x0003,start:8,length:1);
|
|
|
/// <summary>
|
|
|
/// EEPROM操作Eeror
|
|
|
/// </summary>
|
|
|
public bool EepromOperationEeror { get; set; } = new(0x0003,start:2,length:1);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 更换电池
|
|
|
/// </summary>
|
|
|
public bool ReplaceBattery { get; set; } = new(0x0004,start:15,length:1);
|
|
|
/// <summary>
|
|
|
/// 电池电量不足
|
|
|
/// </summary>
|
|
|
public bool LowBattery { get; set; } = new(0x0004,start:14,length:1);
|
|
|
/// <summary>
|
|
|
/// 过载输出
|
|
|
/// </summary>
|
|
|
public bool OverloadOutput { get; set; } = new(0x0004,start:13,length:1);
|
|
|
/// <summary>
|
|
|
/// 电池模式
|
|
|
/// </summary>
|
|
|
public bool OnBatteryMode { get; set; } = new(0x0004,start:12,length:1);
|
|
|
/// <summary>
|
|
|
/// 在线模式
|
|
|
/// </summary>
|
|
|
public bool OnlineMode { get; set; } = new(0x0004,start:11,length:1);
|
|
|
/// <summary>
|
|
|
/// UPS准备在用户命令下加载电源或 返回 正常线路电压
|
|
|
/// </summary>
|
|
|
public bool UpsReady1 { get; set; } = new(0x0004,start:7,length:1);
|
|
|
/// <summary>
|
|
|
/// UPS准备在用户命令下加载电源
|
|
|
/// </summary>
|
|
|
public bool UpsReady2 { get; set; } = new(0x0004,start:6,length:1);
|
|
|
/// <summary>
|
|
|
/// UPS正在从旁路模式返回
|
|
|
/// </summary>
|
|
|
public bool UPSReady { get; set; } = new(0x0004,start:4,length:1);
|
|
|
/// <summary>
|
|
|
/// UPS因UPS-Link而处于旁路模式或钥匙 指挥权
|
|
|
/// </summary>
|
|
|
public bool UPSBypass { get; set; } = new(0x0004,start:3,length:1);
|
|
|
/// <summary>
|
|
|
/// 由于内部故障,UPS处于旁路模式
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public bool UPSBypassModeDueInternaFault { get; set; } = new(0x0004,start:1,length:1);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 输出电压差
|
|
|
/// </summary>
|
|
|
public bool BadOutputVoltage { get; set; } = new(0x0005,start:15,length:1);
|
|
|
/// <summary>
|
|
|
/// UPS故障-直流不平衡;UPS处于旁路
|
|
|
/// </summary>
|
|
|
public bool UPSFaultDCImbalance { get; set; } = new(0x0005,start:12,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit7 = 内部温度已超过标称温度限制
|
|
|
/// </summary>
|
|
|
public bool InternalTemperatureHasExceededNominalLimits{ get; set; } = new(0x0005,start:7,length:1);
|
|
|
/// <summary>
|
|
|
/// Battery充电器故障
|
|
|
/// </summary>
|
|
|
public bool BatteryChargerFailure { get; set; } = new(0x0005,start:5,length:1);
|
|
|
/// <summary>
|
|
|
/// UPS通过“S”命令处于关机模式
|
|
|
/// </summary>
|
|
|
public bool UPSShutDownModeViaCommand { get; set; } = new(0x0005,start:4,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit3 = UPS在“睡眠”模式下通过“@Ddd”命令
|
|
|
/// </summary>
|
|
|
public bool UPSSleepModeViaCommand { get; set; } = new(0x0005,start:3,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit0 = UPS的输出因电池电量不足而无法供电关闭
|
|
|
/// </summary>
|
|
|
public bool UPSOutputUnpoweredDueToLowBatteryshutDown { get; set; } = new(0x0005,start:0,length:1);
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 2能力设置
|
|
|
/// <summary>
|
|
|
/// 启用/禁用声音警报
|
|
|
/// </summary>
|
|
|
public bool EnableAudibleAlarm { get; set; } = new(0x000E,start:15,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用自动重新启动
|
|
|
/// </summary>
|
|
|
public bool EnableAutoRestart { get; set; } = new(0x000E,start:10,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用代码启动
|
|
|
/// </summary>
|
|
|
public bool EnableDodeStart { get; set; } = new(0x000E,start:7,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用旁路禁止
|
|
|
/// </summary>
|
|
|
public bool EnableBypassForBiding { get; set; } = new(0x000E,start:6,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit3=设备时启用/禁用旁路关掉。
|
|
|
/// </summary>
|
|
|
public bool EnableBypassWhenDeviceTurnOff { get; set; } = new(0x000E,start:3,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit2=启用/禁用旁路可听警告
|
|
|
/// </summary>
|
|
|
public bool EnableBypassAudibleWarning { get; set; } = new(0x000E,start:2,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用高效模式
|
|
|
/// </summary>
|
|
|
public bool EnableHighEfficiencyMode { get; set; } = new(0x000E,start:1,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用节能
|
|
|
/// </summary>
|
|
|
public bool EnableEnergySaving { get; set; } = new(0x000E,start:0,length:1);
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 启用/禁用转换器模式
|
|
|
/// </summary>
|
|
|
public bool EnableConverterMode { get; set; } = new(0x000F,start:12,length:1);
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 3支持能力列表
|
|
|
|
|
|
/// <summary>
|
|
|
/// 启用/禁用声音警报
|
|
|
/// </summary>
|
|
|
public bool EnableAudibleAlarm1 { get; set; } = new(0x0010,start:15,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用自动重新启动。
|
|
|
/// </summary>
|
|
|
public bool EnableAutoRestart1 { get; set; } = new(0x0010,start:10,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用代码启动
|
|
|
/// </summary>
|
|
|
public bool EnableCodeStart { get; set; } = new(0x0010,start:7,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用旁路禁止
|
|
|
/// </summary>
|
|
|
public bool EnableBypassForbidding { get; set; } = new(0x0010,start:6,length:1);
|
|
|
/// <summary>
|
|
|
/// 在设备时启用/禁用旁路关掉。
|
|
|
/// </summary>
|
|
|
public bool EnableBypassWhenDeviceTurnOff1 { get; set; } = new(0x0010,start:3,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用旁路声音警告
|
|
|
/// </summary>
|
|
|
public bool EnableBypassAudibleWarning1 { get; set; } = new(0x0010,start:2,length:1);
|
|
|
/// <summary>
|
|
|
/// 启用/禁用高效率形式
|
|
|
/// </summary>
|
|
|
public bool EnableHighEfficiencyMode1 { get; set; } = new(0x0010,start:1,length:1);
|
|
|
/// <summary>
|
|
|
/// 支持:启用/禁用节能
|
|
|
/// </summary>
|
|
|
public bool EnableEnergySaving1 { get; set; } = new(0x0010,start:0,length:1);
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 启用/禁用转换器模式
|
|
|
/// </summary>
|
|
|
public bool EnableConverterMode1 { get; set; } = new(0x0011,start:0,length:1);
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 4控制项
|
|
|
|
|
|
/// <summary>
|
|
|
/// Bit15=静音蜂鸣器嘟嘟声
|
|
|
/// </summary>
|
|
|
public bool SilenceBuzzerBeep { get; set; } = new(0x001A,start:15,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit14=蜂鸣器蜂鸣器打开
|
|
|
/// </summary>
|
|
|
public bool BuzzerBeepOpen { get; set; } = new(0x001A,start:14,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit13=测试直到电池电量不足
|
|
|
/// </summary>
|
|
|
public bool TestUntilBatteryLow { get; set; } = new(0x001A,start:13,length:1);
|
|
|
/// <summary>
|
|
|
/// bit12=关闭UPS
|
|
|
/// </summary>
|
|
|
public bool TurnOnUps { get; set; } = new(0x001A,start:12,length:1);
|
|
|
/// <summary>
|
|
|
/// bit11=打开UPS
|
|
|
/// </summary>
|
|
|
public bool CancelShutdown { get; set; } = new(0x001A,start:11,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit10=取消关机
|
|
|
/// </summary>
|
|
|
public bool CancelTest { get; set; } = new(0x001A,start:10,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit9=取消测试
|
|
|
/// </summary>
|
|
|
public bool SecondsTest { get; set; } = new(0x001A,start:9,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit8=10秒测试
|
|
|
/// </summary>
|
|
|
public bool TurnOffAfterDelay1 { get; set; } = new(0x001A,start:8,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit3 = 之后关掉延迟
|
|
|
/// </summary>
|
|
|
public bool ShutdownUpsOnBattery { get; set; } = new(0x001A,start:3,length:1);
|
|
|
/// <summary>
|
|
|
/// 位2 = 关闭UPS Battery
|
|
|
/// </summary>
|
|
|
public bool Reservation { get; set; } = new(0x001A,start:2,length:1);
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 5控制的结果
|
|
|
|
|
|
/// <summary>
|
|
|
/// 位15=旗帜:沉默蜂鸣器蜂鸣声
|
|
|
/// </summary>
|
|
|
public bool SilenceBuzzerBeep1 { get; set; } = new(0x0025,start:15,length:1);
|
|
|
/// <summary>
|
|
|
/// 位14=旗帜:蜂鸣器哔哔声打开
|
|
|
/// </summary>
|
|
|
public bool buzzerBeepOpen1 { get; set; } = new(0x0025,start:14,length:1);
|
|
|
/// <summary>
|
|
|
/// 位13=旗帜:测试直到电池电量不足
|
|
|
/// </summary>
|
|
|
public bool TestUntilBatteryLow1 { get; set; } = new(0x0025,start:13,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit12=旗帜:转关闭UPS
|
|
|
/// </summary>
|
|
|
public bool TurnOffUps1 { get; set; } = new(0x0025,start:12,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit11=旗帜:转在UPS上
|
|
|
/// </summary>
|
|
|
public bool TurnOnUps1 { get; set; } = new(0x0025,start:11,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit10=标志:取消停工
|
|
|
/// </summary>
|
|
|
public bool CancelShutdown1 { get; set; } = new(0x0025,start:10,length:1);
|
|
|
/// <summary>
|
|
|
/// Bit9=标志:取消测试
|
|
|
/// </summary>
|
|
|
public bool CancelTest1 { get; set; } = new(0x0025,start:9,length:1);
|
|
|
/// <summary>
|
|
|
/// bit8=Flag:10秒测试
|
|
|
/// </summary>
|
|
|
public bool SecondsTest10 { get; set; } = new(0x0025,start:8,length:1);
|
|
|
/// <summary>
|
|
|
/// 位3 = 旗帜:转离开 延迟后
|
|
|
/// </summary>
|
|
|
public bool TurnOffAfterDelay { get; set; } = new(0x0025,start:3,length:1);
|
|
|
/// <summary>
|
|
|
/// 位2 = 旗帜:关闭 UPS在Battery
|
|
|
/// </summary>
|
|
|
public bool ShutdownUpsOnBattery1 { get; set; } = new(0x0025,start:2,length:1);
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 6将参数设置为默认值
|
|
|
|
|
|
/// <summary>
|
|
|
/// 位15=设置控制参数到默认值
|
|
|
/// </summary>
|
|
|
public bool SetingControlParameterDefaultValue1 { get; set; } = new(0x0030,start:15,length:1);
|
|
|
/// <summary>
|
|
|
/// 位15=设置控制参数到默认值
|
|
|
/// </summary>
|
|
|
public bool SetingControlParameterDefaultValue2 { get; set; } = new(0x003B,start:15,length:1);
|
|
|
|
|
|
#endregion
|
|
|
}*/ |