From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化
---
PLCHelper/Entity/PLCTagData.cs | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/Plugin.CurrentSensorControl/Entity/PLCTagData.cs b/PLCHelper/Entity/PLCTagData.cs
similarity index 63%
rename from Plugin.CurrentSensorControl/Entity/PLCTagData.cs
rename to PLCHelper/Entity/PLCTagData.cs
index 88bceb8..494c131 100644
--- a/Plugin.CurrentSensorControl/Entity/PLCTagData.cs
+++ b/PLCHelper/Entity/PLCTagData.cs
@@ -1,18 +1,31 @@
锘縰sing HMI.Core;
-namespace Plugin.CurrentSensorControl.Entity
+namespace PLCHelper.Entity
{
- public enum PLCTagType {
+ public enum PLCTagType
+ {
BOOL,
SHORT,
+ USHORT,
INT,
FLOAT
+ }
+
+ public enum ConnectionType
+ {
+ MODBUS,
+ PLC_S7,
+ NXI_5010
}
public class PLCTagData
{
[ExcelColumn("鍚嶇О")]
public string Name { get; set; }
+
+ [ExcelColumn("杩炴帴绫诲瀷")]
+ public ConnectionType ConnectionType { get; set; } = ConnectionType.PLC_S7;
+
[ExcelColumn("鍦板潃")]
public string Address { get; set; }
[ExcelColumn("绫诲瀷")]
--
Gitblit v1.9.1