ReadHoldingRegisterBytes 메서드
소스 보기ReadHoldingRegisterBytes(byte, ushort, ushort)
다중 Holding Register를 Raw Byte 배열로 읽기
선언
public byte[] ReadHoldingRegisterBytes(byte slaveAddress, ushort address, ushort length)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| ushort | address | 데이터 주소 |
| ushort | length | 길이 |
반환
| 형식 | 설명 |
|---|---|
| byte[] | Holding Register들의 Raw Byte 배열 |
ReadHoldingRegisterBytes(byte, ushort, ushort, int)
다중 Holding Register를 Raw Byte 배열로 읽기
선언
public byte[] ReadHoldingRegisterBytes(byte slaveAddress, ushort address, ushort length, int timeout)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| ushort | address | 데이터 주소 |
| ushort | length | 길이 |
| int | timeout | 제한시간(밀리초) |
반환
| 형식 | 설명 |
|---|---|
| byte[] | Holding Register들의 Raw Byte 배열 |