diff --git a/ProductionSystem/Untils/Tool/ExvTool.cs b/ProductionSystem/Untils/Tool/ExvTool.cs index 798103c..2dd8bfb 100644 --- a/ProductionSystem/Untils/Tool/ExvTool.cs +++ b/ProductionSystem/Untils/Tool/ExvTool.cs @@ -65,8 +65,7 @@ namespace ProductionSystem.Untils.Tool XTrace.WriteLine("============================="); var intelLsb = me.GetIntelLsb(0, 1); - - + intelLsb = me.GetIntelLsb(0, 1); XTrace.WriteLine(intelLsb.ToString()); intelLsb = me.GetIntelLsb(1, 2); diff --git a/ProductionSystem/Untils/Tool/SitongTool.cs b/ProductionSystem/Untils/Tool/SitongTool.cs index 86c3115..ce5d27d 100644 --- a/ProductionSystem/Untils/Tool/SitongTool.cs +++ b/ProductionSystem/Untils/Tool/SitongTool.cs @@ -88,16 +88,7 @@ namespace ProductionSystem.Untils.Tool //获取最后返回的模式 Val = intelLsb.ToInt().ToString(); XTrace.WriteLine($"四通阀[{mo}-{com}]收到返回报文 解析模式[{Val}]"); - if (intelLsb.ToInt() == mo && !b) - { - - b = true; - mfSerialInfo.Exit = true; - mfSerialInfo.MsgFunc = null; - Val = intelLsb.ToInt().ToString(); - XTrace.WriteLine($"四通阀[{mo}-{com}] 逻辑结束"); - return; - } + intelLsb = me.GetIntelLsb(8, 1); @@ -143,6 +134,17 @@ namespace ProductionSystem.Untils.Tool intelLsb = me.GetIntelLsb(40, 8); XTrace.WriteLine("MCV_Version_L: {0}", intelLsb); + + if (intelLsb.ToInt() == mo && !b) + { + + b = true; + mfSerialInfo.Exit = true; + mfSerialInfo.MsgFunc = null; + Val = intelLsb.ToInt().ToString(); + XTrace.WriteLine($"四通阀[{mo}-{com}] 逻辑结束"); + + } } };