MultiBytesPoint<TValue> 클래스
다중 Byte 기반 인터페이스 포인트
구현
IInterfaceHandlerContainer<TValue>
상속된 멤버
네임스페이스: VagabondK.Interface.Modbus.Abstractions
어셈블리: VagabondK.Interface.Modbus.dll
구문
public abstract class MultiBytesPoint<TValue> : WordPoint<TValue>, INotifyPropertyChanged, INotifyPropertyChanging, IInterfaceHandlerContainer<TValue>, IInterfaceHandlerContainer, IEnumerable<InterfaceHandler>, IEnumerable
형식 매개 변수
이름 | 설명 |
---|---|
TValue | 값 형식 |
생성자
이름 | 설명 |
---|---|
MultiBytesPoint(byte, bool, ushort, bool, ModbusEndian, ushort?, ushort?, bool?, IEnumerable<InterfaceHandler>) | 생성자 |
속성
이름 | 설명 |
---|---|
ActualRequestLength | 실제 요청 길이 |
BytesCount | 직렬화 Byte 개수 |
DefaultUseMultiWriteFunction | 쓰기 요청 시 다중 쓰기 Function(0x10) 사용 여부 기본 값, Holding Register일 경우만 적용되고 Input Register일 경우는 무시함 |
SkipFirstByte | 첫 번째 Byte 생략 여부 |
WordsCount | 값의 Word 단위 개수 |
메서드
이름 | 설명 |
---|---|
GetBytesFromRegisters(bool) | 로컬 레지스터로부터 byte 배열 가져오기 |
ToBytesInRegisters(byte[], bool) | 로컬 레지스터를 기준으로 byte 배열 만들기, SkipFirstByte가 true 이거나 BytesCount가 Word 단위와 일치하지 않을 때 빈 항목을 채우기 위한 메서드 |