Contains methods for working with MODBUS over RS232
Definition at line 12 of file ModbusConnector.java.
| void kernel.modbus.ModbusConnector.close |
( |
| ) |
|
| ModbusTransaction kernel.modbus.ModbusConnector.getTransactionForRequest |
( |
ModbusRequest |
request | ) |
throws WrappedModbusException, IllegalStateException |
- Parameters
-
| request | The request for which a transaction is required |
- Returns
- The transaction that, when executed, will perform the desired request
- Exceptions
-
| WrappedModbusException | If the transaction cannot be created due to a MODBUS error |
| IllegalStateException | If the transaction cannot be created due to a condition not being met. For instance, this should be thrown if the transaction is attempted to be created without a valid connection |
Implemented in kernel.modbus.ModBusConnectionManager.
| Boolean kernel.modbus.ModbusConnector.isPortOpen |
( |
| ) |
|
| Float kernel.modbus.ModbusConnector.parseFloatFromResponse |
( |
ModbusMessage |
response | ) |
throws ClassCastException, IOException |
With a response consisting of two 16-bit words, parse this response into an IEEE 754 single-precision floating-point number
- Parameters
-
| response | The response received from the transaction |
- Returns
- The data cast into a floating point number
- Exceptions
-
Implemented in kernel.modbus.ModBusConnectionManager.
| String kernel.modbus.ModbusConnector.parseStringFromResponse |
( |
ModbusMessage |
response | ) |
throws ClassCastException, IOException |
The documentation for this interface was generated from the following file: