清理无用代码

This commit is contained in:
a88359121
2025-07-31 11:18:43 +08:00
parent 03087c0483
commit 2c4be8993c
107 changed files with 1119 additions and 1477 deletions
+9 -13
View File
@@ -2,11 +2,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace JinYuan.Models
{
@@ -27,7 +23,7 @@ namespace JinYuan.Models
/// <summary>
/// PLC类型
/// </summary>
public string PLCType { get; set; }
public string PLCType { get; set; }
/// <summary>
/// 当前设备的连接状态
/// </summary>
@@ -37,19 +33,19 @@ namespace JinYuan.Models
/// <summary>
/// 是否是首次连接
/// </summary>
public bool IsFirstConnect { get; set; } = true;
/// <summary>
/// 重连周期
/// </summary>
public int ReConnectTime { get; set; } = 2000;
/// <summary>
/// 休眠时间
/// </summary>
public int SleepTime { get; set; } = 10;
/// <summary>
@@ -75,19 +71,19 @@ namespace JinYuan.Models
/// <summary>
/// 计时器
/// </summary>
public Stopwatch Stopwatch { get; set; }
/// <summary>
/// 所有归档变量的集合
/// </summary>
public List<Variable> StoreVarList { get; set; } = new List<Variable>();
/// <summary>
/// 按工位读取
/// </summary>
public List<Group> WorkVarList { get; set; } = new List<Group>();
/// <summary>
/// 通信组集合
@@ -106,7 +102,7 @@ namespace JinYuan.Models
/// <summary>
/// 定义报警触发和消除事件
/// </summary>
public event Action<bool,Variable> AlarmTrigEvent;
public event Action<bool, Variable> AlarmTrigEvent;
/// <summary>
/// 变量初始化
@@ -142,7 +138,7 @@ namespace JinYuan.Models
}
/// <summary>
/// 索引器,通过键名获取到数据