BitFlagPoint 클래스
Modbus Word(Holding Register, Input Register) 데이터에서의 Bit 플래그 기반 인터페이스 포인트
구현
상속된 멤버
네임스페이스: VagabondK.Interface.Modbus
어셈블리: VagabondK.Interface.Modbus.dll
구문
public class BitFlagPoint : WordPoint<bool>, INotifyPropertyChanged, INotifyPropertyChanging, IInterfaceHandlerContainer<bool>, IInterfaceHandlerContainer, IEnumerable<InterfaceHandler>, IEnumerable
생성자
이름 | 설명 |
---|---|
BitFlagPoint(byte, bool, ushort, int, ModbusEndian, ushort?, ushort?, bool?, IEnumerable<InterfaceHandler>) | 생성자 |
속성
이름 | 설명 |
---|---|
ActualRequestLength | 실제 요청 길이 |
BitFlagIndex | Bit 플래그 인덱스. Word 단위 데이터에서의 Bit 위치를 설정함. BitFlagPoint에서 사용. |
DefaultUseMultiWriteFunction | 쓰기 요청 시 다중 쓰기 Function(0x10) 사용 여부 기본 값, Holding Register일 경우만 적용되고 Input Register일 경우는 무시함 |
WordsCount | 값의 Word 단위 개수, BitFlagPoint에서는 1로 고정됨. |
메서드
이름 | 설명 |
---|---|
GetBytes(in bool) | 값을 byte 배열로 직렬화 |
GetValue() | 로컬 레지스터로부터 값 가져오기 |