using Mirle.Component.MPLC.DataBlocks.DeviceRange.Interfaces;
namespace Mirle.Component.MPLC.DataBlocks
{
///
/// 區塊資訊
///
public class BlockInfo
{
///
/// 建構式
///
/// 設備範圍介面
/// 共享記憶體名稱
/// 控制器來源資料索引
public BlockInfo(ITypeDeviceRange deviceRange, string sharedMemoryName, int plcRawdataIndex)
{
DeviceRange = deviceRange;
StartAddress = deviceRange.StartAddress;
EndAddress = deviceRange.EndAddress;
SharedMemoryName = sharedMemoryName;
PLCRawdataIndex = plcRawdataIndex;
}
///
/// 起始位置
///
public string StartAddress { get; }
///
/// 結束位置
///
public string EndAddress { get; }
///
/// 共享記憶體名稱
///
public string SharedMemoryName { get; }
///
/// 控制器來源資料索引
///
public int PLCRawdataIndex { get; }
///
/// 設備範圍介面
///
public ITypeDeviceRange DeviceRange { get; }
}
}