wanshenmean
2026-03-13 ca2e8a7c3c9ead9a646646a1175f812ed55d14d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using Newtonsoft.Json;
using WIDESEAWCS_S7Simulator.Core.Enums;
 
namespace WIDESEAWCS_S7Simulator.Core.Entities
{
    /// <summary>
    /// S7服务器实例配置
    /// </summary>
    public class InstanceConfig
    {
        /// <summary>
        /// 实例唯一标识
        /// </summary>
        [JsonProperty("id")]
        public string Id { get; set; } = string.Empty;
 
        /// <summary>
        /// 实例名称
        /// </summary>
        [JsonProperty("name")]
        public string Name { get; set; } = string.Empty;
 
        /// <summary>
        /// PLC型号
        /// </summary>
        [JsonProperty("plcType")]
        public SiemensPLCType PLCType { get; set; }
 
        /// <summary>
        /// 监听端口
        /// </summary>
        [JsonProperty("port")]
        public int Port { get; set; }
 
        /// <summary>
        /// HSL激活码
        /// </summary>
        [JsonProperty("activationKey")]
        public string ActivationKey { get; set; } = string.Empty;
 
        /// <summary>
        /// 是否自动启动
        /// </summary>
        [JsonProperty("autoStart")]
        public bool AutoStart { get; set; }
 
        /// <summary>
        /// 内存区域配置
        /// </summary>
        [JsonProperty("memoryConfig")]
        public MemoryRegionConfig MemoryConfig { get; set; } = new();
    }
}