This commit is contained in:
2025-10-20 16:36:27 +08:00
parent dca4b2afac
commit 5dedb1a632
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ namespace Check.Main.Common
private readonly ModbusTcpNet _plc;
private readonly object _lock = new();
public bool IsConnected => _tcpClient != null && _tcpClient.Connected;//
//
public ModbusTcpService(string ip, int port = 502, byte station = 1)
{
_plc = new ModbusTcpNet(ip, port, station)