| Package | Description |
|---|---|
| net.wimpi.modbus.facade |
Provides facade pattern implementations.
|
| net.wimpi.modbus.msg |
Provides interfaces and classes that encapsulate Modbus
messages in an object oriented manner.
|
| net.wimpi.modbus.util |
Provides utility and helper classes for the
Modbus implementation.
|
| Modifier and Type | Method and Description |
|---|---|
BitVector |
ModbusUDPMaster.readCoils(int ref,
int count)
Reads a given number of coil states from the slave.
|
BitVector |
ModbusTCPMaster.readCoils(int ref,
int count)
Reads a given number of coil states from the slave.
|
BitVector |
ModbusSerialMaster.readCoils(int unitid,
int ref,
int count)
Reads a given number of coil states from the slave.
|
BitVector |
ModbusUDPMaster.readInputDiscretes(int ref,
int count)
Reads a given number of input discrete states from the slave.
|
BitVector |
ModbusTCPMaster.readInputDiscretes(int ref,
int count)
Reads a given number of input discrete states from the slave.
|
BitVector |
ModbusSerialMaster.readInputDiscretes(int unitid,
int ref,
int count)
Reads a given number of input discrete states from the slave.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ModbusUDPMaster.writeMultipleCoils(int ref,
BitVector coils)
Writes a given number of coil states to the slave.
|
void |
ModbusTCPMaster.writeMultipleCoils(int ref,
BitVector coils)
Writes a given number of coil states to the slave.
|
void |
ModbusSerialMaster.writeMultipleCoils(int unitid,
int ref,
BitVector coils)
Writes a given number of coil states to the slave.
|
| Modifier and Type | Method and Description |
|---|---|
BitVector |
WriteMultipleCoilsRequest.getCoils()
Returns the BitVector instance holding coil
status information.
|
BitVector |
ReadCoilsResponse.getCoils()
Returns the BitVector that stores
the collection of bits that have been read.
|
BitVector |
ReadInputDiscretesResponse.getDiscretes()
Returns the BitVector that stores
the collection of bits that have been read.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WriteMultipleCoilsRequest.setCoils(BitVector bv)
Sets the BitVector instance holding coil
status information.
|
| Constructor and Description |
|---|
WriteMultipleCoilsRequest(int ref,
BitVector bv)
Constructs a new WriteMultipleCoilsRequest
instance with given reference and coil status.
|
| Modifier and Type | Method and Description |
|---|---|
static BitVector |
BitVector.createBitVector(byte[] data)
Factory method for creating a BitVector instance
wrapping the given byte data.
|
static BitVector |
BitVector.createBitVector(byte[] data,
int size)
Factory method for creating a BitVector instance
wrapping the given byte data.
|
Copyright © 2017. All rights reserved.