| Package | Description |
|---|---|
| com.ghgande.j2mod.modbus.facade | |
| com.ghgande.j2mod.modbus.msg | |
| com.ghgande.j2mod.modbus.util |
| Modifier and Type | Method and Description |
|---|---|
BitVector |
AbstractModbusMaster.readCoils(int ref,
int count)
Reads a given number of coil states from the slave.
|
BitVector |
AbstractModbusMaster.readCoils(int unitId,
int ref,
int count)
Reads a given number of coil states from the slave.
|
BitVector |
AbstractModbusMaster.readInputDiscretes(int ref,
int count)
Reads a given number of input discrete states from the slave.
|
BitVector |
AbstractModbusMaster.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 |
AbstractModbusMaster.writeMultipleCoils(int ref,
BitVector coils)
Writes a given number of coil states to the slave.
|
void |
AbstractModbusMaster.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()
getCoils - Returns the BitVector instance holding coil status
information.
|
BitVector |
ReadCoilsResponse.getCoils()
getCoils -- get the coils bit vector.
|
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)
setCoils - Sets the BitVector instance holding coil status
information.
|
| Constructor and Description |
|---|
WriteMultipleCoilsRequest(int ref,
BitVector bv)
Constructs a new WriteMultipleCoilsRequest instance with the
given reference and coil values.
|
| 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 © 2025. All Rights Reserved.