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