From 877dbeb9677610a73da179b8e6d7a8b699d07cf6 Mon Sep 17 00:00:00 2001 From: luosheng Date: Wed, 17 May 2023 11:30:58 +0800 Subject: [PATCH] Remove --- .../Modbus.Net.OPC/FBox/FBoxOpcDaManchine.cs | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 Modbus.Net/Modbus.Net.OPC/FBox/FBoxOpcDaManchine.cs diff --git a/Modbus.Net/Modbus.Net.OPC/FBox/FBoxOpcDaManchine.cs b/Modbus.Net/Modbus.Net.OPC/FBox/FBoxOpcDaManchine.cs deleted file mode 100644 index efb1810..0000000 --- a/Modbus.Net/Modbus.Net.OPC/FBox/FBoxOpcDaManchine.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System.Collections.Generic; -using System.Configuration; - -namespace Modbus.Net.OPC.FBox -{ - /// - /// FBox的Opc服务设备 - /// - public class FBoxOpcDaMachine : OpcDaMachine - { - /// - /// 构造函数 - /// - /// 设备id - /// 页名称 - /// 设备名称 - /// 获取地址 - /// 是否保持连接 - public FBoxOpcDaMachine(string id, string localSequence, string linkerName, - IEnumerable getAddresses, bool keepConnect) - : base( - id, - ConfigurationManager.AppSettings["FBoxOpcDaHost"] ?? "opcda://localhost/FBoxOpcServer", getAddresses, - keepConnect, true) - { - LocalSequence = localSequence; - LinkerName = linkerName; - AddressFormater = - new AddressFormaterOpc( - (machine, unit) => - new[] - { - "(.*)", ((FBoxOpcDaMachine) machine).LinkerName, ((FBoxOpcDaMachine) machine).LocalSequence, - unit.Name - }, this, '.'); - } - - /// - /// 构造函数 - /// - /// 设备id - /// 页名称 - /// 设备名称 - /// 获取地址 - public FBoxOpcDaMachine(string id, string localSequence, string linkerName, - IEnumerable getAddresses) - : this(id, localSequence, linkerName, getAddresses, false) - { - } - - /// - /// 页名称 - /// - public string LocalSequence { get; set; } - - /// - /// 设备名称 - /// - public string LinkerName { get; set; } - } -} \ No newline at end of file