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