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