Compare commits

...

3 Commits

Author SHA1 Message Date
679320311d Merge branch 'master' of https://gitea.star-rising.cn/vcrmn/CheckDevice 2025-10-20 16:52:07 +08:00
6eee4eda24 // 2025-10-20 16:52:00 +08:00
5dedb1a632 10/20 // 2025-10-20 16:36:27 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@
<HintPath>..\..\..\HslCommunication-master\HslCommunication.dll</HintPath>
</Reference>
<Reference Include="MvCameraControl.Net">
<HintPath>C:\Program Files (x86)\MVS\Development\DotNet\win64\MvCameraControl.Net.dll</HintPath>
<HintPath>..\..\XKRS2025\CheckDevice\Check.Main\bin\Debug\MvCameraControl.Net.dll</HintPath>
</Reference>
</ItemGroup>

View File

@@ -2,7 +2,7 @@
using HslCommunication.ModBus;
using System;
using System.Net.Sockets;
//
// ModbusTcp读写服务类线程安全互斥锁
namespace Check.Main.Common
{
@@ -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)