From a9fc83e172f9fb63cfbaaf250545f760d340928f Mon Sep 17 00:00:00 2001 From: CZ Date: Wed, 14 Aug 2024 09:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=98=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Fire/Client/FireClient.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Service/Fire/Client/FireClient.cs b/Service/Fire/Client/FireClient.cs index ac94eb3..09c7517 100644 --- a/Service/Fire/Client/FireClient.cs +++ b/Service/Fire/Client/FireClient.cs @@ -23,13 +23,13 @@ public class FireClient: ModbusTcpMaster { bool resul = Connected; var bytes01 = master.Read("x=3;1", 80).Content; - var bytes02 = master.Read("x=3;1", 80).Content; + var bytes02 = master.Read("x=3;32768", 80).Content; if (bytes01 != null) { FireMgr.DataValidityTime = DateTime.Now; - ModbusDecoder.Decode(bytes02, FireMgr.FireMsg, EndingConst.ByteSeq.AB, + ModbusDecoder.Decode(bytes01, FireMgr.FireMsg, EndingConst.ByteSeq.AB, EndingConst.WordSeq.DC); } @@ -37,8 +37,8 @@ public class FireClient: ModbusTcpMaster { FireMgr.DataValidityTime = DateTime.Now; - //ModbusDecoder.Decode(bytes02, UpsMgr.UpsRemoteComm, EndingConst.ByteSeq.AB, - // EndingConst.WordSeq.DC); + ModbusDecoder.Decode(bytes02, FireMgr.FaultMsg, EndingConst.ByteSeq.AB, + EndingConst.WordSeq.DC); } } } \ No newline at end of file