You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using Mirle.Component.MPLC.DataBlocks.DeviceRange.Interfaces;
namespace Mirle.Component.MPLC.DataBlocks { /// <summary>
/// 區塊資訊
/// </summary>
public class BlockInfo { /// <summary>
/// 建構式
/// </summary>
/// <param name="deviceRange">設備範圍介面</param>
/// <param name="sharedMemoryName">共享記憶體名稱</param>
/// <param name="plcRawdataIndex">控制器來源資料索引</param>
public BlockInfo(ITypeDeviceRange deviceRange, string sharedMemoryName, int plcRawdataIndex) { DeviceRange = deviceRange; StartAddress = deviceRange.StartAddress; EndAddress = deviceRange.EndAddress; SharedMemoryName = sharedMemoryName; PLCRawdataIndex = plcRawdataIndex; } /// <summary>
/// 起始位置
/// </summary>
public string StartAddress { get; } /// <summary>
/// 結束位置
/// </summary>
public string EndAddress { get; } /// <summary>
/// 共享記憶體名稱
/// </summary>
public string SharedMemoryName { get; } /// <summary>
/// 控制器來源資料索引
/// </summary>
public int PLCRawdataIndex { get; } /// <summary>
/// 設備範圍介面
/// </summary>
public ITypeDeviceRange DeviceRange { get; } } }
|