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