串口连接修复

This commit is contained in:
“hsc”
2026-08-03 13:07:48 +08:00
parent 2e74627b31
commit 63af886f26
11 changed files with 11 additions and 433 deletions

View File

@@ -1,4 +1,5 @@
using DeviceCommand.Base;
using Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -12,6 +13,8 @@ namespace DeviceCommand.Devices
/// </summary>
public class MCc06U:ModbusTcp
{
public MCc06U(TcpConfig config) : base(config)
{
}
}
}

View File

@@ -1,6 +1,7 @@
using Common;
using Common.Attributes;
using DeviceCommand.Base;
using Model.Models;
using System.Threading;
using System.Threading.Tasks;
@@ -15,9 +16,8 @@ namespace DeviceCommand.Device
/// <summary>
/// 构造函数SCPI 通信使用端口 23
/// </summary>
public PW8001()
public PW8001(TcpConfig config) : base(config)
{
Port = 23;
}
/// <summary>

View File

@@ -1,5 +1,6 @@
using Common.Attributes;
using DeviceCommand.Base;
using Model.Models;
using System;
using System.Threading;
using System.Threading.Tasks;
@@ -12,6 +13,9 @@ namespace DeviceCommand.Devices
[ACPCommand]
public class RLT1000 : ModbusTcp
{
public RLT1000(TcpConfig config) : base(config)
{
}
private const byte SlaveId = 1;
#region