将S7后台服务移植到DMS.Infrastructure项目中

This commit is contained in:
2025-07-24 22:03:26 +08:00
parent 35e5033094
commit 58cb05645e
9 changed files with 597 additions and 3 deletions

View File

@@ -41,12 +41,12 @@ public class Device
/// <summary>
/// S7 PLC的机架号。
/// </summary>
public int Rack { get; set; }
public short Rack { get; set; }
/// <summary>
/// S7 PLC的槽号。
/// </summary>
public int Slot { get; set; }
public short Slot { get; set; }
/// <summary>
/// OPC UA 服务器地址 (仅当 Protocol 为 OpcUa 时有效)。
@@ -65,4 +65,5 @@ public class Device
public string CpuType { get; set; }
public DeviceType DeviceType { get; set; }
public bool IsRuning { get; set; }
}

View File

@@ -140,4 +140,7 @@ public class Variable
/// 指示变量是否被修改。
/// </summary>
public bool IsModified { get; set; }
public PollLevelType PollLevelType { get; set; }
public DateTime UpdateTime { get; set; }
}