串口连接修复
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 读取
|
||||
|
||||
Reference in New Issue
Block a user