UPS能翊行昆山现场调试

master
CZ 4 months ago
parent 91bffc0263
commit 26394bd494

@ -24,6 +24,26 @@ public class UpsClient: ModbusTcpMaster
//TODO::加解码方式 //TODO::加解码方式
ByteSeq = EndingConst.ByteSeq.BA; ByteSeq = EndingConst.ByteSeq.BA;
WordSeq= EndingConst.WordSeq.CD; WordSeq= EndingConst.WordSeq.CD;
try
{
string hexString01 = "08FD08FD08F708F500000000000013891389138900640064006408FF08F908F70012001700111388138813880027001D003008B008AF08AE00020000000313871387138700000000000000000000000100000000000100000000000000080000000D00FA086908660000000000FA7FF803E8000000000E0E0E0F08AD08AD08AD0876087800000000000000000000000F08B008AF08AE08FD08F708F500040001";
string hexString02 = "00010909090609030012001800111388138813880027001C00360E100E0F0869086508760874000000000000000008AD08AE08AD00020000000313881388138800000000000008B008AF08AE090A0908090500000000000100000000000100000000000000080000000D00000000000000000000000000000000000000080000000D0000000000000000000000000000000000200020000000000000FFFF000000000270000704C00100FFFF1BFF00807EFF00000001000183440A66000000000000014501AE015A014F014301660166016600000000000001AE0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001003700050029000200370005";
string hexString03 = "0001000100010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000030000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
byte[] bytes01=Convert.FromHexString(hexString01);
byte[] bytes02=Convert.FromHexString(hexString02);
byte[] bytes03=Convert.FromHexString(hexString03);
ModbusDecoder.Decode<UpsRemoteComm>(bytes01, UpsMgr.UpsRemoteComm, EndingConst.ByteSeq.AB, EndingConst.WordSeq.DC);
ModbusDecoder.Decode<UpsTelemetering>(bytes03, UpsMgr.UpsTelemetering, EndingConst.ByteSeq.AB, EndingConst.WordSeq.DC);
}
catch (Exception ex)
{
}
} }
private void BatchRead(ModbusTcpMaster master) private void BatchRead(ModbusTcpMaster master)
@ -32,24 +52,26 @@ public class UpsClient: ModbusTcpMaster
ModbusTcpNet _client = new ModbusTcpNet(master.Ip, master.Port, 0x01); ModbusTcpNet _client = new ModbusTcpNet(master.Ip, master.Port, 0x01);
OperateResult<byte[]> operateResult = _client.Read("x=3;" + 0, (ushort)81); OperateResult<byte[]> operateResult = _client.Read("x=3;" + 0, (ushort)81);
//0x03 //0x04
var bytes01 = master.BatchReadHolderRegister(0, 81); var bytes02 = master.BatchReadHolderRegister(1, 80);
if (bytes01 != null) if (bytes02 != null)
{ {
UpsMgr.DataValidityTime = DateTime.Now; UpsMgr.DataValidityTime = DateTime.Now;
ModbusDecoder.Decode<UpsTelemetering>(bytes01, UpsMgr.UpsTelemetering, EndingConst.ByteSeq.AB, ModbusDecoder.Decode<UpsRemoteComm>(bytes02, UpsMgr.UpsRemoteComm, EndingConst.ByteSeq.AB,
EndingConst.WordSeq.DC); EndingConst.WordSeq.DC);
} }
//0x04 //0x03
var bytes02 = master.BatchReadInputRegister(81, 161); var bytes01 = master.BatchReadHolderRegister(81, 160);
if (bytes02 != null) if (bytes01 != null)
{ {
UpsMgr.DataValidityTime = DateTime.Now; UpsMgr.DataValidityTime = DateTime.Now;
ModbusDecoder.Decode<UpsRemoteComm>(bytes01, UpsMgr.UpsRemoteComm, EndingConst.ByteSeq.AB, ModbusDecoder.Decode<UpsTelemetering>(bytes01, UpsMgr.UpsTelemetering, EndingConst.ByteSeq.AB,
EndingConst.WordSeq.DC); EndingConst.WordSeq.DC);
} }
} }
} }

