BytesDateTimePoint 클래스
Modbus Word(Holding Register, Input Register) 기반의 DateTime 형식 직렬화 인터페이스 포인트. 레지스터의 수치형 값을 이용하여 DateTime 값을 추출하거나 직렬화 함.
상속
object
BytesDateTimePoint
구현
상속된 멤버
네임스페이스: VagabondK.Interface.Modbus
어셈블리: VagabondK.Interface.Modbus.dll
구문
public class BytesDateTimePoint : MultiBytesPoint<DateTime>, INotifyPropertyChanged, INotifyPropertyChanging, IInterfaceHandlerContainer<DateTime>, IInterfaceHandlerContainer, IEnumerable<InterfaceHandler>, IEnumerable
생성자
이름 | 설명 |
---|---|
BytesDateTimePoint(byte, bool, ushort, string, DateTimeKind, bool, ModbusEndian, ushort?, ushort?, bool?, IEnumerable<InterfaceHandler>) | 생성자 |
속성
이름 | 설명 |
---|---|
BytesCount | 값의 Byte 단위 개수, Format에 입력한 문자 수와 동일함. |
DateTimeKind | Modbus 데이터 상 DateTime 값의 DateTimeKind를 정의 |
Format | byte 배열와 DateTime 사이의 변환을 위한 형식 문자열. y: 년, M: 월, d: 일, H: 시, m: 분, s: 초, f: 밀리초. yyMdHmsff일 경우 총 9 Byte를 사용하며 년과 밀리초만 2 Byte로 직렬화 하고 나머지는 1 Byte를 사용함. |
메서드
이름 | 설명 |
---|---|
GetBytes(in DateTime) | 값을 byte 배열로 직렬화 |
GetValue() | 로컬 레지스터로부터 값 가져오기 |