using System.Text.Json.Serialization; namespace WIDESEAWCS_S7Simulator.Core.Entities { /// /// 内存区域配置 /// public class MemoryRegionConfig { /// /// M区大小(字节),默认1KB /// [JsonPropertyName("mRegionSize")] public int MRegionSize { get; set; } = 1024; /// /// DB块数量,默认100个 /// [JsonPropertyName("dbBlockCount")] public int DBBlockCount { get; set; } = 100; /// /// 每个DB块大小(字节),默认1KB /// [JsonPropertyName("dbBlockSize")] public int DBBlockSize { get; set; } = 1024; /// /// I区大小(字节),默认256字节 /// [JsonPropertyName("iRegionSize")] public int IRegionSize { get; set; } = 256; /// /// Q区大小(字节),默认256字节 /// [JsonPropertyName("qRegionSize")] public int QRegionSize { get; set; } = 256; /// /// T区数量,默认64个 /// [JsonPropertyName("tRegionCount")] public int TRegionCount { get; set; } = 64; /// /// C区数量,默认64个 /// [JsonPropertyName("cRegionCount")] public int CRegionCount { get; set; } = 64; } }