ReadUInt16FromHoldingRegisters 메서드
소스 보기ReadUInt16FromHoldingRegisters(byte, ushort, bool)
Holding Register에서 부호 없는 2 Byte 정수 값 읽기
선언
public ushort ReadUInt16FromHoldingRegisters(byte slaveAddress, ushort address, bool isBigEndian)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| ushort | address | 데이터 주소 |
| bool | isBigEndian | 빅 엔디안 여부 |
반환
| 형식 | 설명 |
|---|---|
| ushort | Holding Register의 부호 없는 2 Byte 정수 값 |
ReadUInt16FromHoldingRegisters(byte, ushort)
Holding Register에서 부호 없는 2 Byte 정수 값 읽기
선언
public ushort ReadUInt16FromHoldingRegisters(byte slaveAddress, ushort address)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| ushort | address | 데이터 주소 |
반환
| 형식 | 설명 |
|---|---|
| ushort | Holding Register의 부호 없는 2 Byte 정수 값 |
ReadUInt16FromHoldingRegisters(byte, ushort, bool, int)
Holding Register에서 부호 없는 2 Byte 정수 값 읽기
선언
public ushort ReadUInt16FromHoldingRegisters(byte slaveAddress, ushort address, bool isBigEndian, int timeout)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| ushort | address | 데이터 주소 |
| bool | isBigEndian | 빅 엔디안 여부 |
| int | timeout | 제한시간(밀리초) |
반환
| 형식 | 설명 |
|---|---|
| ushort | Holding Register의 부호 없는 2 Byte 정수 값 |
ReadUInt16FromHoldingRegisters(byte, ushort, int)
Holding Register에서 부호 없는 2 Byte 정수 값 읽기
선언
public ushort ReadUInt16FromHoldingRegisters(byte slaveAddress, ushort address, int timeout)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| ushort | address | 데이터 주소 |
| int | timeout | 제한시간(밀리초) |
반환
| 형식 | 설명 |
|---|---|
| ushort | Holding Register의 부호 없는 2 Byte 정수 값 |