| Package | Description |
|---|---|
| com.ghgande.j2mod.modbus | |
| com.ghgande.j2mod.modbus.facade | |
| com.ghgande.j2mod.modbus.io | |
| com.ghgande.j2mod.modbus.slave |
| Modifier and Type | Class and Description |
|---|---|
class |
ModbusIOException
Class that implements a ModbusIOException.
|
class |
ModbusSlaveException
Class that implements a ModbusSlaveException.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractModbusMaster.maskWriteRegister(int ref,
int andMask,
int orMask)
Mask write a single register to the slave.
|
boolean |
AbstractModbusMaster.maskWriteRegister(int unitId,
int ref,
int andMask,
int orMask)
Mask write a single register to the slave.
|
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.
|
InputRegister[] |
AbstractModbusMaster.readInputRegisters(int ref,
int count)
Reads a given number of input registers from the slave.
|
InputRegister[] |
AbstractModbusMaster.readInputRegisters(int unitId,
int ref,
int count)
Reads a given number of input registers from the slave.
|
Register[] |
AbstractModbusMaster.readMultipleRegisters(int ref,
int count)
Reads a given number of registers from the slave.
|
Register[] |
AbstractModbusMaster.readMultipleRegisters(int unitId,
int ref,
int count)
Reads a given number of registers from the slave.
|
boolean |
AbstractModbusMaster.writeCoil(int ref,
boolean state)
Writes a coil state to the slave.
|
boolean |
AbstractModbusMaster.writeCoil(int unitId,
int ref,
boolean state)
Writes a coil state to the slave.
|
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.
|
int |
AbstractModbusMaster.writeMultipleRegisters(int unitId,
int ref,
Register[] registers)
Writes a number of registers to the slave.
|
int |
AbstractModbusMaster.writeMultipleRegisters(int ref,
Register[] registers)
Writes a number of registers to the slave.
|
int |
AbstractModbusMaster.writeSingleRegister(int unitId,
int ref,
Register register)
Writes a single register to the slave.
|
int |
AbstractModbusMaster.writeSingleRegister(int ref,
Register register)
Writes a single register to the slave.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ModbusUDPTransaction.execute() |
abstract void |
ModbusTransaction.execute()
Executes this ModbusTransaction.
|
void |
ModbusTCPTransaction.execute() |
void |
ModbusSerialTransaction.execute() |
| Modifier and Type | Method and Description |
|---|---|
static ModbusSlave |
ModbusSlaveFactory.createSerialSlave(SerialParameters serialParams)
Creates a serial modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createTCPSlave(InetAddress address,
int port,
int poolSize,
boolean useRtuOverTcp)
Creates a TCP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createTCPSlave(InetAddress address,
int port,
int poolSize,
boolean useRtuOverTcp,
int maxIdleSeconds)
Creates a TCP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createTCPSlave(int port,
int poolSize)
Creates a TCP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createTCPSlave(int port,
int poolSize,
boolean useRtuOverTcp)
Creates a TCP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createUDPSlave(InetAddress address,
int port)
Creates a UDP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createUDPSlave(int port)
Creates a UDP modbus slave or returns the one already allocated to this port
|
void |
ModbusSlave.open()
Opens the listener to service requests
|
Copyright © 2025. All Rights Reserved.