|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jmodbus.Modbus | +--net.sourceforge.jmodbus.ModbusSlave | +--net.sourceforge.jmodbus.ModbusRTUSlave
Class to implement a Modbus RTU Slave device. This class can run as a standalone thread (for it implements the Runnable interface) or can be used interactivley via get and set methods. This class only defines what type of transport if to be used, all the work in recieveing and processing requests is performed by the methods in the ModbusSlave class.
Fields inherited from class net.sourceforge.jmodbus.Modbus |
ADDRESS_MAX, COIL_OFF, COIL_ON, debug, EXCEPTION_MODIFIER, ILLEGAL_DATA_ADDRESS, ILLEGAL_DATA_VALUE, ILLEGAL_FUNCTION, ILLEGAL_RESPONSE_LENGTH, MAX_MESSAGE_LENGTH, READ_COILS, READ_EXCEPTION_STATUS, READ_INPUT_DISCRETES, READ_INPUT_REGISTERS, READ_MULTIPLE_REGISTERS, transport, UINT16_MAX, UINT16_MIN, UINT8_MAX, UINT8_MIN, WRITE_COIL, WRITE_MULTIPLE_REGISTERS, WRITE_SINGLE_REGISTER |
Constructor Summary | |
ModbusRTUSlave(int slaveAddress)
Constructor that uses the RTU transport created with default parameters. |
Methods inherited from class net.sourceforge.jmodbus.ModbusSlave |
processRequest, run, setInputCoils, setInputRegisters, setOutputCoils, setOutputRegisters |
Methods inherited from class net.sourceforge.jmodbus.Modbus |
receiveFrame, sendFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModbusRTUSlave(int slaveAddress)
slaveAddress
- The slave address of this device.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |