DotNetDateTimePoint 클래스
Modbus Word(Holding Register, Input Register) 기반의 DateTime 형식 직렬화 인터페이스 포인트. .NET DateTime 형식의 ToBinary, FromBinary 메서드를 이용함.
상속
object
DotNetDateTimePoint
구현
상속된 멤버
네임스페이스: VagabondK.Interface.Modbus
어셈블리: VagabondK.Interface.Modbus.dll
구문
public class DotNetDateTimePoint : MultiBytesPoint<DateTime>, INotifyPropertyChanged, INotifyPropertyChanging, IInterfaceHandlerContainer<DateTime>, IInterfaceHandlerContainer, IEnumerable<InterfaceHandler>, IEnumerable
생성자
이름 | 설명 |
---|---|
DotNetDateTimePoint(byte, bool, ushort, bool, ModbusEndian, ushort?, ushort?, bool?, IEnumerable<InterfaceHandler>) | 생성자 |
속성
이름 | 설명 |
---|---|
BytesCount | 값의 Byte 단위 개수, DateTime.ToBinary의 반환 형식이 long이므로 8 Byte임. |
메서드
이름 | 설명 |
---|---|
GetBytes(in DateTime) | 값을 byte 배열로 직렬화 |
GetValue() | 로컬 레지스터로부터 값 가져오기 |