namespace Mirle.Component.MPLC.MCProtocol { /// /// 設備 /// public class Device { /// /// 建構式 /// /// 資料類別 /// ASCII編碼 /// 二進位編碼 /// 位置類別 public Device(string dataType, string asciiCode, byte binaryCode, string addressType) { DataType = dataType; AsciiCode = asciiCode; BinaryCode = binaryCode; AddressType = addressType; } /// /// 位元類別 /// public const string TypeBit = "BIT"; /// /// 字元類別 /// public const string TypeWord = "WORD"; /// /// 十六進位位置 /// public const string AddressHexadecimal = "HEX"; /// /// 十進位位置 /// public const string AddressDecimal = "DEC"; /// /// 資料類別 /// public string DataType { get; } /// /// ASCII編碼 /// public string AsciiCode { get; } /// /// 二進位編碼 /// public byte BinaryCode { get; } /// /// 位置類別 /// public string AddressType { get; } } }