Browse Source

冲突解决

master
pry 2 years ago
parent
commit
cd1947587a
4 changed files with 20 additions and 11 deletions
  1. +8
    -8
      HBLConsole.MORKD/Control_MORKD.cs
  2. +10
    -1
      HBLConsole.MORKS/Control_MORKS.cs
  3. +1
    -1
      HBLConsole.MainConsole/Main.cs
  4. +1
    -1
      HBLDevice.ICChip/HBLDevice.ICChip.csproj

+ 8
- 8
HBLConsole.MORKD/Control_MORKD.cs View File

@@ -163,14 +163,14 @@ namespace HBLConsole.MORKD
mORKD.TemperatureReached = bools[10];
}));

//var ResLoc = ModbusTcpHelper.GetInstance.Read(286, ReadType.HoldingRegisters);
//if (ResLoc != null)
//{
// if (ResLoc is ushort loc)
// {
// mORKD.TurntableFeedbackloc = loc;
// }
//}
var ResLoc = ModbusTcpHelper.GetInstance.Read(286, ReadType.HoldingRegisters);
if (ResLoc != null)
{
if (ResLoc is ushort loc)
{
mORKD.TurntableFeedbackloc = loc;
}
}
Thread.Sleep(100);
}), "ReadPLCData");
}


+ 10
- 1
HBLConsole.MORKS/Control_MORKS.cs View File

@@ -112,7 +112,16 @@ namespace HBLConsole.MORKS
}
}));

mORKS.TurntableFeedbackloc = (ushort)ModbusTcpHelper.GetInstance.Read(286, ReadType.HoldingRegisters);

var ResLoc = ModbusTcpHelper.GetInstance.Read(286, ReadType.HoldingRegisters);
if (ResLoc != null)
{
if (ResLoc is ushort loc)
{
mORKS.TurntableFeedbackloc = loc;
}
}
//mORKS.TurntableFeedbackloc = (ushort)ModbusTcpHelper.GetInstance.Read(286, ReadType.HoldingRegisters);

Thread.Sleep(500);
}), "ReadPLCData");


+ 1
- 1
HBLConsole.MainConsole/Main.cs View File

@@ -21,7 +21,7 @@ namespace HBLConsole.MainConsole
public static Main GetInstance => _Instance ?? (_Instance = new Main());
private Main()
{
ActionOperate.GetInstance.Register(new Func<object>(() => { return GeneralConfig.DeviceType.ToString(); }), "GetDeviceType");
//ActionOperate.GetInstance.Register(new Func<object>(() => { return GeneralConfig.DeviceType.ToString(); }), "GetDeviceType");
}

List<string> Topics = new List<string>();


+ 1
- 1
HBLDevice.ICChip/HBLDevice.ICChip.csproj View File

@@ -10,7 +10,7 @@

<ItemGroup>
<Reference Include="BPA.Utility">
<HintPath>..\..\..\BPACommon_output\net5.0\BPA.Utility.dll</HintPath>
<HintPath>..\..\..\..\BPACommon_output\net5.0\BPA.Utility.dll</HintPath>
</Reference>
</ItemGroup>



Loading…
Cancel
Save