添加配置连接窗口已经相关S7与ModbusTCP连接功能

This commit is contained in:
20492
2026-06-12 08:38:43 +08:00
parent 5d14afcb66
commit 1ff51cbc45
13 changed files with 1785 additions and 105 deletions

View File

@@ -35,6 +35,15 @@ namespace DeviceCommand.Devices
ConfigureDevice(ip, port, sendTimeoutMs, receiveTimeoutMs);
}
public override async Task<bool> ConnectAsync(CancellationToken ct = default)
{
if (IsConnected)
{
return true;
}
return await base.ConnectAsync(ct);
}
// ==================== 读取单个值 ====================
/// <summary>读取温度 PV工程值</summary>