UnixTimePoint 클래스
Modbus Word(Holding Register, Input Register) 기반의 DateTime 형식 직렬화 인터페이스 포인트. DateTimeOffset.FromUnixTimeMilliseconds 메서드와 레지스터의 수치형 데이터를 이용함
상속
object
UnixTimePoint
구현
상속된 멤버
네임스페이스: VagabondK.Interface.Modbus
어셈블리: VagabondK.Interface.Modbus.dll
구문
public class UnixTimePoint : VariableLengthPoint<DateTime>, INotifyPropertyChanged, INotifyPropertyChanging, IInterfaceHandlerContainer<DateTime>, IInterfaceHandlerContainer, IEnumerable<InterfaceHandler>, IEnumerable
생성자
이름 | 설명 |
---|---|
UnixTimePoint(byte, bool, ushort, int, int, DateTimeKind, bool, ModbusEndian, ushort?, ushort?, bool?, IEnumerable<InterfaceHandler>) | 생성자 |
속성
이름 | 설명 |
---|---|
DateTimeKind | Modbus 데이터 상 DateTime 값의 DateTimeKind를 정의 |
ScalePowerOf10 | Unix time의 10진수 단위 배율 |
메서드
이름 | 설명 |
---|---|
GetBytes(in DateTime) | 값을 byte 배열로 직렬화 |
GetValue() | 로컬 레지스터로부터 값 가져오기 |