|
|
|
@ -446,8 +446,8 @@ namespace Aucma.Core.PLc
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
melsecMcNet.ReceiveTimeOut = 2000;
|
|
|
|
|
// 2023-11-14变成同步方法,异步心跳导致信号滞后,会重复请求重连
|
|
|
|
|
OperateResult<bool> read = melsecMcNet.ReadBool(address);
|
|
|
|
|
|
|
|
|
|
OperateResult<bool> read = await melsecMcNet.ReadBoolAsync(address);
|
|
|
|
|
if (read.IsSuccess)
|
|
|
|
|
{
|
|
|
|
|
IsConnected = true;
|
|
|
|
|