@ -3,7 +3,7 @@ using HybirdFrameworkDriver.ModbusTcpMaster;
namespace Service.Ups.Msg; namespace Service.Ups.Msg;
/// <summary> /// <summary>
/// 遥 /// 遥
/// </summary> /// </summary>
public class UpsRemoteComm public class UpsRemoteComm
{ {
@ -106,7 +106,7 @@ public class UpsRemoteComm
public ModbusProperty<float> UnitNBypassVoltA { get; set; } = new(40075, scale: 0.1, round: 1); public ModbusProperty<float> UnitNBypassVoltA { get; set; } = new(40075, scale: 0.1, round: 1);
public ModbusProperty<float> UnitNBypassVoltB { get; set; } = new(40076, scale: 0.1, round: 1); public ModbusProperty<float> UnitNBypassVoltB { get; set; } = new(40076, scale: 0.1, round: 1);
public ModbusProperty<float> UnitNBypassVoltC { get; set; } = new(40077, scale: 0.1, round: 1); public ModbusProperty<float> UnitNBypassVoltC { get; set; } = new(40077, scale: 0.1, round: 1);
public ModbusProperty<uint> UpsSeriesNum { get; set; } = new(40078,start:0,length:6); //public ModbusProperty<short> UpsSeriesNum { get; set; } = new(40078,start:0,length:6);
public ModbusProperty<float> Reserve12 { get; set; } = new(40079); public ModbusProperty<float> Reserve12 { get; set; } = new(40079);
public ModbusProperty<ushort> ProtocolVersion1 { get; set; } = new(40080); public ModbusProperty<ushort> ProtocolVersion1 { get; set; } = new(40080);

@ -3,184 +3,184 @@ using HybirdFrameworkDriver.ModbusTcpMaster;
namespace Service.Ups.Msg; namespace Service.Ups.Msg;
/// <summary> /// <summary>
/// 遥 /// 遥
/// </summary> /// </summary>
public class UpsTelemetering public class UpsTelemetering
{ {
public ModbusProperty<ushort> LoadOnSource { get; set; } = new(40081); public ModbusProperty<ushort> LoadOnSource { get; set; } = new(30081);
public ModbusProperty<ushort> BatteryStatus { get; set; } = new(40082); public ModbusProperty<ushort> BatteryStatus { get; set; } = new(30082);
public ModbusProperty<ushort> BatteryConnStatus { get; set; } = new(40083); public ModbusProperty<ushort> BatteryConnStatus { get; set; } = new(30083);
public ModbusProperty<ushort> MaintanCbStatus { get; set; } = new(40084); public ModbusProperty<ushort> MaintanCbStatus { get; set; } = new(30084);
public ModbusProperty<ushort> Epo { get; set; } = new(40085); public ModbusProperty<ushort> Epo { get; set; } = new(30085);
public ModbusProperty<ushort> InvertorReadyCapscity { get; set; } = new(40086); public ModbusProperty<ushort> InvertorReadyCapscity { get; set; } = new(30086);
public ModbusProperty<ushort> GeneratorInput { get; set; } = new(40087); public ModbusProperty<ushort> GeneratorInput { get; set; } = new(30087);
public ModbusProperty<ushort> InputFail { get; set; } = new(40088); public ModbusProperty<ushort> InputFail { get; set; } = new(30088);
public ModbusProperty<ushort> BypassSequenceFail { get; set; } = new(40089); public ModbusProperty<ushort> BypassSequenceFail { get; set; } = new(30089);
public ModbusProperty<ushort> BypassVoltFail { get; set; } = new(40090); public ModbusProperty<ushort> BypassVoltFail { get; set; } = new(30090);
public ModbusProperty<ushort> BYpassFail { get; set; } = new(40091); public ModbusProperty<ushort> BYpassFail { get; set; } = new(30091);
public ModbusProperty<ushort> BypassOverLoad { get; set; } = new(40092); public ModbusProperty<ushort> BypassOverLoad { get; set; } = new(30092);
public ModbusProperty<ushort> BypassOverLoadTimeout { get; set; } = new(40093); public ModbusProperty<ushort> BypassOverLoadTimeout { get; set; } = new(30093);
public ModbusProperty<ushort> BypassUntrack { get; set; } = new(40094); public ModbusProperty<ushort> BypassUntrack { get; set; } = new(30094);
public ModbusProperty<ushort> TxTimeLimit { get; set; } = new(40095); public ModbusProperty<ushort> TxTimeLimit { get; set; } = new(30095);
public ModbusProperty<ushort> OutputShorted { get; set; } = new(40096); public ModbusProperty<ushort> OutputShorted { get; set; } = new(30096);
public ModbusProperty<ushort> BatteryEod { get; set; } = new(40097); public ModbusProperty<ushort> BatteryEod { get; set; } = new(30097);
public ModbusProperty<ushort> BatteryTestBegin { get; set; } = new(40098); public ModbusProperty<ushort> BatteryTestBegin { get; set; } = new(30098);
public ModbusProperty<ushort> BatteryTestResult { get; set; } = new(40099); public ModbusProperty<ushort> BatteryTestResult { get; set; } = new(30099);
public ModbusProperty<ushort> BatteryManualTest { get; set; } = new(40100); public ModbusProperty<ushort> BatteryManualTest { get; set; } = new(30100);
public ModbusProperty<ushort> BatteryMaintainResult { get; set; } = new(40101); public ModbusProperty<ushort> BatteryMaintainResult { get; set; } = new(30101);
public ModbusProperty<ushort> StopTest { get; set; } = new(40102); public ModbusProperty<ushort> StopTest { get; set; } = new(30102);
public ModbusProperty<ushort> FaultClear { get; set; } = new(40103); public ModbusProperty<ushort> FaultClear { get; set; } = new(30103);
public ModbusProperty<ushort> HislogClear { get; set; } = new(40104); public ModbusProperty<ushort> HislogClear { get; set; } = new(30104);
public ModbusProperty<ushort> OnUpsInhibited { get; set; } = new(40105); public ModbusProperty<ushort> OnUpsInhibited { get; set; } = new(30105);
public ModbusProperty<ushort> ManualTxBypass { get; set; } = new(40106); public ModbusProperty<ushort> ManualTxBypass { get; set; } = new(30106);
public ModbusProperty<ushort> BatteryVoltLow { get; set; } = new(40107); public ModbusProperty<ushort> BatteryVoltLow { get; set; } = new(30107);
public ModbusProperty<ushort> BatteryReverse { get; set; } = new(40108); public ModbusProperty<ushort> BatteryReverse { get; set; } = new(30108);
public ModbusProperty<ushort> RecStatus { get; set; } = new(40109); public ModbusProperty<ushort> RecStatus { get; set; } = new(30109);
public ModbusProperty<ushort> InputNeutralLost { get; set; } = new(40110); public ModbusProperty<ushort> InputNeutralLost { get; set; } = new(30110);
public ModbusProperty<ushort> BypassFanFail { get; set; } = new(40111); public ModbusProperty<ushort> BypassFanFail { get; set; } = new(30111);
public ModbusProperty<ushort> LostNxRedundant { get; set; } = new(40112); public ModbusProperty<ushort> LostNxRedundant { get; set; } = new(30112);
public ModbusProperty<ushort> EodSystemInhibited { get; set; } = new(40113); public ModbusProperty<ushort> EodSystemInhibited { get; set; } = new(30113);
public ModbusProperty<ushort> CtWeldReserve { get; set; } = new(40114); public ModbusProperty<ushort> CtWeldReserve { get; set; } = new(30114);
public ModbusProperty<ushort> Elector { get; set; } = new(40115); public ModbusProperty<ushort> Elector { get; set; } = new(30115);
public ModbusProperty<ushort> Reserve116 { get; set; } = new(40116); public ModbusProperty<ushort> Reserve116 { get; set; } = new(30116);
public ModbusProperty<ushort> Reserve117 { get; set; } = new(40117); public ModbusProperty<ushort> Reserve117 { get; set; } = new(30117);
public ModbusProperty<ushort> IntegratedAlarm { get; set; } = new(40118); public ModbusProperty<ushort> IntegratedAlarm { get; set; } = new(30118);
public ModbusProperty<ushort> FristModuleOnlineFlagBit { get; set; } = new(40119); public ModbusProperty<ushort> FristModuleOnlineFlagBit { get; set; } = new(30119);
public ModbusProperty<ushort> SecondModuleOnlineFlagBit { get; set; } = new(40120); public ModbusProperty<ushort> SecondModuleOnlineFlagBit { get; set; } = new(30120);
public ModbusProperty<ushort> Unit1Pull { get; set; } = new(40121); public ModbusProperty<ushort> Unit1Pull { get; set; } = new(30121);
public ModbusProperty<ushort> Unit1RecFail { get; set; } = new(40122); public ModbusProperty<ushort> Unit1RecFail { get; set; } = new(30122);
public ModbusProperty<ushort> Unit1InvFail { get; set; } = new(40123); public ModbusProperty<ushort> Unit1InvFail { get; set; } = new(30123);
public ModbusProperty<ushort> Unit1RecOverTemp { get; set; } = new(40124); public ModbusProperty<ushort> Unit1RecOverTemp { get; set; } = new(30124);
public ModbusProperty<ushort> Unit1FanFail { get; set; } = new(40125); public ModbusProperty<ushort> Unit1FanFail { get; set; } = new(30125);
public ModbusProperty<ushort> Unit1IvnOverLoad { get; set; } = new(40126); public ModbusProperty<ushort> Unit1IvnOverLoad { get; set; } = new(30126);
public ModbusProperty<ushort> Unit1IvnOverLoadTimeOut { get; set; } = new(40127); public ModbusProperty<ushort> Unit1IvnOverLoadTimeOut { get; set; } = new(30127);
public ModbusProperty<ushort> Unit1IvnOverTemp { get; set; } = new(40128); public ModbusProperty<ushort> Unit1IvnOverTemp { get; set; } = new(30128);
public ModbusProperty<ushort> Unit1IvnProtect { get; set; } = new(40129); public ModbusProperty<ushort> Unit1IvnProtect { get; set; } = new(30129);
public ModbusProperty<ushort> Unit1ManualShutdown { get; set; } = new(40130); public ModbusProperty<ushort> Unit1ManualShutdown { get; set; } = new(30130);
public ModbusProperty<ushort> Reserve131 { get; set; } = new(40131); public ModbusProperty<ushort> Reserve131 { get; set; } = new(30131);
public ModbusProperty<ushort> Reserve132 { get; set; } = new(40132); public ModbusProperty<ushort> Reserve132 { get; set; } = new(30132);
public ModbusProperty<ushort> Unit2Pull { get; set; } = new(40133); public ModbusProperty<ushort> Unit2Pull { get; set; } = new(30133);
public ModbusProperty<ushort> Unit2RecFail { get; set; } = new(40134); public ModbusProperty<ushort> Unit2RecFail { get; set; } = new(30134);
public ModbusProperty<ushort> Unit2InvFail { get; set; } = new(40135); public ModbusProperty<ushort> Unit2InvFail { get; set; } = new(30135);
public ModbusProperty<ushort> Unit2RecOverTemp { get; set; } = new(40136); public ModbusProperty<ushort> Unit2RecOverTemp { get; set; } = new(30136);
public ModbusProperty<ushort> Unit2FanFail { get; set; } = new(40137); public ModbusProperty<ushort> Unit2FanFail { get; set; } = new(30137);
public ModbusProperty<ushort> Unit2IvnOverLoad { get; set; } = new(40138); public ModbusProperty<ushort> Unit2IvnOverLoad { get; set; } = new(30138);
public ModbusProperty<ushort> Unit2IvnOverLoadTimeOut { get; set; } = new(40139); public ModbusProperty<ushort> Unit2IvnOverLoadTimeOut { get; set; } = new(30139);
public ModbusProperty<ushort> Unit2IvnOverTemp { get; set; } = new(40140); public ModbusProperty<ushort> Unit2IvnOverTemp { get; set; } = new(30130);
public ModbusProperty<ushort> Unit2IvnProtect { get; set; } = new(40141); public ModbusProperty<ushort> Unit2IvnProtect { get; set; } = new(30141);
public ModbusProperty<ushort> Unit2ManualShutdown { get; set; } = new(40142); public ModbusProperty<ushort> Unit2ManualShutdown { get; set; } = new(30142);
public ModbusProperty<ushort> Reserve143 { get; set; } = new(40143); public ModbusProperty<ushort> Reserve143 { get; set; } = new(30143);
public ModbusProperty<ushort> Reserve144 { get; set; } = new(40144); public ModbusProperty<ushort> Reserve144 { get; set; } = new(30144);
public ModbusProperty<ushort> Unit3Pull { get; set; } = new(40145); public ModbusProperty<ushort> Unit3Pull { get; set; } = new(30145);
public ModbusProperty<ushort> Unit3RecFail { get; set; } = new(40146); public ModbusProperty<ushort> Unit3RecFail { get; set; } = new(30146);
public ModbusProperty<ushort> Unit3InvFail { get; set; } = new(40147); public ModbusProperty<ushort> Unit3InvFail { get; set; } = new(30147);
public ModbusProperty<ushort> Unit3RecOverTemp { get; set; } = new(40148); public ModbusProperty<ushort> Unit3RecOverTemp { get; set; } = new(30148);
public ModbusProperty<ushort> Unit3FanFail { get; set; } = new(40149); public ModbusProperty<ushort> Unit3FanFail { get; set; } = new(30149);
public ModbusProperty<ushort> Unit3IvnOverLoad { get; set; } = new(40150); public ModbusProperty<ushort> Unit3IvnOverLoad { get; set; } = new(30150);
public ModbusProperty<ushort> Unit3IvnOverLoadTimeOut { get; set; } = new(40151); public ModbusProperty<ushort> Unit3IvnOverLoadTimeOut { get; set; } = new(30151);
public ModbusProperty<ushort> Unit3IvnOverTemp { get; set; } = new(40152); public ModbusProperty<ushort> Unit3IvnOverTemp { get; set; } = new(30152);
public ModbusProperty<ushort> Unit3IvnProtect { get; set; } = new(40153); public ModbusProperty<ushort> Unit3IvnProtect { get; set; } = new(30153);
public ModbusProperty<ushort> Unit3ManualShutdown { get; set; } = new(40154); public ModbusProperty<ushort> Unit3ManualShutdown { get; set; } = new(30154);
public ModbusProperty<ushort> Reserve155 { get; set; } = new(40155); public ModbusProperty<ushort> Reserve155 { get; set; } = new(30155);
public ModbusProperty<ushort> Reserve156 { get; set; } = new(40156); public ModbusProperty<ushort> Reserve156 { get; set; } = new(30156);
public ModbusProperty<ushort> Unit4Pull { get; set; } = new(40157); public ModbusProperty<ushort> Unit4Pull { get; set; } = new(30157);
public ModbusProperty<ushort> Unit4RecFail { get; set; } = new(40158); public ModbusProperty<ushort> Unit4RecFail { get; set; } = new(30158);
public ModbusProperty<ushort> Unit4InvFail { get; set; } = new(40159); public ModbusProperty<ushort> Unit4InvFail { get; set; } = new(30159);
public ModbusProperty<ushort> Unit4RecOverTemp { get; set; } = new(40160); public ModbusProperty<ushort> Unit4RecOverTemp { get; set; } = new(30160);
public ModbusProperty<ushort> Unit4FanFail { get; set; } = new(40161); public ModbusProperty<ushort> Unit4FanFail { get; set; } = new(30161);
public ModbusProperty<ushort> Unit4IvnOverLoad { get; set; } = new(40162); public ModbusProperty<ushort> Unit4IvnOverLoad { get; set; } = new(30162);
public ModbusProperty<ushort> Unit4IvnOverLoadTimeOut { get; set; } = new(40163); public ModbusProperty<ushort> Unit4IvnOverLoadTimeOut { get; set; } = new(30163);
public ModbusProperty<ushort> Unit4IvnOverTemp { get; set; } = new(40164); public ModbusProperty<ushort> Unit4IvnOverTemp { get; set; } = new(30164);
public ModbusProperty<ushort> Unit4IvnProtect { get; set; } = new(40165); public ModbusProperty<ushort> Unit4IvnProtect { get; set; } = new(30165);
public ModbusProperty<ushort> Unit4ManualShutdown { get; set; } = new(40166); public ModbusProperty<ushort> Unit4ManualShutdown { get; set; } = new(30166);
public ModbusProperty<ushort> Reserve167 { get; set; } = new(40167); public ModbusProperty<ushort> Reserve167 { get; set; } = new(30167);
public ModbusProperty<ushort> Reserve168 { get; set; } = new(40168); public ModbusProperty<ushort> Reserve168 { get; set; } = new(30168);
public ModbusProperty<ushort> Unit5Pull { get; set; } = new(40169); public ModbusProperty<ushort> Unit5Pull { get; set; } = new(30169);
public ModbusProperty<ushort> Unit5RecFail { get; set; } = new(40170); public ModbusProperty<ushort> Unit5RecFail { get; set; } = new(30170);
public ModbusProperty<ushort> Unit5InvFail { get; set; } = new(40171); public ModbusProperty<ushort> Unit5InvFail { get; set; } = new(30171);
public ModbusProperty<ushort> Unit5RecOverTemp { get; set; } = new(40172); public ModbusProperty<ushort> Unit5RecOverTemp { get; set; } = new(30172);
public ModbusProperty<ushort> Unit5FanFail { get; set; } = new(40173); public ModbusProperty<ushort> Unit5FanFail { get; set; } = new(30173);
public ModbusProperty<ushort> Unit5IvnOverLoad { get; set; } = new(40174); public ModbusProperty<ushort> Unit5IvnOverLoad { get; set; } = new(30174);
public ModbusProperty<ushort> Unit5IvnOverLoadTimeOut { get; set; } = new(40175); public ModbusProperty<ushort> Unit5IvnOverLoadTimeOut { get; set; } = new(30175);
public ModbusProperty<ushort> Unit5IvnOverTemp { get; set; } = new(40176); public ModbusProperty<ushort> Unit5IvnOverTemp { get; set; } = new(30176);
public ModbusProperty<ushort> Unit5IvnProtect { get; set; } = new(40177); public ModbusProperty<ushort> Unit5IvnProtect { get; set; } = new(30177);
public ModbusProperty<ushort> Unit5ManualShutdown { get; set; } = new(40178); public ModbusProperty<ushort> Unit5ManualShutdown { get; set; } = new(30178);
public ModbusProperty<ushort> Reserve179 { get; set; } = new(40179); public ModbusProperty<ushort> Reserve179 { get; set; } = new(30179);
public ModbusProperty<ushort> Reserve180 { get; set; } = new(40180); public ModbusProperty<ushort> Reserve180 { get; set; } = new(30180);
public ModbusProperty<ushort> Unit6Pull { get; set; } = new(40181); public ModbusProperty<ushort> Unit6Pull { get; set; } = new(30181);
public ModbusProperty<ushort> Unit6RecFail { get; set; } = new(40182); public ModbusProperty<ushort> Unit6RecFail { get; set; } = new(30182);
public ModbusProperty<ushort> Unit6InvFail { get; set; } = new(40183); public ModbusProperty<ushort> Unit6InvFail { get; set; } = new(30183);
public ModbusProperty<ushort> Unit6RecOverTemp { get; set; } = new(40184); public ModbusProperty<ushort> Unit6RecOverTemp { get; set; } = new(30184);
public ModbusProperty<ushort> Unit6FanFail { get; set; } = new(40185); public ModbusProperty<ushort> Unit6FanFail { get; set; } = new(30185);
public ModbusProperty<ushort> Unit6IvnOverLoad { get; set; } = new(40186); public ModbusProperty<ushort> Unit6IvnOverLoad { get; set; } = new(30186);
public ModbusProperty<ushort> Unit6IvnOverLoadTimeOut { get; set; } = new(40187); public ModbusProperty<ushort> Unit6IvnOverLoadTimeOut { get; set; } = new(30187);
public ModbusProperty<ushort> Unit6IvnOverTemp { get; set; } = new(40188); public ModbusProperty<ushort> Unit6IvnOverTemp { get; set; } = new(30188);
public ModbusProperty<ushort> Unit6IvnProtect { get; set; } = new(40189); public ModbusProperty<ushort> Unit6IvnProtect { get; set; } = new(30189);
public ModbusProperty<ushort> Unit6ManualShutdown { get; set; } = new(40190); public ModbusProperty<ushort> Unit6ManualShutdown { get; set; } = new(30190);
public ModbusProperty<ushort> Reserve191 { get; set; } = new(40191); public ModbusProperty<ushort> Reserve191 { get; set; } = new(30191);
public ModbusProperty<ushort> Reserve192 { get; set; } = new(40192); public ModbusProperty<ushort> Reserve192 { get; set; } = new(30192);
public ModbusProperty<ushort> Unit7Pull { get; set; } = new(40193); public ModbusProperty<ushort> Unit7Pull { get; set; } = new(30193);
public ModbusProperty<ushort> Unit7RecFail { get; set; } = new(40194); public ModbusProperty<ushort> Unit7RecFail { get; set; } = new(30194);
public ModbusProperty<ushort> Unit7InvFail { get; set; } = new(40195); public ModbusProperty<ushort> Unit7InvFail { get; set; } = new(30195);
public ModbusProperty<ushort> Unit7RecOverTemp { get; set; } = new(40196); public ModbusProperty<ushort> Unit7RecOverTemp { get; set; } = new(30196);
public ModbusProperty<ushort> Unit7FanFail { get; set; } = new(40197); public ModbusProperty<ushort> Unit7FanFail { get; set; } = new(30197);
public ModbusProperty<ushort> Unit7IvnOverLoad { get; set; } = new(40198); public ModbusProperty<ushort> Unit7IvnOverLoad { get; set; } = new(30198);
public ModbusProperty<ushort> Unit7IvnOverLoadTimeOut { get; set; } = new(40199); public ModbusProperty<ushort> Unit7IvnOverLoadTimeOut { get; set; } = new(30199);
public ModbusProperty<ushort> Unit7IvnOverTemp { get; set; } = new(40200); public ModbusProperty<ushort> Unit7IvnOverTemp { get; set; } = new(30200);
public ModbusProperty<ushort> Unit7IvnProtect { get; set; } = new(40201); public ModbusProperty<ushort> Unit7IvnProtect { get; set; } = new(30201);
public ModbusProperty<ushort> Unit7ManualShutdown { get; set; } = new(40202); public ModbusProperty<ushort> Unit7ManualShutdown { get; set; } = new(30202);
public ModbusProperty<ushort> Reserve203 { get; set; } = new(40203); public ModbusProperty<ushort> Reserve203 { get; set; } = new(30203);
public ModbusProperty<ushort> Reserve204 { get; set; } = new(40204); public ModbusProperty<ushort> Reserve204 { get; set; } = new(30204);
public ModbusProperty<ushort> Unit8Pull { get; set; } = new(40205); public ModbusProperty<ushort> Unit8Pull { get; set; } = new(30205);
public ModbusProperty<ushort> Unit8RecFail { get; set; } = new(40206); public ModbusProperty<ushort> Unit8RecFail { get; set; } = new(30206);
public ModbusProperty<ushort> Unit8InvFail { get; set; } = new(40207); public ModbusProperty<ushort> Unit8InvFail { get; set; } = new(30207);
public ModbusProperty<ushort> Unit8RecOverTemp { get; set; } = new(40208); public ModbusProperty<ushort> Unit8RecOverTemp { get; set; } = new(30208);
public ModbusProperty<ushort> Unit8FanFail { get; set; } = new(40209); public ModbusProperty<ushort> Unit8FanFail { get; set; } = new(30209);
public ModbusProperty<ushort> Unit8IvnOverLoad { get; set; } = new(40210); public ModbusProperty<ushort> Unit8IvnOverLoad { get; set; } = new(30210);
public ModbusProperty<ushort> Unit8IvnOverLoadTimeOut { get; set; } = new(40211); public ModbusProperty<ushort> Unit8IvnOverLoadTimeOut { get; set; } = new(30211);
public ModbusProperty<ushort> Unit8IvnOverTemp { get; set; } = new(40212); public ModbusProperty<ushort> Unit8IvnOverTemp { get; set; } = new(30212);
public ModbusProperty<ushort> Unit8IvnProtect { get; set; } = new(40213); public ModbusProperty<ushort> Unit8IvnProtect { get; set; } = new(30213);
public ModbusProperty<ushort> Unit8ManualShutdown { get; set; } = new(40214); public ModbusProperty<ushort> Unit8ManualShutdown { get; set; } = new(30214);
public ModbusProperty<ushort> Reserve215 { get; set; } = new(40215); public ModbusProperty<ushort> Reserve215 { get; set; } = new(30215);
public ModbusProperty<ushort> Reserve216 { get; set; } = new(40216); public ModbusProperty<ushort> Reserve216 { get; set; } = new(30216);
public ModbusProperty<ushort> Unit9Pull { get; set; } = new(40217); public ModbusProperty<ushort> Unit9Pull { get; set; } = new(30217);
public ModbusProperty<ushort> Unit9RecFail { get; set; } = new(40218); public ModbusProperty<ushort> Unit9RecFail { get; set; } = new(30218);
public ModbusProperty<ushort> Unit9InvFail { get; set; } = new(40219); public ModbusProperty<ushort> Unit9InvFail { get; set; } = new(30219);
public ModbusProperty<ushort> Unit9RecOverTemp { get; set; } = new(40220); public ModbusProperty<ushort> Unit9RecOverTemp { get; set; } = new(30220);
public ModbusProperty<ushort> Unit9FanFail { get; set; } = new(40221); public ModbusProperty<ushort> Unit9FanFail { get; set; } = new(30221);
public ModbusProperty<ushort> Unit9IvnOverLoad { get; set; } = new(40222); public ModbusProperty<ushort> Unit9IvnOverLoad { get; set; } = new(30222);
public ModbusProperty<ushort> Unit9IvnOverLoadTimeOut { get; set; } = new(40223); public ModbusProperty<ushort> Unit9IvnOverLoadTimeOut { get; set; } = new(30223);
public ModbusProperty<ushort> Unit9IvnOverTemp { get; set; } = new(40224); public ModbusProperty<ushort> Unit9IvnOverTemp { get; set; } = new(30224);
public ModbusProperty<ushort> Unit9IvnProtect { get; set; } = new(40225); public ModbusProperty<ushort> Unit9IvnProtect { get; set; } = new(30225);
public ModbusProperty<ushort> Unit9ManualShutdown { get; set; } = new(40226); public ModbusProperty<ushort> Unit9ManualShutdown { get; set; } = new(30226);
public ModbusProperty<ushort> Reserve227 { get; set; } = new(40227); public ModbusProperty<ushort> Reserve227 { get; set; } = new(30227);
public ModbusProperty<ushort> Reserve228 { get; set; } = new(40228); public ModbusProperty<ushort> Reserve228 { get; set; } = new(30228);
public ModbusProperty<ushort> Unit10Pull { get; set; } = new(40229); public ModbusProperty<ushort> Unit10Pull { get; set; } = new(30229);
public ModbusProperty<ushort> Unit10RecFail { get; set; } = new(40230); public ModbusProperty<ushort> Unit10RecFail { get; set; } = new(30230);
public ModbusProperty<ushort> Unit10InvFail { get; set; } = new(40231); public ModbusProperty<ushort> Unit10InvFail { get; set; } = new(30231);
public ModbusProperty<ushort> Unit10RecOverTemp { get; set; } = new(40232); public ModbusProperty<ushort> Unit10RecOverTemp { get; set; } = new(30232);
public ModbusProperty<ushort> Unit10FanFail { get; set; } = new(40233); public ModbusProperty<ushort> Unit10FanFail { get; set; } = new(30233);
public ModbusProperty<ushort> Unit10IvnOverLoad { get; set; } = new(40234); public ModbusProperty<ushort> Unit10IvnOverLoad { get; set; } = new(30234);
public ModbusProperty<ushort> Unit10IvnOverLoadTimeOut { get; set; } = new(40235); public ModbusProperty<ushort> Unit10IvnOverLoadTimeOut { get; set; } = new(30235);
public ModbusProperty<ushort> Unit10IvnOverTemp { get; set; } = new(40236); public ModbusProperty<ushort> Unit10IvnOverTemp { get; set; } = new(30236);
public ModbusProperty<ushort> Unit10IvnProtect { get; set; } = new(40237); public ModbusProperty<ushort> Unit10IvnProtect { get; set; } = new(30237);
public ModbusProperty<ushort> Unit10ManualShutdown { get; set; } = new(40238); public ModbusProperty<ushort> Unit10ManualShutdown { get; set; } = new(30238);
public ModbusProperty<ushort> Reserve239 { get; set; } = new(40239); public ModbusProperty<ushort> Reserve239 { get; set; } = new(30239);
public ModbusProperty<ushort> Reserve240 { get; set; } = new(40240); public ModbusProperty<ushort> Reserve240 { get; set; } = new(30240);

@ -17,6 +17,7 @@ using Service.Execute;
using Service.Led; using Service.Led;
using Service.Padar.Client; using Service.Padar.Client;
using Service.RealTime; using Service.RealTime;
using Service.Ups;
using SqlSugar; using SqlSugar;
using SqlSugar.IOC; using SqlSugar.IOC;
@ -188,7 +189,11 @@ if (AppSettingsHelper.GetBool("led", "enable"))
AppInfo.Container = app.Services.GetAutofacRoot(); AppInfo.Container = app.Services.GetAutofacRoot();
ClientMgr.InitClient(); ClientMgr.InitClient();
//UpsMgr.UpsInit(); //ups
if (AppSettingsHelper.GetBool("ups", "enable"))
{
UpsMgr.UpsInit();
}
//TaskInit.Init(); //TaskInit.Init();
//PadarMgr.InitClient(); //PadarMgr.InitClient();

Loading…
Cancel
Save