1. 알람 AUTO설정 時, 관련 오류수정 후 적용
2. NullBalance 관련 요청사항(절대치로 비교) 적용 3. 알람목록의 '비고'컬럼에 알람수치 입력 기능 추가
This commit is contained in:
		| @@ -13,13 +13,13 @@ namespace vmsnet | ||||
|         /// </summary> | ||||
|         public byte SlaveID { get; set; } = 1;  // Slave No  | ||||
|  | ||||
|         public DigitalIndicator(byte slaveID = 0) : base("", new RtuConfigure { BaudRate = 9600, DataBits = 8, StopBits = System.IO.Ports.StopBits.One, Parity = System.IO.Ports.Parity.None }) | ||||
|         public DigitalIndicator(byte slaveID = 1) : base("", new RtuConfigure { BaudRate = 9600, DataBits = 8, StopBits = System.IO.Ports.StopBits.One, Parity = System.IO.Ports.Parity.None }) | ||||
|         { | ||||
|             SlaveID = slaveID; | ||||
|           | ||||
|         } | ||||
|  | ||||
|         public DigitalIndicator(string comPort, RtuConfigure configure, byte slaveId = 0) : base(comPort, configure) | ||||
|         public DigitalIndicator(string comPort, RtuConfigure configure, byte slaveId = 1) : base(comPort, configure) | ||||
|         { | ||||
|             SlaveID = slaveId; | ||||
|         } | ||||
| @@ -45,13 +45,6 @@ namespace vmsnet | ||||
|             //return WriteValue(buffer); | ||||
|         } | ||||
|  | ||||
|         UInt16[] splitI32(Int32 value) | ||||
|         { | ||||
|             var hValue = (UInt16)(value >> 16);     // 상위 16 Bit | ||||
|             var lValue = (UInt16)(value & 0xFFFF);  // 하위 16 Bit | ||||
|             return new ushort[] { hValue, lValue }; | ||||
|         } | ||||
|  | ||||
|         public bool WriteValue(UInt16[] values) | ||||
|         { | ||||
|             if (IsOpen == false) | ||||
| @@ -77,5 +70,11 @@ namespace vmsnet | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         UInt16[] splitI32(Int32 value) | ||||
|         { | ||||
|             var hValue = (UInt16)(value >> 16);     // 상위 16 Bit | ||||
|             var lValue = (UInt16)(value & 0xFFFF);  // 하위 16 Bit | ||||
|             return new ushort[] { hValue, lValue }; | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arin(asus)
					Arin(asus)