ReadDiscreteInputs 메서드
소스 보기ReadDiscreteInputs(byte, ushort, ushort)
다중 Discrete Input 읽기
선언
public ModbusReadBitResponse ReadDiscreteInputs(byte slaveAddress, ushort address, ushort length)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| ushort | address | 데이터 주소 |
| ushort | length | 길이 |
반환
| 형식 | 설명 |
|---|---|
| ModbusReadBitResponse | Bit(Coil, Discrete Input) 읽기 응답 |
ReadDiscreteInputs(byte, ushort, ushort, int)
다중 Discrete Input 읽기
선언
public ModbusReadBitResponse ReadDiscreteInputs(byte slaveAddress, ushort address, ushort length, int timeout)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| ushort | address | 데이터 주소 |
| ushort | length | 길이 |
| int | timeout | 제한시간(밀리초) |
반환
| 형식 | 설명 |
|---|---|
| ModbusReadBitResponse | Bit(Coil, Discrete Input) 읽기 응답 |