|
|
@@ -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"); |
|
|
|
} |
|
|
|