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