Class ModbusDevice

    • Constructor Detail

      • ModbusDevice

        ModbusDevice()
    • Method Detail

      • getMaxRegistersPerModbusRequest

         final Integer getMaxRegistersPerModbusRequest()

        The maximum number of modbus registers that can be requested PER call. Some devices do not allow the normal max of 125.

      • getRegisters

         abstract RegisterBlock getRegisters(Address firstRegister, Integer count)

        Retrieve a block of 16 bit registers (Input Registers and Holding Registers).

        Parameters:
        firstRegister - The first modbus register that is desired in the output.
        count - The maximum number of registers to retrieve ( >= 1 ).
        Returns:

        A RegisterBlock with of all the retrieved values

      • getDiscretes

         DiscreteBlock getDiscretes(Address firstDiscrete, Integer count)

        Retrieve a block of 1 bit values (Coils and Discrete Inputs).

        Parameters:
        firstDiscrete - The first modbus discrete value that is desired in the output.
        count - The maximum number of values to retrieve ( >= 1 ).
        Returns:

        A DiscreteBlock with of all the retrieved values