A B C D E F G H I L M N O P R S T U W

A

AbstractRegister - Class in net.wimpi.modbus.procimg
Abstract class for a register.
AbstractRegister() - Constructor for class net.wimpi.modbus.procimg.AbstractRegister
 
acquire() - Method in class net.wimpi.modbus.util.Mutex
 
activate() - Method in interface net.wimpi.modbus.net.UDPTerminal
Activate this UDPTerminal.
addDigitalIn(DigitalIn) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Adds a new DigitalIn instance.
addDigitalIn(DigitalIn) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
addDigitalOut(DigitalOut) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Adds a new DigitalOut instance.
addDigitalOut(DigitalOut) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
addInputRegister(InputRegister) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Adds a new InputRegister instance.
addInputRegister(InputRegister) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
addObserver(Observer) - Method in class net.wimpi.modbus.util.Observable
Adds an observer instance if it is not already in the set of observers for this Observable.
addRegister(Register) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Adds a new Register instance.
addRegister(Register) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
AIAOTest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool which demonstrates how a analog input can be bound with a analog output.
AIAOTest() - Constructor for class net.wimpi.modbus.cmd.AIAOTest
 
AITest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool for reading an analog input.
AITest() - Constructor for class net.wimpi.modbus.cmd.AITest
 
AOTest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool for writing to an analog output.
AOTest() - Constructor for class net.wimpi.modbus.cmd.AOTest
 
ASCIIInputStream - Class in net.wimpi.modbus.io
Class implementing a specialized InputStream which decodes characters read from the raw stream into bytes.
ASCIIInputStream(InputStream) - Constructor for class net.wimpi.modbus.io.ASCIIInputStream
Constructs a new ASCIIInputStream instance reading from the given InputStream.
ASCIIOutputStream - Class in net.wimpi.modbus.io
Class implementing a specialized OutputStream which encodes bytes written to the stream into two hexadecimal characters each.
ASCIIOutputStream(OutputStream) - Constructor for class net.wimpi.modbus.io.ASCIIOutputStream
Constructs a new ASCIIOutputStream instance writing to the given OutputStream.
AtomicCounter - Class in net.wimpi.modbus.util
Provides an atomic integer.
AtomicCounter() - Constructor for class net.wimpi.modbus.util.AtomicCounter
Constructs a new AtomicInteger.
AtomicCounter(int) - Constructor for class net.wimpi.modbus.util.AtomicCounter
Constructs a new AtomicInteger with a given initial value.
attempt(long) - Method in class net.wimpi.modbus.util.Mutex
 
available() - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Returns the number of bytes that can be read (or skipped over) from this FastByteArrayInputStream.

B

BINInputStream - Class in net.wimpi.modbus.io
Class implementing a specialized InputStream which handles binary transmitted messages.
BINInputStream(InputStream) - Constructor for class net.wimpi.modbus.io.BINInputStream
Constructs a new BINInputStream instance reading from the given InputStream.
BINOutputStream - Class in net.wimpi.modbus.io
Class implementing a specialized OutputStream which duplicates bytes written to the stream that resemble a frame token.
BINOutputStream(OutputStream) - Constructor for class net.wimpi.modbus.io.BINOutputStream
Constructs a new BINOutputStream instance writing to the given OutputStream.
BitVector - Class in net.wimpi.modbus.util
Class that implements a collection for bits, storing them packed into bytes.
BitVector(int) - Constructor for class net.wimpi.modbus.util.BitVector
Constructs a new BitVector instance with a given size.
BytesInputStream - Class in net.wimpi.modbus.io
Class implementing a byte array input stream with a DataInput interface.
BytesInputStream(int) - Constructor for class net.wimpi.modbus.io.BytesInputStream
Constructs a new BytesInputStream instance, with an empty buffer of a given size.
BytesInputStream(byte[]) - Constructor for class net.wimpi.modbus.io.BytesInputStream
Constructs a new BytesInputStream instance, that will read from the given data.
byteSize() - Method in class net.wimpi.modbus.util.BitVector
Returns the number of bytes used to store the collection of bits as int.
BytesOutputStream - Class in net.wimpi.modbus.io
Class implementing a byte array output stream with a DataInput interface.
BytesOutputStream(int) - Constructor for class net.wimpi.modbus.io.BytesOutputStream
Constructs a new BytesOutputStream instance with a new output buffer of the given size.
BytesOutputStream(byte[]) - Constructor for class net.wimpi.modbus.io.BytesOutputStream
Constructs a new BytesOutputStream instance with a given output buffer.

C

calculateCRC(byte[], int, int) - Static method in class net.wimpi.modbus.util.ModbusUtil
 
calculateLRC(byte[], int, int) - Static method in class net.wimpi.modbus.util.ModbusUtil
 
clearInput() - Method in class net.wimpi.modbus.io.ModbusRTUTransport
Clear the input if characters are found in the input stream.
close() - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
The close method for this FastByteArrayInputStream does nothing.
close() - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Closing a FastByteArrayOutputStream has no effect.
close() - Method in class net.wimpi.modbus.io.ModbusASCIITransport
 
close() - Method in class net.wimpi.modbus.io.ModbusBINTransport
 
close() - Method in class net.wimpi.modbus.io.ModbusRTUTransport
 
close() - Method in class net.wimpi.modbus.io.ModbusSerialTransport
The close method closes the serial input/output streams.
close() - Method in class net.wimpi.modbus.io.ModbusTCPTransport
 
close() - Method in interface net.wimpi.modbus.io.ModbusTransport
Closes the raw input and output streams of this ModbusTransport.
close() - Method in class net.wimpi.modbus.io.ModbusUDPTransport
 
close() - Method in class net.wimpi.modbus.net.SerialConnection
Close the port and clean up associated elements.
close() - Method in class net.wimpi.modbus.net.TCPMasterConnection
Closes this TCPMasterConnection.
close() - Method in class net.wimpi.modbus.net.TCPSlaveConnection
Closes this TCPSlaveConnection.
close() - Method in class net.wimpi.modbus.net.UDPMasterConnection
Closes this UDPMasterConnection.
COIL_OFF - Static variable in interface net.wimpi.modbus.Modbus
Defines the byte representation of the coil state pos.
COIL_OFF_BYTES - Static variable in interface net.wimpi.modbus.Modbus
Defines the word representation of the coil state pos.
COIL_ON - Static variable in interface net.wimpi.modbus.Modbus
Defines the byte representation of the coil state on.
COIL_ON_BYTES - Static variable in interface net.wimpi.modbus.Modbus
Defines the word representation of the coil state on.
commitUpdate() - Method in interface net.wimpi.modbus.io.NonWordDataHandler
Commits the data if it has been read into an intermediate repository.
connect() - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Connects this ModbusSerialMaster with the slave.
connect() - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Connects this ModbusTCPMaster with the slave.
connect() - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Connects this ModbusUDPMaster with the slave.
connect() - Method in class net.wimpi.modbus.net.TCPMasterConnection
Opens this TCPMasterConnection.
connect() - Method in class net.wimpi.modbus.net.UDPMasterConnection
Opens this UDPMasterConnection.
createBitVector(byte[], int) - Static method in class net.wimpi.modbus.util.BitVector
Factory method for creating a BitVector instance wrapping the given byte data.
createBitVector(byte[]) - Static method in class net.wimpi.modbus.util.BitVector
Factory method for creating a BitVector instance wrapping the given byte data.
createDigitalIn() - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Returns a new SimpleDigitalIn instance.
createDigitalIn(boolean) - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Returns a new DigitalIn instance with the given state.
createDigitalIn() - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Returns a new DigitalIn instance.
createDigitalIn(boolean) - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Returns a new DigitalIn instance with the given state.
createDigitalOut() - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Returns a new SimpleDigitalOut instance.
createDigitalOut(boolean) - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Returns a new DigitalOut instance with the given state.
createDigitalOut() - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Returns a new DigitalOut instance.
createDigitalOut(boolean) - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Returns a new DigitalOut instance with the given state.
createExceptionResponse(int) - Method in class net.wimpi.modbus.msg.ModbusRequest
Factory method for creating exception responses with the given exception code.
createInputRegister() - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Returns a new SimpleInputRegister instance.
createInputRegister(byte, byte) - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Returns a new InputRegister instance with a given value.
createInputRegister() - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Returns a new InputRegister instance.
createInputRegister(byte, byte) - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Returns a new InputRegister instance with a given value.
createModbusRequest(int) - Static method in class net.wimpi.modbus.msg.ModbusRequest
Factory method creating the required specialized ModbusRequest instance.
createModbusResponse(int) - Static method in class net.wimpi.modbus.msg.ModbusResponse
Factory method creating the required specialized ModbusResponse instance.
createProcessImageImplementation() - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Returns a new SimpleProcessImage instance.
createProcessImageImplementation() - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Returns a new ProcessImageImplementation instance.
createRegister() - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Creates a new SimpleRegister instance.
createRegister(byte, byte) - Method in class net.wimpi.modbus.procimg.DefaultProcessImageFactory
Returns a new Register instance with a given value.
createRegister() - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Creates a new Register instance.
createRegister(byte, byte) - Method in interface net.wimpi.modbus.procimg.ProcessImageFactory
Returns a new Register instance with a given value.
createResponse() - Method in class net.wimpi.modbus.msg.IllegalFunctionRequest
 
createResponse() - Method in class net.wimpi.modbus.msg.ModbusRequest
Returns the ModbusResponse that represents the answer to this ModbusRequest.
createResponse() - Method in class net.wimpi.modbus.msg.ReadCoilsRequest
 
createResponse() - Method in class net.wimpi.modbus.msg.ReadInputDiscretesRequest
 
createResponse() - Method in class net.wimpi.modbus.msg.ReadInputRegistersRequest
 
createResponse() - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
 
createResponse() - Method in class net.wimpi.modbus.msg.WriteCoilRequest
 
createResponse() - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
 
createResponse() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
 
createResponse() - Method in class net.wimpi.modbus.msg.WriteSingleRegisterRequest
 

D

deactivate() - Method in interface net.wimpi.modbus.net.UDPTerminal
Deactivates this UDPTerminal.
debug - Static variable in interface net.wimpi.modbus.Modbus
JVM flag for debug mode.
DEFAULT_PORT - Static variable in interface net.wimpi.modbus.Modbus
Defines the default port number of Modbus (=502).
DEFAULT_PROTOCOL_ID - Static variable in interface net.wimpi.modbus.Modbus
Defines the default protocol identifier (=0).
DEFAULT_RECONNECTING - Static variable in interface net.wimpi.modbus.Modbus
Defines the default reconnecting setting for transactions (=false).
DEFAULT_RETRIES - Static variable in interface net.wimpi.modbus.Modbus
Defines the default amount of retires for opening a connection (=3).
DEFAULT_SERIAL_ENCODING - Static variable in interface net.wimpi.modbus.Modbus
Defines the default serial encoding (ASCII).
DEFAULT_SIZE - Static variable in class net.wimpi.modbus.io.FastByteArrayOutputStream
 
DEFAULT_TIMEOUT - Static variable in interface net.wimpi.modbus.Modbus
Defines the default setting for I/O operation timeouts in milliseconds (=3000).
DEFAULT_TRANSACTION_ID - Static variable in interface net.wimpi.modbus.Modbus
Defines the default transaction identifier (=0).
DEFAULT_TRANSMIT_DELAY - Static variable in interface net.wimpi.modbus.Modbus
Defines the default number of msec to delay before transmission (=50).
DEFAULT_UNIT_ID - Static variable in interface net.wimpi.modbus.Modbus
Defines the default unit identifier (=0).
DEFAULT_VALIDITYCHECK - Static variable in interface net.wimpi.modbus.Modbus
Defines the default setting for validity checking in transactions (=true).
DefaultProcessImageFactory - Class in net.wimpi.modbus.procimg
The default ProcessImageFactory.
DefaultProcessImageFactory() - Constructor for class net.wimpi.modbus.procimg.DefaultProcessImageFactory
 
DIDOTest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool which demonstrates how a digital input can be bound with a digital output.
DIDOTest() - Constructor for class net.wimpi.modbus.cmd.DIDOTest
 
DIG_FALSE - Static variable in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Defines the unset state (i.e.
DIG_INVALID - Static variable in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Defines the invalid state of a digital input or output.
DIG_TRUE - Static variable in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Defines the set state (i.e.
DigitalIn - Interface in net.wimpi.modbus.procimg
Interface defining a digital input.
DigitalOut - Interface in net.wimpi.modbus.procimg
Interface defining a digital output.
disconnect() - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Disconnects this ModbusSerialMaster from the slave.
disconnect() - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Disconnects this ModbusTCPMaster from the slave.
disconnect() - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Disconnects this ModbusTCPMaster from the slave.
DITest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool for reading a digital input.
DITest() - Constructor for class net.wimpi.modbus.cmd.DITest
 
DOTest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool for writing to a digital output.
DOTest() - Constructor for class net.wimpi.modbus.cmd.DOTest
 
doubleToRegisters(double) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts a double value to a byte[8].

E

ensureCapacity(int) - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Increases the capacity of this FastByteArrayOutputStreams buffer, if necessary, to ensure that it can hold at least the number of bytes specified by the minimum capacity argument.
EXCEPTION_OFFSET - Static variable in interface net.wimpi.modbus.Modbus
Defines the Modbus slave exception offset that is added to the function code, to flag an exception.
ExceptionResponse - Class in net.wimpi.modbus.msg
Provides the aModbusResponse implementation that represents a Modbus exception.
ExceptionResponse() - Constructor for class net.wimpi.modbus.msg.ExceptionResponse
Constructs a new ExceptionResponse instance.
ExceptionResponse(int) - Constructor for class net.wimpi.modbus.msg.ExceptionResponse
Constructs a new ExceptionResponse instance with a given function code.
ExceptionResponse(int, int) - Constructor for class net.wimpi.modbus.msg.ExceptionResponse
Constructs a new ExceptionResponse instance with a given function code and an exception code.
execute() - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
execute() - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
execute() - Method in interface net.wimpi.modbus.io.ModbusTransaction
Executes this ModbusTransaction.
execute() - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
execute(Runnable) - Method in class net.wimpi.modbus.util.ThreadPool
Execute the Runnable instance through a thread in this ThreadPool.

F

FastByteArrayInputStream - Class in net.wimpi.modbus.io
This class is a clean room implementation of the ByteArrayInputStream, with enhancements for speed (no synchronization for example).
FastByteArrayInputStream(byte[]) - Constructor for class net.wimpi.modbus.io.FastByteArrayInputStream
Creates a new FastByteArrayInputStream instance that allows to read from the given byte array.
FastByteArrayInputStream(byte[], int, int) - Constructor for class net.wimpi.modbus.io.FastByteArrayInputStream
Creates a new FastByteArrayInputStream instance that allows to read from the given byte array.
FastByteArrayOutputStream - Class in net.wimpi.modbus.io
This class is a clean room implementation of the ByteArrayOutputStream, with enhancements for speed (no synchronization for example).
FastByteArrayOutputStream() - Constructor for class net.wimpi.modbus.io.FastByteArrayOutputStream
Create a new FastByteArrayOutputStream.
FastByteArrayOutputStream(int) - Constructor for class net.wimpi.modbus.io.FastByteArrayOutputStream
Create a new FastByteArrayOutputStream with a given initial buffer size.
FastByteArrayOutputStream(byte[]) - Constructor for class net.wimpi.modbus.io.FastByteArrayOutputStream
Create a new FastByteArrayOutputStream with a given initial buffer.
floatToRegisters(float) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts a float value to a byte[4] binary float value.
forceSize(int) - Method in class net.wimpi.modbus.util.BitVector
Forces the number of bits in this BitVector.
FRAME_END - Static variable in class net.wimpi.modbus.io.ModbusASCIITransport
Defines a virtual number for the FRAME_END token (CR LF).
FRAME_END - Static variable in class net.wimpi.modbus.io.ModbusBINTransport
Defines a virtual number for the FRAME_END token (CR LF).
FRAME_END_TOKEN - Static variable in class net.wimpi.modbus.io.ModbusBINTransport
Defines the frame end token }.
FRAME_START - Static variable in class net.wimpi.modbus.io.ModbusASCIITransport
Defines a virtual number for the FRAME START token (COLON).
FRAME_START - Static variable in class net.wimpi.modbus.io.ModbusBINTransport
Defines a virtual number for the FRAME START token (COLON).
FRAME_START_TOKEN - Static variable in class net.wimpi.modbus.io.ModbusBINTransport
Defines the frame start token {.

G

get() - Method in class net.wimpi.modbus.util.AtomicCounter
Returns the value of this AtomicInteger.
getAddress() - Method in class net.wimpi.modbus.net.TCPMasterConnection
Returns the destination InetAddress of this TCPMasterConnection.
getAddress() - Method in class net.wimpi.modbus.net.TCPSlaveConnection
Returns the destination InetAddress of this TCPMasterConnection.
getAddress() - Method in class net.wimpi.modbus.net.UDPMasterConnection
Returns the destination InetAddress of this UDPMasterConnection.
getBaudRate() - Method in class net.wimpi.modbus.util.SerialParameters
Return the baud rate as int.
getBaudRateString() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the baud rate as a String.
getBit(int) - Method in class net.wimpi.modbus.util.BitVector
Returns the state of the bit at the given index of this BitVector.
getBitCount() - Method in class net.wimpi.modbus.msg.ReadCoilsRequest
Returns the number of bits (i.e.
getBitCount() - Method in class net.wimpi.modbus.msg.ReadCoilsResponse
Returns the number of bits (i.e.
getBitCount() - Method in class net.wimpi.modbus.msg.ReadInputDiscretesRequest
Returns the number of bits (i.e.
getBitCount() - Method in class net.wimpi.modbus.msg.ReadInputDiscretesResponse
Returns the number of bits (i.e.
getBitCount() - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Returns the number of bits (i.e.
getBitCount() - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsResponse
Returns the number of bits (i.e.
getBuffer() - Method in class net.wimpi.modbus.io.BytesInputStream
Returns the reference to the input buffer.
getBuffer() - Method in class net.wimpi.modbus.io.BytesOutputStream
Returns the reference to the output buffer.
getBuffer() - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Returns the underlying data being read.
getBuffer() - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Returns a reference to the buffer of this FastByteArrayOutputStream.
getBufferLength() - Method in class net.wimpi.modbus.io.BytesInputStream
 
getByteCount() - Method in class net.wimpi.modbus.msg.ReadInputRegistersResponse
Returns the number of bytes that have been read.
getByteCount() - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
Returns the number of bytes that have been read.
getByteCount() - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Returns the number of bytes required for packing the coil bits.
getByteCount() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Returns the number of bytes representing the values to be written.
getByteCount() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersResponse
Returns the number of bytes that have been written.
getBytes() - Method in class net.wimpi.modbus.util.BitVector
Returns the byte[] which is used to store the bits of this BitVector.
getCoil() - Method in class net.wimpi.modbus.msg.WriteCoilRequest
Returns the state that should be written with this WriteCoilRequest.
getCoil() - Method in class net.wimpi.modbus.msg.WriteCoilResponse
Gets the state that has been returned in this WriteCoilRequest.
getCoils() - Method in class net.wimpi.modbus.msg.ReadCoilsResponse
Returns the BitVector that stores the collection of bits that have been read.
getCoils() - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Returns the BitVector instance holding coil status information.
getCoilStatus(int) - Method in class net.wimpi.modbus.msg.ReadCoilsResponse
Convenience method that returns the state of the bit at the given index.
getCoilStatus(int) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Returns the status of the given coil.
getData() - Method in interface net.wimpi.modbus.io.NonWordDataHandler
Returns the intermediate raw non-word data.
getDatabits() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the number of data bits as int.
getDatabitsString() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the number of data bits as String.
getDataLength() - Method in interface net.wimpi.modbus.msg.ModbusMessage
Returns the length of the data appended after the protocol header.
getDataLength() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
 
getDigitalIn(int) - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns the DigitalIn instance at the given reference.
getDigitalIn(int) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getDigitalInCount() - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns the number of DigitalIn instances in this ProcessImage.
getDigitalInCount() - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getDigitalInRange(int, int) - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns a range of DigitalIn instances.
getDigitalInRange(int, int) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getDigitalOut(int) - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns the DigitalOut instance at the given reference.
getDigitalOut(int) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getDigitalOutCount() - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns the number of DigitalOut instances in this ProcessImage.
getDigitalOutCount() - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getDigitalOutRange(int, int) - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns a range of DigitalOut instances.
getDigitalOutRange(int, int) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getDiscretes() - Method in class net.wimpi.modbus.msg.ReadInputDiscretesResponse
Returns the BitVector that stores the collection of bits that have been read.
getDiscreteStatus(int) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesResponse
Convenience method that returns the state of the bit at the given index.
getEncoding() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the encoding to be used.
getExceptionCode() - Method in class net.wimpi.modbus.msg.ExceptionResponse
Returns the Modbus exception code of this ExceptionResponse.
getFlowControlIn() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the input flow control type as int.
getFlowControlInString() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the input flow control type as String.
getFlowControlOut() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the output flow control type as int.
getFlowControlOutString() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the output flow control type as String.
getFunctionCode() - Method in interface net.wimpi.modbus.msg.ModbusMessage
Returns the function code of this ModbusMessage as int.
The function code is a 1-byte non negative integer value valid in the range of 0-127.
Function codes are ordered in conformance classes their values are specified in net.wimpi.modbus.Modbus.
getFunctionCode() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
 
getHexMessage() - Method in interface net.wimpi.modbus.msg.ModbusMessage
Returns the raw message as String containing a hexadecimal series of bytes.
getHexMessage() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Returns the this message as hexadecimal string.
getInputRegister(int) - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns the InputRegister instance at the given reference.
getInputRegister(int) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getInputRegisterCount() - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns the number of InputRegister instances in this ProcessImage.
getInputRegisterCount() - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getInputRegisterRange(int, int) - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns a range of InputRegister instances.
getInputRegisterRange(int, int) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getLocalAddress() - Method in interface net.wimpi.modbus.net.UDPTerminal
Returns the local address of this UDPTerminal.
getLocalPort() - Method in interface net.wimpi.modbus.net.UDPTerminal
Returns the local port of this UDPTerminal.
getMessage() - Method in exception net.wimpi.modbus.ModbusSlaveException
 
getModbusTransport() - Method in class net.wimpi.modbus.net.SerialConnection
Returns the ModbusTransport instance to be used for receiving and sending messages.
getModbusTransport() - Method in class net.wimpi.modbus.net.TCPMasterConnection
Returns the ModbusTransport associated with this TCPMasterConnection.
getModbusTransport() - Method in class net.wimpi.modbus.net.TCPSlaveConnection
Returns the ModbusTransport associated with this TCPMasterConnection.
getModbusTransport() - Method in class net.wimpi.modbus.net.UDPMasterConnection
Returns the ModbusTransport associated with this UDPMasterConnection.
getModbusTransport() - Method in interface net.wimpi.modbus.net.UDPTerminal
Returns the ModbusTransport associated with this UDPTerminal.
getNonWordDataHandler() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Returns the actual non word data handler.
getObserverCount() - Method in class net.wimpi.modbus.util.Observable
 
getOutputLength() - Method in interface net.wimpi.modbus.io.Transportable
Returns the number of bytes that will be written by Transportable.writeTo(DataOutput).
getOutputLength() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
 
getParity() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the parity schema as int.
getParityString() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the parity schema as String.
getPort() - Method in class net.wimpi.modbus.net.ModbusUDPListener
Returns the number of the port this ModbusUDPListener is listening to.
getPort() - Method in class net.wimpi.modbus.net.TCPMasterConnection
Returns the destination port of this TCPMasterConnection.
getPort() - Method in class net.wimpi.modbus.net.TCPSlaveConnection
Returns the destination port of this TCPMasterConnection.
getPort() - Method in class net.wimpi.modbus.net.UDPMasterConnection
Returns the destination port of this UDPMasterConnection.
getPortName() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the port name.
getPosition() - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Returns the offset at which data is being read from the buffer.
getProcessImage() - Method in class net.wimpi.modbus.ModbusCoupler
Returns a reference to the ProcessImage of this ModbusCoupler.
getProcessImageFactory() - Method in class net.wimpi.modbus.ModbusCoupler
Returns the actual ProcessImageFactory instance.
getProtocolID() - Method in interface net.wimpi.modbus.msg.ModbusMessage
Returns the protocol identifier of this ModbusMessage as int.
The identifier is a 2-byte (short) non negative integer value valid in the range of 0-65535.
getProtocolID() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
 
getReceiveTimeout() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the receive timeout for serial communication.
getReference() - Static method in class net.wimpi.modbus.ModbusCoupler
Returns a reference to the singleton instance.
getReference() - Method in class net.wimpi.modbus.msg.ReadCoilsRequest
Returns the reference of the register to to start reading from with this ReadCoilsRequest.
getReference() - Method in class net.wimpi.modbus.msg.ReadInputDiscretesRequest
Returns the reference of the register to to start reading from with this ReadInputDiscretesRequest.
getReference() - Method in class net.wimpi.modbus.msg.ReadInputRegistersRequest
Returns the reference of the register to to start reading from with this ReadInputRegistersRequest.
getReference() - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
Returns the reference of the register to to start reading from with this ReadMultipleRegistersRequest.
getReference() - Method in class net.wimpi.modbus.msg.WriteCoilRequest
Returns the reference of the register of the coil that should be written to with this ReadCoilsRequest.
getReference() - Method in class net.wimpi.modbus.msg.WriteCoilResponse
Returns the reference of the register of the coil that has been written to with the request.
getReference() - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Returns the reference of the register to to start reading from with this ReadCoilsRequest.
getReference() - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsResponse
Returns the reference of the register to to start reading from with this WriteMultipleCoilsRequest.
getReference() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Returns the reference of the register to start writing to with this WriteMultipleRegistersRequest.
getReference() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersResponse
Returns the reference of the register to start writing to with this WriteMultipleRegistersResponse.
getReference() - Method in class net.wimpi.modbus.msg.WriteSingleRegisterRequest
Returns the reference of the register to be written to with this WriteSingleRegisterRequest.
getReference() - Method in class net.wimpi.modbus.msg.WriteSingleRegisterResponse
Returns the reference of the register that has been written to.
getRegister(int) - Method in class net.wimpi.modbus.msg.ReadInputRegistersResponse
Returns the InputRegister at the given position (relative to the reference used in the request).
getRegister(int) - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
Returns the Register at the given position (relative to the reference used in the request).
getRegister(int) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Returns the Register at the given position (relative to the reference used in the request).
getRegister() - Method in class net.wimpi.modbus.msg.WriteSingleRegisterRequest
Returns the value that should be written to the register with this WriteSingleRegisterRequest.
getRegister(int) - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns the Register instance at the given reference.
getRegister(int) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getRegisterCount() - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns the number of Register instances in this ProcessImage.
getRegisterCount() - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getRegisterRange(int, int) - Method in interface net.wimpi.modbus.procimg.ProcessImage
Returns a range of Register instances.
getRegisterRange(int, int) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
getRegisters() - Method in class net.wimpi.modbus.msg.ReadInputRegistersResponse
Returns a reference to the array of input registers read.
getRegisters() - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
Returns a reference to the array of registers read.
getRegisters() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Returns the registers to be written with this WriteMultipleRegistersRequest.
getRegisterValue(int) - Method in class net.wimpi.modbus.msg.ReadInputRegistersResponse
Returns the value of the register at the given position (relative to the reference used in the request) interpreted as usigned short.
getRegisterValue(int) - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
Returns the value of the register at the given position (relative to the reference used in the request) interpreted as unsigned short.
getRegisterValue(int) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Returns the value of the register at the given position (relative to the reference used in the request) interpreted as unsigned short.
getRegisterValue() - Method in class net.wimpi.modbus.msg.WriteSingleRegisterResponse
Returns the value that has been returned in this WriteSingleRegisterResponse.
getRequest() - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
getRequest() - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
getRequest() - Method in interface net.wimpi.modbus.io.ModbusTransaction
Returns the ModbusRequest instance associated with this ModbusTransaction.
getRequest() - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
getResponse() - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
getResponse() - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
getResponse() - Method in interface net.wimpi.modbus.io.ModbusTransaction
Returns the ModbusResponse instance associated with this ModbusTransaction.
getResponse() - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
getRetries() - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
getRetries() - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
getRetries() - Method in interface net.wimpi.modbus.io.ModbusTransaction
Returns the amount of retries for opening the connection for executing the transaction.
getRetries() - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
getSerialPort() - Method in class net.wimpi.modbus.net.SerialConnection
Returns the reference to the SerialPort instance.
getStopbits() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the number of stop bits as int.
getStopbitsString() - Method in class net.wimpi.modbus.util.SerialParameters
Returns the number of stop bits as String.
getTerminal() - Method in class net.wimpi.modbus.net.UDPMasterConnection
Returns the terminal used for handling the package traffic.
getTimeout() - Method in class net.wimpi.modbus.net.TCPMasterConnection
Returns the timeout for this TCPMasterConnection.
getTimeout() - Method in class net.wimpi.modbus.net.TCPSlaveConnection
Returns the timeout for this TCPMasterConnection.
getTimeout() - Method in class net.wimpi.modbus.net.UDPMasterConnection
Returns the timeout for this UDPMasterConnection.
getTransactionID() - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
getTransactionID() - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
getTransactionID() - Method in interface net.wimpi.modbus.io.ModbusTransaction
Returns the actual transaction identifier of this ModbusTransaction.
getTransactionID() - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
getTransactionID() - Method in interface net.wimpi.modbus.msg.ModbusMessage
Returns the transaction identifier of this ModbusMessage as int.
The identifier is a 2-byte (short) non negative integer value valid in the range of 0-65535.
getTransactionID() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
 
getTransDelayMS() - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
Get the TransDelayMS value.
getType() - Method in exception net.wimpi.modbus.ModbusSlaveException
Returns the type of this ModbusSlaveException.
getUnitID() - Method in class net.wimpi.modbus.ModbusCoupler
Returns the identifier of this unit.
getUnitID() - Method in interface net.wimpi.modbus.msg.ModbusMessage
Returns the unit identifier of this ModbusMessage as int.
The identifier is a 1-byte non negative integer value valid in the range of 0-255.
getUnitID() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
 
getUnitIdentifier() - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Returns the unit identifier of this ModbusSerialMaster.
getValue() - Method in class net.wimpi.modbus.procimg.AbstractRegister
 
getValue() - Method in interface net.wimpi.modbus.procimg.InputRegister
Returns the value of this InputRegister.
getValue() - Method in class net.wimpi.modbus.procimg.ObservableRegister
 
getValue() - Method in class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
 
getWordCount() - Method in interface net.wimpi.modbus.io.NonWordDataHandler
Returns the word count of the data.
getWordCount() - Method in class net.wimpi.modbus.msg.ReadInputRegistersRequest
Returns the number of words to be read with this ReadInputRegistersRequest.
getWordCount() - Method in class net.wimpi.modbus.msg.ReadInputRegistersResponse
Returns the number of words that have been read.
getWordCount() - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
Returns the number of words to be read with this ReadMultipleRegistersRequest.
getWordCount() - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
Returns the number of words that have been read.
getWordCount() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Returns the number of words to be written.
getWordCount() - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersResponse
Returns the number of words that have been read.

H

hiByte(int) - Static method in class net.wimpi.modbus.util.ModbusUtil
 

I

ILLEGAL_ADDRESS_EXCEPTION - Static variable in interface net.wimpi.modbus.Modbus
Defines the Modbus slave exception type illegal data address.
ILLEGAL_FUNCTION_EXCEPTION - Static variable in interface net.wimpi.modbus.Modbus
Defines the Modbus slave exception type illegal function.
ILLEGAL_VALUE_EXCEPTION - Static variable in interface net.wimpi.modbus.Modbus
Defines the Modbus slave exception type illegal data value.
IllegalAddressException - Exception in net.wimpi.modbus.procimg
Class implementing an IllegalAddressException.
IllegalAddressException() - Constructor for exception net.wimpi.modbus.procimg.IllegalAddressException
Constructs a new IllegalAddressException.
IllegalAddressException(String) - Constructor for exception net.wimpi.modbus.procimg.IllegalAddressException
Constructs a new IllegalAddressException with the given message.
IllegalFunctionRequest - Class in net.wimpi.modbus.msg
Provides an implementation of a ModbusRequest which is created for illegal or non implemented function codes.
IllegalFunctionRequest(int) - Constructor for class net.wimpi.modbus.msg.IllegalFunctionRequest
Constructs a new IllegalFunctionRequest instance for a given function code.
increment() - Method in class net.wimpi.modbus.util.AtomicCounter
Increments this AtomicInteger by one.
InputRegister - Interface in net.wimpi.modbus.procimg
Interface defining an input register.
intToRegisters(int) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts an int value to a byte[4] array.
isActive() - Method in interface net.wimpi.modbus.net.UDPTerminal
Tests if this UDPTerminal is active.
isCheckingValidity() - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
isCheckingValidity() - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
isCheckingValidity() - Method in interface net.wimpi.modbus.io.ModbusTransaction
Tests whether the validity of a transaction will be checked.
isCheckingValidity() - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
isConnected() - Method in class net.wimpi.modbus.net.TCPMasterConnection
Tests if this TCPMasterConnection is connected.
isConnected() - Method in class net.wimpi.modbus.net.TCPSlaveConnection
Tests if this TCPMasterConnection is connected.
isConnected() - Method in class net.wimpi.modbus.net.UDPMasterConnection
Tests if this UDPMasterConnection is connected.
isEcho() - Method in class net.wimpi.modbus.io.ModbusSerialTransport
isEcho method returns the output echo state.
isEcho() - Method in class net.wimpi.modbus.util.SerialParameters
Get the Echo value.
isEmpty() - Method in class net.wimpi.modbus.util.LinkedQueue
 
isEOF() - Method in exception net.wimpi.modbus.ModbusIOException
Tests if this ModbusIOException is caused by an end of the stream.
isHeadless() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Tests if this message instance is headless.
isListening() - Method in class net.wimpi.modbus.net.ModbusSerialListener
Tests if this ModbusTCPListener is listening and accepting incoming connections.
isListening() - Method in class net.wimpi.modbus.net.ModbusTCPListener
Tests if this ModbusTCPListener is listening and accepting incoming connections.
isListening() - Method in class net.wimpi.modbus.net.ModbusUDPListener
Tests if this ModbusTCPListener is listening and accepting incoming connections.
isLocked() - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
isLSBAccess() - Method in class net.wimpi.modbus.util.BitVector
Tests if this BitVector has the LSB (rightmost) as the first bit (i.e.
isMaster() - Method in class net.wimpi.modbus.ModbusCoupler
Tests if this instance is a master device.
isMSBAccess() - Method in class net.wimpi.modbus.util.BitVector
Tests if this BitVector has the MSB (leftmost) as the first bit (i.e.
isOpen() - Method in class net.wimpi.modbus.net.SerialConnection
Reports the open status of the port.
isReconnecting() - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Tests if a constant connection is maintained or if a new connection is established for every transaction.
isReconnecting() - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
Tests if the connection will be openend and closed for each execution.
isSet() - Method in interface net.wimpi.modbus.procimg.DigitalIn
Tests if this DigitalIn is set.
isSet() - Method in interface net.wimpi.modbus.procimg.DigitalOut
Tests if this DigitalOut is set.
isSet() - Method in class net.wimpi.modbus.procimg.ObservableDigitalOut
 
isSet() - Method in class net.wimpi.modbus.procimg.SimpleDigitalIn
 
isSet() - Method in class net.wimpi.modbus.procimg.SimpleDigitalOut
 
isSlave() - Method in class net.wimpi.modbus.ModbusCoupler
Tests if this instance is not a master device.
isType(int) - Method in exception net.wimpi.modbus.ModbusSlaveException
Tests if this ModbusSlaveException is of a given type.

L

LinkedNode - Class in net.wimpi.modbus.util
Class defining a linked node element.
LinkedNode(Object) - Constructor for class net.wimpi.modbus.util.LinkedNode
 
LinkedNode(Object, LinkedNode) - Constructor for class net.wimpi.modbus.util.LinkedNode
 
LinkedQueue - Class in net.wimpi.modbus.util
 
LinkedQueue() - Constructor for class net.wimpi.modbus.util.LinkedQueue
 
longToRegisters(long) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts a long value to a byte[8].
lowByte(int) - Static method in class net.wimpi.modbus.util.ModbusUtil
Returs the low byte of an integer word.

M

main(String[]) - Static method in class net.wimpi.modbus.cmd.AIAOTest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.AITest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.AOTest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.DIDOTest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.DITest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.DOTest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.SerialAITest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.SerialDITest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.SerialFacadeTest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.SerialSlaveTest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.TCPSlaveTest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.UDPDITest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.UDPDOTest
 
main(String[]) - Static method in class net.wimpi.modbus.cmd.UDPSlaveTest
 
main(String[]) - Static method in class net.wimpi.modbus.util.BitVector
 
makeWord(int, int) - Static method in class net.wimpi.modbus.util.ModbusUtil
 
mark(int) - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Marks the current position in this FastByteArrayInputStream.
markSupported() - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Tests if this FastByteArrayInputStream supports the mark and reset methods.
MAX_BITS - Static variable in interface net.wimpi.modbus.Modbus
Defines the maximum number of bits in multiple read/write of input discretes or coils (2000).
MAX_MESSAGE_LENGTH - Static variable in interface net.wimpi.modbus.Modbus
Defines the maximum message length in bytes (=256).
MAX_TRANSACTION_ID - Static variable in interface net.wimpi.modbus.Modbus
Defines the maximum value of the transaction identifier.
Modbus - Interface in net.wimpi.modbus
Interface defining all constants related to the Modbus protocol.
ModbusASCIITransport - Class in net.wimpi.modbus.io
Class that implements the Modbus/ASCII transport flavor.
ModbusASCIITransport() - Constructor for class net.wimpi.modbus.io.ModbusASCIITransport
Constructs a new MobusASCIITransport instance.
ModbusBINTransport - Class in net.wimpi.modbus.io
Class that implements the Modbus/BIN transport flavor.
ModbusBINTransport() - Constructor for class net.wimpi.modbus.io.ModbusBINTransport
Constructs a new MobusBINTransport instance.
ModbusCoupler - Class in net.wimpi.modbus
Class implemented following a Singleton pattern, to couple the slave side with a master side or with a device.
ModbusException - Exception in net.wimpi.modbus
Superclass of all specialised exceptions in this package.
ModbusException() - Constructor for exception net.wimpi.modbus.ModbusException
Constructs a new ModbusException instance.
ModbusException(String) - Constructor for exception net.wimpi.modbus.ModbusException
Constructs a new ModbusException instance with the given message.
ModbusIOException - Exception in net.wimpi.modbus
Class that implements a ModbusIOException.
ModbusIOException() - Constructor for exception net.wimpi.modbus.ModbusIOException
Constructs a new ModbusIOException instance.
ModbusIOException(String) - Constructor for exception net.wimpi.modbus.ModbusIOException
Constructs a new ModbusIOException instance with the given message.
ModbusIOException(boolean) - Constructor for exception net.wimpi.modbus.ModbusIOException
Constructs a new ModbusIOException instance.
ModbusIOException(String, boolean) - Constructor for exception net.wimpi.modbus.ModbusIOException
Constructs a new ModbusIOException instance with the given message.
ModbusMessage - Interface in net.wimpi.modbus.msg
Interface defining a Modbus Message.
ModbusMessageImpl - Class in net.wimpi.modbus.msg
Abstract class implementing a ModbusMessage.
ModbusMessageImpl() - Constructor for class net.wimpi.modbus.msg.ModbusMessageImpl
 
ModbusRequest - Class in net.wimpi.modbus.msg
Abstract class implementing a ModbusRequest.
ModbusRequest() - Constructor for class net.wimpi.modbus.msg.ModbusRequest
 
ModbusResponse - Class in net.wimpi.modbus.msg
Abstract class implementing a ModbusResponse.
ModbusResponse() - Constructor for class net.wimpi.modbus.msg.ModbusResponse
 
ModbusRTUTransport - Class in net.wimpi.modbus.io
Class that implements the ModbusRTU transport flavor.
ModbusRTUTransport() - Constructor for class net.wimpi.modbus.io.ModbusRTUTransport
 
ModbusSerialListener - Class in net.wimpi.modbus.net
Class that implements a ModbusTCPListener.
If listening, it accepts incoming requests passing them on to be handled.
ModbusSerialListener(SerialParameters) - Constructor for class net.wimpi.modbus.net.ModbusSerialListener
Constructs a new ModbusSerialListener instance.
ModbusSerialMaster - Class in net.wimpi.modbus.facade
Modbus/Serial Master facade.
ModbusSerialMaster(SerialParameters) - Constructor for class net.wimpi.modbus.facade.ModbusSerialMaster
Constructs a new master facade instance for communication with a given slave.
ModbusSerialTransaction - Class in net.wimpi.modbus.io
Class implementing the ModbusTransaction interface.
ModbusSerialTransaction() - Constructor for class net.wimpi.modbus.io.ModbusSerialTransaction
Constructs a new ModbusSerialTransaction instance.
ModbusSerialTransaction(ModbusRequest) - Constructor for class net.wimpi.modbus.io.ModbusSerialTransaction
Constructs a new ModbusSerialTransaction instance with a given ModbusRequest to be send when the transaction is executed.
ModbusSerialTransaction(SerialConnection) - Constructor for class net.wimpi.modbus.io.ModbusSerialTransaction
Constructs a new ModbusSerialTransaction instance with a given ModbusRequest to be send when the transaction is executed.
ModbusSerialTransport - Class in net.wimpi.modbus.io
Abstract base class for serial ModbusTransport implementations.
ModbusSerialTransport() - Constructor for class net.wimpi.modbus.io.ModbusSerialTransport
 
ModbusSlaveException - Exception in net.wimpi.modbus
Class that implements a ModbusSlaveException.
ModbusSlaveException(int) - Constructor for exception net.wimpi.modbus.ModbusSlaveException
Constructs a new ModbusSlaveException instance with the given type.
Types are defined according to the protocol specification in net.wimpi.modbus.Modbus.
ModbusTCPListener - Class in net.wimpi.modbus.net
Class that implements a ModbusTCPListener.
If listening, it accepts incoming requests passing them on to be handled.
ModbusTCPListener(int) - Constructor for class net.wimpi.modbus.net.ModbusTCPListener
Constructs a ModbusTCPListener instance.
ModbusTCPListener(int, InetAddress) - Constructor for class net.wimpi.modbus.net.ModbusTCPListener
Constructs a ModbusTCPListener instance.
ModbusTCPMaster - Class in net.wimpi.modbus.facade
Modbus/TCP Master facade.
ModbusTCPMaster(String) - Constructor for class net.wimpi.modbus.facade.ModbusTCPMaster
Constructs a new master facade instance for communication with a given slave.
ModbusTCPMaster(String, int) - Constructor for class net.wimpi.modbus.facade.ModbusTCPMaster
Constructs a new master facade instance for communication with a given slave.
ModbusTCPTransaction - Class in net.wimpi.modbus.io
Class implementing the ModbusTransaction interface.
ModbusTCPTransaction() - Constructor for class net.wimpi.modbus.io.ModbusTCPTransaction
Constructs a new ModbusTCPTransaction instance.
ModbusTCPTransaction(ModbusRequest) - Constructor for class net.wimpi.modbus.io.ModbusTCPTransaction
Constructs a new ModbusTCPTransaction instance with a given ModbusRequest to be send when the transaction is executed.
ModbusTCPTransaction(TCPMasterConnection) - Constructor for class net.wimpi.modbus.io.ModbusTCPTransaction
Constructs a new ModbusTCPTransaction instance with a given TCPMasterConnection to be used for transactions.
ModbusTCPTransport - Class in net.wimpi.modbus.io
Class that implements the Modbus transport flavor.
ModbusTCPTransport(Socket) - Constructor for class net.wimpi.modbus.io.ModbusTCPTransport
Constructs a new ModbusTransport instance, for a given Socket.
ModbusTransaction - Interface in net.wimpi.modbus.io
Interface defining a ModbusTransaction.
ModbusTransport - Interface in net.wimpi.modbus.io
Interface defining the I/O mechanisms for ModbusMessage instances.
ModbusUDPListener - Class in net.wimpi.modbus.net
Class that implements a ModbusUDPListener.
ModbusUDPListener() - Constructor for class net.wimpi.modbus.net.ModbusUDPListener
Constructs a new ModbusUDPListener instance.
ModbusUDPListener(InetAddress) - Constructor for class net.wimpi.modbus.net.ModbusUDPListener
Create a new ModbusUDPListener instance listening to the given interface address.
ModbusUDPMaster - Class in net.wimpi.modbus.facade
Modbus/UDP Master facade.
ModbusUDPMaster(String) - Constructor for class net.wimpi.modbus.facade.ModbusUDPMaster
Constructs a new master facade instance for communication with a given slave.
ModbusUDPMaster(String, int) - Constructor for class net.wimpi.modbus.facade.ModbusUDPMaster
Constructs a new master facade instance for communication with a given slave.
ModbusUDPTransaction - Class in net.wimpi.modbus.io
Class implementing the ModbusTransaction interface for the UDP transport mechanism.
ModbusUDPTransaction() - Constructor for class net.wimpi.modbus.io.ModbusUDPTransaction
Constructs a new ModbusUDPTransaction instance.
ModbusUDPTransaction(ModbusRequest) - Constructor for class net.wimpi.modbus.io.ModbusUDPTransaction
Constructs a new ModbusUDPTransaction instance with a given ModbusRequest to be send when the transaction is executed.
ModbusUDPTransaction(UDPTerminal) - Constructor for class net.wimpi.modbus.io.ModbusUDPTransaction
Constructs a new ModbusUDPTransaction instance with a given UDPTerminal to be used for transactions.
ModbusUDPTransaction(UDPMasterConnection) - Constructor for class net.wimpi.modbus.io.ModbusUDPTransaction
Constructs a new ModbusUDPTransaction instance with a given ModbusUDPConnection to be used for transactions.
ModbusUDPTransport - Class in net.wimpi.modbus.io
Class that implements the Modbus UDP transport flavor.
ModbusUDPTransport(UDPTerminal) - Constructor for class net.wimpi.modbus.io.ModbusUDPTransport
Constructs a new ModbusTransport instance, for a given UDPTerminal.
ModbusUtil - Class in net.wimpi.modbus.util
Helper class that provides utility methods.
ModbusUtil() - Constructor for class net.wimpi.modbus.util.ModbusUtil
 
Mutex - Class in net.wimpi.modbus.util
A simple non-reentrant mutual exclusion lock.
Mutex() - Constructor for class net.wimpi.modbus.util.Mutex
 

N

net.wimpi.modbus - package net.wimpi.modbus
Provides an object oriented Modbus implementation in Java.
net.wimpi.modbus.cmd - package net.wimpi.modbus.cmd
Provides some simple commandline tools for demonstration purposes.
net.wimpi.modbus.facade - package net.wimpi.modbus.facade
Provides facade pattern implementations.
net.wimpi.modbus.io - package net.wimpi.modbus.io
Provides I/O and transport related interfaces and classes.
net.wimpi.modbus.msg - package net.wimpi.modbus.msg
Provides interfaces and classes that encapsulate Modbus messages in an object oriented manner.
net.wimpi.modbus.net - package net.wimpi.modbus.net
Provides the network related parts of this Modbus implementation.
net.wimpi.modbus.procimg - package net.wimpi.modbus.procimg
Provides interfaces and classes that provide a coupling between a slave side and a master or device side.
net.wimpi.modbus.util - package net.wimpi.modbus.util
Provides utility and helper classes for the Modbus implementation.
NonWordDataHandler - Interface in net.wimpi.modbus.io
Interface implementing a non word data handler for the read/write multiple register commands (class 0).
notifyObservers(Object) - Method in class net.wimpi.modbus.util.Observable
Notifies all observer instances in the set of observers of this Observable.

O

Observable - Class in net.wimpi.modbus.util
A cleanroom implementation of the Observable pattern.
Observable() - Constructor for class net.wimpi.modbus.util.Observable
Constructs a new Observable instance.
ObservableDigitalOut - Class in net.wimpi.modbus.procimg
Class implementing an observable digital output.
ObservableDigitalOut() - Constructor for class net.wimpi.modbus.procimg.ObservableDigitalOut
 
ObservableRegister - Class in net.wimpi.modbus.procimg
Class implementing an observable register.
ObservableRegister() - Constructor for class net.wimpi.modbus.procimg.ObservableRegister
 
Observer - Interface in net.wimpi.modbus.util
A cleanroom implementation of the Observer interface for the Observable design pattern.
offer(Object, long) - Method in class net.wimpi.modbus.util.LinkedQueue
 
open() - Method in class net.wimpi.modbus.net.SerialConnection
Opens the communication port.

P

peek() - Method in class net.wimpi.modbus.util.LinkedQueue
 
poll(long) - Method in class net.wimpi.modbus.util.LinkedQueue
 
prepareData(int, int) - Method in interface net.wimpi.modbus.io.NonWordDataHandler
Prepares the raw data, putting it together from a backing data store.
prepareStreams(InputStream, OutputStream) - Method in class net.wimpi.modbus.io.ModbusASCIITransport
Prepares the input and output streams of this ModbusASCIITransport instance.
prepareStreams(InputStream, OutputStream) - Method in class net.wimpi.modbus.io.ModbusBINTransport
Prepares the input and output streams of this ModbusASCIITransport instance.
prepareStreams(InputStream, OutputStream) - Method in class net.wimpi.modbus.io.ModbusRTUTransport
Prepares the input and output streams of this ModbusRTUTransport instance.
prepareStreams(InputStream, OutputStream) - Method in class net.wimpi.modbus.io.ModbusSerialTransport
prepareStreams prepares the input and output streams of this ModbusSerialTransport instance.
ProcessImage - Interface in net.wimpi.modbus.procimg
Interface defining a process image in an object oriented manner.
ProcessImageFactory - Interface in net.wimpi.modbus.procimg
Interface defining the factory methods for the process image and it's elements.
ProcessImageImplementation - Interface in net.wimpi.modbus.procimg
Interface defining implementation specific details of the ProcessImage, adding mechanisms for creating and modifying the actual "process image".
put(Object) - Method in class net.wimpi.modbus.util.LinkedQueue
 

R

read() - Method in class net.wimpi.modbus.io.ASCIIInputStream
Reads a byte from the ASCII encoded stream.
read() - Method in class net.wimpi.modbus.io.BINInputStream
Reads a byte from the BIN encoded stream.
read() - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Reads the next byte of data from this input stream.
read(byte[], int, int) - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Reads up to len bytes of data into an array of bytes from this input stream.
read(byte[]) - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
 
READ_COILS - Static variable in interface net.wimpi.modbus.Modbus
Defines the class 1 function code for read coils.
READ_INPUT_DISCRETES - Static variable in interface net.wimpi.modbus.Modbus
Defines a class 1 function code for read input discretes.
READ_INPUT_REGISTERS - Static variable in interface net.wimpi.modbus.Modbus
Defines a class 1 function code for read input registers.
READ_MULTIPLE_REGISTERS - Static variable in interface net.wimpi.modbus.Modbus
Defines the class 0 function code for read multiple registers.
readBoolean() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readByte() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readChar() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readCoils(int, int, int) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Reads a given number of coil states from the slave.
readCoils(int, int) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Reads a given number of coil states from the slave.
readCoils(int, int) - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Reads a given number of coil states from the slave.
ReadCoilsRequest - Class in net.wimpi.modbus.msg
Class implementing a ReadCoilsRequest.
ReadCoilsRequest() - Constructor for class net.wimpi.modbus.msg.ReadCoilsRequest
Constructs a new ReadCoilsRequest instance.
ReadCoilsRequest(int, int) - Constructor for class net.wimpi.modbus.msg.ReadCoilsRequest
Constructs a new ReadCoilsRequest instance with a given reference and count of coils (i.e.
ReadCoilsResponse - Class in net.wimpi.modbus.msg
Class implementing a ReadCoilsResponse.
ReadCoilsResponse() - Constructor for class net.wimpi.modbus.msg.ReadCoilsResponse
Constructs a new ReadCoilsResponse instance.
ReadCoilsResponse(int) - Constructor for class net.wimpi.modbus.msg.ReadCoilsResponse
Constructs a new ReadCoilsResponse instance with a given count of coils (i.e.
readData(DataInput, int, int) - Method in interface net.wimpi.modbus.io.NonWordDataHandler
Reads the non-word raw data based on an arbitrary implemented structure.
readData(DataInput) - Method in class net.wimpi.modbus.msg.ExceptionResponse
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.IllegalFunctionRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Reads the subclass specific data from the given DataInput instance.
readData(DataInput) - Method in class net.wimpi.modbus.msg.ReadCoilsRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.ReadCoilsResponse
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesResponse
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.ReadInputRegistersRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.ReadInputRegistersResponse
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.WriteCoilRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.WriteCoilResponse
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsResponse
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersResponse
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.WriteSingleRegisterRequest
 
readData(DataInput) - Method in class net.wimpi.modbus.msg.WriteSingleRegisterResponse
 
readDouble() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readEcho(int) - Method in class net.wimpi.modbus.io.ModbusSerialTransport
Reads the own message echo produced in RS485 Echo Mode within the given time frame.
readFloat() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readFrom(DataInput) - Method in interface net.wimpi.modbus.io.Transportable
Reads this Transportable from the given DataInput.
readFrom(DataInput) - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
 
readFully(byte[]) - Method in class net.wimpi.modbus.io.BytesInputStream
 
readFully(byte[], int, int) - Method in class net.wimpi.modbus.io.BytesInputStream
 
readInputDiscretes(int, int, int) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Reads a given number of input discrete states from the slave.
readInputDiscretes(int, int) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Reads a given number of input discrete states from the slave.
readInputDiscretes(int, int) - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Reads a given number of input discrete states from the slave.
ReadInputDiscretesRequest - Class in net.wimpi.modbus.msg
Class implementing a ReadInputDiscretesRequest.
ReadInputDiscretesRequest() - Constructor for class net.wimpi.modbus.msg.ReadInputDiscretesRequest
Constructs a new ReadInputDiscretesRequest instance.
ReadInputDiscretesRequest(int, int) - Constructor for class net.wimpi.modbus.msg.ReadInputDiscretesRequest
Constructs a new ReadInputDiscretesRequest instance with a given reference and count of input discretes (i.e.
ReadInputDiscretesResponse - Class in net.wimpi.modbus.msg
Class implementing a ReadInputDiscretesResponse.
ReadInputDiscretesResponse() - Constructor for class net.wimpi.modbus.msg.ReadInputDiscretesResponse
Constructs a new ReadInputDiscretesResponse instance.
ReadInputDiscretesResponse(int) - Constructor for class net.wimpi.modbus.msg.ReadInputDiscretesResponse
Constructs a new ReadInputDiscretesResponse instance with a given count of input discretes (i.e.
readInputRegisters(int, int, int) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Reads a given number of input registers from the slave.
readInputRegisters(int, int) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Reads a given number of input registers from the slave.
readInputRegisters(int, int) - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Reads a given number of input registers from the slave.
ReadInputRegistersRequest - Class in net.wimpi.modbus.msg
Class implementing a ReadInputRegistersRequest.
ReadInputRegistersRequest() - Constructor for class net.wimpi.modbus.msg.ReadInputRegistersRequest
Constructs a new ReadInputRegistersRequest instance.
ReadInputRegistersRequest(int, int) - Constructor for class net.wimpi.modbus.msg.ReadInputRegistersRequest
Constructs a new ReadInputRegistersRequest instance with a given reference and count of words to be read.
ReadInputRegistersResponse - Class in net.wimpi.modbus.msg
Class implementing a ReadInputRegistersRequest.
ReadInputRegistersResponse() - Constructor for class net.wimpi.modbus.msg.ReadInputRegistersResponse
Constructs a new ReadInputRegistersResponse instance.
ReadInputRegistersResponse(InputRegister[]) - Constructor for class net.wimpi.modbus.msg.ReadInputRegistersResponse
Constructs a new ReadInputRegistersResponse instance.
readInt() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readLine() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readLong() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readMultipleRegisters(int, int, int) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Reads a given number of registers from the slave.
readMultipleRegisters(int, int) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Reads a given number of registers from the slave.
readMultipleRegisters(int, int) - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Reads a given number of registers from the slave.
ReadMultipleRegistersRequest - Class in net.wimpi.modbus.msg
Class implementing a ReadMultipleRegistersRequest.
ReadMultipleRegistersRequest() - Constructor for class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
Constructs a new ReadMultipleRegistersRequest instance.
ReadMultipleRegistersRequest(int, int) - Constructor for class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
Constructs a new ReadMultipleRegistersRequest instance with a given reference and count of words to be read.
ReadMultipleRegistersResponse - Class in net.wimpi.modbus.msg
Class implementing a ReadMultipleRegistersResponse.
ReadMultipleRegistersResponse() - Constructor for class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
Constructs a new ReadMultipleRegistersResponse instance.
ReadMultipleRegistersResponse(Register[]) - Constructor for class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
Constructs a new ReadInputRegistersResponse instance.
readRequest() - Method in class net.wimpi.modbus.io.ModbusASCIITransport
 
readRequest() - Method in class net.wimpi.modbus.io.ModbusBINTransport
 
readRequest() - Method in class net.wimpi.modbus.io.ModbusRTUTransport
 
readRequest() - Method in class net.wimpi.modbus.io.ModbusSerialTransport
The readRequest method listens continuously on the serial input stream for master request messages and replies if the request slave ID matches its own set in ModbusCoupler.getUnitID().
readRequest() - Method in class net.wimpi.modbus.io.ModbusTCPTransport
 
readRequest() - Method in interface net.wimpi.modbus.io.ModbusTransport
Reads a ModbusRequest from the input stream of this ModbusTransport.
readRequest() - Method in class net.wimpi.modbus.io.ModbusUDPTransport
 
readResponse() - Method in class net.wimpi.modbus.io.ModbusASCIITransport
 
readResponse() - Method in class net.wimpi.modbus.io.ModbusBINTransport
 
readResponse() - Method in class net.wimpi.modbus.io.ModbusRTUTransport
 
readResponse() - Method in class net.wimpi.modbus.io.ModbusSerialTransport
readResponse reads a response message from the slave responding to a master writeMessage request.
readResponse() - Method in class net.wimpi.modbus.io.ModbusTCPTransport
 
readResponse() - Method in interface net.wimpi.modbus.io.ModbusTransport
Reads a ModbusResponse from the input stream of this ModbusTransport.
readResponse() - Method in class net.wimpi.modbus.io.ModbusUDPTransport
 
readShort() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readUnsignedByte() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readUnsignedShort() - Method in class net.wimpi.modbus.io.BytesInputStream
 
readUTF() - Method in class net.wimpi.modbus.io.BytesInputStream
 
receiveMessage() - Method in interface net.wimpi.modbus.net.UDPTerminal
Receives and returns a message.
Register - Interface in net.wimpi.modbus.procimg
Interface defining a register.
registersToDouble(byte[]) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts a byte[8] binary double value into a double primitive.
registersToFloat(byte[]) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts a byte[4] binary float value to a float primitive.
registersToInt(byte[]) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts a byte[4] binary int value to a primitive int.
The value returned is:
registersToLong(byte[]) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts a byte[8] binary long value into a long primitive.
registerToShort(byte[]) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts the given register (16-bit value) into a short.
registerToShort(byte[], int) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts the register (16-bit value) at the given index into a short.
registerToUnsignedShort(byte[]) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts the register (a 16 bit value) into an unsigned short.
release() - Method in class net.wimpi.modbus.util.Mutex
 
removeDigitalIn(DigitalIn) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Removes a given DigitalIn instance.
removeDigitalIn(DigitalIn) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
removeDigitalOut(DigitalOut) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Removes a given DigitalOut instance.
removeDigitalOut(DigitalOut) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
removeInputRegister(InputRegister) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Removes a given InputRegister instance.
removeInputRegister(InputRegister) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
removeObserver(Observer) - Method in class net.wimpi.modbus.util.Observable
Removes an observer instance from the set of observers of this Observable.
removeObservers() - Method in class net.wimpi.modbus.util.Observable
Removes all observer instances from the set of observers of this Observable.
removeRegister(Register) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Removes a given Register instance.
removeRegister(Register) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
reset(byte[]) - Method in class net.wimpi.modbus.io.BytesInputStream
Resets this BytesInputStream using the given byte[] as new input buffer.
reset(byte[], int) - Method in class net.wimpi.modbus.io.BytesInputStream
Resets this BytesInputStream using the given byte[] as new input buffer and a given length.
reset(int) - Method in class net.wimpi.modbus.io.BytesInputStream
Resets this BytesInputStream assigning the input buffer a new length.
reset() - Method in class net.wimpi.modbus.io.BytesOutputStream
 
reset() - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Re-positions this stream to the position at the time the mark method was last called this FastByteArrayInputStream.
reset() - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Resets the count of this FastByteArrayOutputStream to zero, so that all currently accumulated output in the ouput stream is discarded when overwritten.
run() - Method in class net.wimpi.modbus.net.ModbusTCPListener
Accepts incoming connections and handles then with TCPConnectionHandler instances.
run() - Method in class net.wimpi.modbus.net.TCPConnectionHandler
 

S

sendMessage(byte[]) - Method in interface net.wimpi.modbus.net.UDPTerminal
Sends the given message.
SERIAL_ENCODING_ASCII - Static variable in interface net.wimpi.modbus.Modbus
Defines the serial encoding "ASCII".
SERIAL_ENCODING_BIN - Static variable in interface net.wimpi.modbus.Modbus
Defines the serial encoding "BIN".
SERIAL_ENCODING_RTU - Static variable in interface net.wimpi.modbus.Modbus
Defines the serial encoding "RTU".
SerialAITest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool for reading an analog input.
SerialAITest() - Constructor for class net.wimpi.modbus.cmd.SerialAITest
 
SerialConnection - Class in net.wimpi.modbus.net
Class that implements a serial connection which can be used for master and slave implementations.
SerialConnection(SerialParameters) - Constructor for class net.wimpi.modbus.net.SerialConnection
Creates a SerialConnection object and initilizes variables passed in as params.
SerialDITest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool for reading an analog input.
SerialDITest() - Constructor for class net.wimpi.modbus.cmd.SerialDITest
 
serialEvent(SerialPortEvent) - Method in class net.wimpi.modbus.net.SerialConnection
 
SerialFacadeTest - Class in net.wimpi.modbus.cmd
 
SerialFacadeTest() - Constructor for class net.wimpi.modbus.cmd.SerialFacadeTest
 
SerialParameters - Class in net.wimpi.modbus.util
Helper class wrapping all serial port communication parameters.
SerialParameters() - Constructor for class net.wimpi.modbus.util.SerialParameters
Constructs a new SerialParameters instance with default values.
SerialParameters(String, int, int, int, int, int, int, boolean, int) - Constructor for class net.wimpi.modbus.util.SerialParameters
Constructs a new SerialParameters instance with given parameters.
SerialParameters(Properties, String) - Constructor for class net.wimpi.modbus.util.SerialParameters
Constructs a new SerialParameters instance with parameters obtained from a Properties instance.
SerialSlaveTest - Class in net.wimpi.modbus.cmd
Class implementing a simple Modbus slave.
SerialSlaveTest() - Constructor for class net.wimpi.modbus.cmd.SerialSlaveTest
 
set(boolean) - Method in interface net.wimpi.modbus.procimg.DigitalOut
Sets the state of this DigitalOut.
set(boolean) - Method in class net.wimpi.modbus.procimg.ObservableDigitalOut
 
set(boolean) - Method in class net.wimpi.modbus.procimg.SimpleDigitalIn
Sets the state of this SimpleDigitalIn.
set(boolean) - Method in class net.wimpi.modbus.procimg.SimpleDigitalOut
 
setAddress(InetAddress) - Method in class net.wimpi.modbus.net.ModbusTCPListener
Sets the address of the interface to be listened to.
setAddress(InetAddress) - Method in class net.wimpi.modbus.net.TCPMasterConnection
Sets the destination InetAddress of this TCPMasterConnection.
setAddress(InetAddress) - Method in class net.wimpi.modbus.net.UDPMasterConnection
Sets the destination InetAddress of this UDPMasterConnection.
setBaudRate(int) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the baud rate.
setBaudRate(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the baud rate.
setBit(int, boolean) - Method in class net.wimpi.modbus.util.BitVector
Sets the state of the bit at the given index of this BitVector.
setBitCount(int) - Method in class net.wimpi.modbus.msg.ReadCoilsRequest
Sets the number of bits (i.e.
setBitCount(int) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesRequest
Sets the number of bits (i.e.
setBitCount(int) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesResponse
Sets the number of bits in this response.
setBitCount(int) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsResponse
Sets the number of bits (i.e.
setBytes(byte[]) - Method in class net.wimpi.modbus.util.BitVector
Sets the byte[] which stores the bits of this BitVector.
setBytes(byte[], int) - Method in class net.wimpi.modbus.util.BitVector
Sets the byte[] which stores the bits of this BitVector.
setCheckingValidity(boolean) - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
setCheckingValidity(boolean) - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
setCheckingValidity(boolean) - Method in interface net.wimpi.modbus.io.ModbusTransaction
Sets the flag that controls whether the validity of a transaction will be checked.
setCheckingValidity(boolean) - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
setCoil(boolean) - Method in class net.wimpi.modbus.msg.WriteCoilRequest
Sets the state that should be written with this WriteCoilRequest.
setCoils(BitVector) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Sets the BitVector instance holding coil status information.
setCoilStatus(int, boolean) - Method in class net.wimpi.modbus.msg.ReadCoilsResponse
Sets the status of the given coil.
setCoilStatus(int, boolean) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Sets the coil status of the given coil.
setCommPort(CommPort) - Method in class net.wimpi.modbus.io.ModbusSerialTransport
setCommPort sets the comm port member and prepares the input and output streams to be used for reading from and writing to.
setConnection(TCPMasterConnection) - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
Sets the connection on which this ModbusTransaction should be executed.
setConnection(TCPSlaveConnection) - Method in class net.wimpi.modbus.net.TCPConnectionHandler
Sets a connection to be handled by this TCPConnectionHandler.
setConnectionParameters() - Method in class net.wimpi.modbus.net.SerialConnection
Sets the connection parameters to the setting in the parameters object.
setDatabits(int) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the number of data bits.
setDatabits(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the number of data bits from the given String.
setDataLength(int) - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Sets the length of the data appended after the protocol header.
setDigitalIn(int, DigitalIn) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Sets a new DigitalIn instance at the given reference.
setDigitalIn(int, DigitalIn) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
setDigitalOut(int, DigitalOut) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Sets a new DigitalOut instance at the given reference.
setDigitalOut(int, DigitalOut) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
setDiscreteStatus(int, boolean) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesResponse
Sets the status of the given input discrete.
setEcho(boolean) - Method in class net.wimpi.modbus.io.ModbusSerialTransport
setEcho method sets the output echo state.
setEcho(boolean) - Method in class net.wimpi.modbus.util.SerialParameters
Set the Echo value.
setEncoding(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the encoding to be used.
setEOF(boolean) - Method in exception net.wimpi.modbus.ModbusIOException
Sets the flag that determines whether this ModbusIOException was caused by an end of the stream.
setFlowControlIn(int) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the type of flow control for the input as given by the passed in int.
setFlowControlIn(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the type of flow control for the input as given by the passed in String.
setFlowControlOut(int) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the output flow control type as given by the passed in int.
setFlowControlOut(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the output flow control type as given by the passed in String.
setHeadless() - Method in interface net.wimpi.modbus.msg.ModbusMessage
Sets the flag that marks this ModbusMessage as headless (for serial transport).
setHeadless() - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
 
setInputRegister(int, InputRegister) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Sets a new InputRegister instance at the given reference.
setInputRegister(int, InputRegister) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
setListening(boolean) - Method in class net.wimpi.modbus.net.ModbusSerialListener
Sets the listening flag of this ModbusTCPListener.
setLocked(boolean) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
setMaster(boolean) - Method in class net.wimpi.modbus.ModbusCoupler
Sets this instance to be or not to be a master device.
setNonWordDataHandler(NonWordDataHandler) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Sets a non word data handler.
setParity(int) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the parity schema.
setParity(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the parity schema from the given String.
setPort(int) - Method in class net.wimpi.modbus.net.ModbusTCPListener
Sets the port to be listened to.
setPort(int) - Method in class net.wimpi.modbus.net.ModbusUDPListener
Sets the number of the port this ModbusUDPListener is listening to.
setPort(int) - Method in class net.wimpi.modbus.net.TCPMasterConnection
Sets the destination port of this TCPMasterConnection.
setPort(int) - Method in class net.wimpi.modbus.net.UDPMasterConnection
Sets the destination port of this UDPMasterConnection.
setPortName(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the port name.
setProcessImage(ProcessImage) - Method in class net.wimpi.modbus.ModbusCoupler
Sets the reference to the ProcessImage of this ModbusCoupler.
setProcessImageFactory(ProcessImageFactory) - Method in class net.wimpi.modbus.ModbusCoupler
Sets the ProcessImageFactory instance.
setProtocolID(int) - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Sets the protocol identifier of this ModbusMessage.
setReceiveThreshold(int) - Method in class net.wimpi.modbus.io.ModbusSerialTransport
Describe setReceiveThreshold method here.
setReceiveTimeout(int) - Method in class net.wimpi.modbus.io.ModbusSerialTransport
Describe setReceiveTimeout method here.
setReceiveTimeout(int) - Method in class net.wimpi.modbus.net.SerialConnection
 
setReceiveTimeout(int) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the receive timeout for serial communication.
setReceiveTimeout(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the receive timeout for the serial communication parsing the given String using Integer.parseInt(String).
setReconnecting(boolean) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Sets the flag that specifies whether to maintain a constant connection or reconnect for every transaction.
setReconnecting(boolean) - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
Sets the flag that controls whether a connection is openend and closed for each execution or not.
setReference(int) - Method in class net.wimpi.modbus.msg.ReadCoilsRequest
Sets the reference of the register to start reading from with this ReadCoilsRequest.
setReference(int) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesRequest
Sets the reference of the register to start reading from with this ReadInputDiscretesRequest.
setReference(int) - Method in class net.wimpi.modbus.msg.ReadInputRegistersRequest
Sets the reference of the register to start reading from with this ReadInputRegistersRequest.
setReference(int) - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
Sets the reference of the register to start reading from with this ReadMultipleRegistersRequest.
setReference(int) - Method in class net.wimpi.modbus.msg.WriteCoilRequest
Sets the reference of the register of the coil that should be written to with this ReadCoilsRequest.
setReference(int) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Sets the reference of the register to start reading from with this ReadCoilsRequest.
setReference(int) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Sets the reference of the register to writing to with this WriteMultipleRegistersRequest.
setReference(int) - Method in class net.wimpi.modbus.msg.WriteSingleRegisterRequest
Sets the reference of the register to be written to with this WriteSingleRegisterRequest.
setRegister(Register) - Method in class net.wimpi.modbus.msg.WriteSingleRegisterRequest
Sets the value that should be written to the register with this WriteSingleRegisterRequest.
setRegister(int, Register) - Method in interface net.wimpi.modbus.procimg.ProcessImageImplementation
Sets a new Register instance at the given reference.
setRegister(int, Register) - Method in class net.wimpi.modbus.procimg.SimpleProcessImage
 
setRegisters(Register[]) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Sets the registers to be written with this WriteMultipleRegistersRequest.
setRequest(ModbusRequest) - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
setRequest(ModbusRequest) - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
setRequest(ModbusRequest) - Method in interface net.wimpi.modbus.io.ModbusTransaction
Sets the ModbusRequest for this ModbusTransaction.
setRequest(ModbusRequest) - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
setRetries(int) - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
 
setRetries(int) - Method in class net.wimpi.modbus.io.ModbusTCPTransaction
 
setRetries(int) - Method in interface net.wimpi.modbus.io.ModbusTransaction
Set the amount of retries for opening the connection for executing the transaction.
setRetries(int) - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
 
setSerialConnection(SerialConnection) - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
Sets the port on which this ModbusTransaction should be executed.
setSocket(Socket) - Method in class net.wimpi.modbus.io.ModbusTCPTransport
Sets the Socket used for message transport and prepares the streams used for the actual I/O.
setStopbits(int) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the number of stop bits.
setStopbits(String) - Method in class net.wimpi.modbus.util.SerialParameters
Sets the number of stop bits from the given String.
setTerminal(UDPTerminal) - Method in class net.wimpi.modbus.io.ModbusUDPTransaction
Sets the terminal on which this ModbusTransaction should be executed.
setTimeout(int) - Method in class net.wimpi.modbus.net.TCPMasterConnection
Sets the timeout for this TCPMasterConnection.
setTimeout(int) - Method in class net.wimpi.modbus.net.TCPSlaveConnection
Sets the timeout for this TCPSlaveConnection.
setTimeout(int) - Method in class net.wimpi.modbus.net.UDPMasterConnection
Sets the timeout for this UDPMasterConnection.
setTransactionID(int) - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Sets the transaction identifier of this ModbusMessage.
setTransDelayMS(int) - Method in class net.wimpi.modbus.io.ModbusSerialTransaction
Set the TransDelayMS value.
setUnitID(int) - Method in class net.wimpi.modbus.ModbusCoupler
Sets the identifier of this unit, which is needed to be determined in a serial network.
setUnitID(int) - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Sets the unit identifier of this ModbusMessage.
The identifier should be a 1-byte non negative integer value valid in the range of 0-255.
setUnitIdentifier(int) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Sets the unit identifier of this ModbusSerialMaster.
setValue(int) - Method in class net.wimpi.modbus.procimg.AbstractRegister
 
setValue(short) - Method in class net.wimpi.modbus.procimg.AbstractRegister
 
setValue(byte[]) - Method in class net.wimpi.modbus.procimg.AbstractRegister
 
setValue(int) - Method in class net.wimpi.modbus.procimg.ObservableRegister
 
setValue(short) - Method in class net.wimpi.modbus.procimg.ObservableRegister
 
setValue(byte[]) - Method in class net.wimpi.modbus.procimg.ObservableRegister
 
setValue(int) - Method in interface net.wimpi.modbus.procimg.Register
Sets the content of this Register from the given unsigned 16-bit value (unsigned short).
setValue(short) - Method in interface net.wimpi.modbus.procimg.Register
Sets the content of this register from the given signed 16-bit value (short).
setValue(byte[]) - Method in interface net.wimpi.modbus.procimg.Register
Sets the content of this register from the given raw bytes.
setValue(int) - Method in class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
 
setValue(short) - Method in class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
 
setValue(byte[]) - Method in class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
 
setWordCount(int) - Method in class net.wimpi.modbus.msg.ReadInputRegistersRequest
Sets the number of words to be read with this ReadInputRegistersRequest.
setWordCount(int) - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
Sets the number of words to be read with this ReadMultipleRegistersRequest.
shortToRegister(short) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts the given short into a register (2 bytes).
SimpleDigitalIn - Class in net.wimpi.modbus.procimg
Class implementing a simple DigitalIn.
SimpleDigitalIn() - Constructor for class net.wimpi.modbus.procimg.SimpleDigitalIn
Constructs a new SimpleDigitalIn instance.
SimpleDigitalIn(boolean) - Constructor for class net.wimpi.modbus.procimg.SimpleDigitalIn
Constructs a new SimpleDigitalIn instance with a given valid state.
SimpleDigitalOut - Class in net.wimpi.modbus.procimg
Class implementing a simple DigitalOut.
SimpleDigitalOut() - Constructor for class net.wimpi.modbus.procimg.SimpleDigitalOut
Constructs a new SimpleDigitalOut instance.
SimpleDigitalOut(boolean) - Constructor for class net.wimpi.modbus.procimg.SimpleDigitalOut
Constructs a new SimpleDigitalOut instance with the given state.
SimpleInputRegister - Class in net.wimpi.modbus.procimg
Class implementing a simple InputRegister.
SimpleInputRegister() - Constructor for class net.wimpi.modbus.procimg.SimpleInputRegister
Constructs a new SimpleInputRegister instance.
SimpleInputRegister(byte, byte) - Constructor for class net.wimpi.modbus.procimg.SimpleInputRegister
Constructs a new SimpleInputRegister instance.
SimpleInputRegister(int) - Constructor for class net.wimpi.modbus.procimg.SimpleInputRegister
Constructs a new SimpleInputRegister instance with the given value.
SimpleProcessImage - Class in net.wimpi.modbus.procimg
Class implementing a simple process image to be able to run unit tests or handle simple cases.
SimpleProcessImage() - Constructor for class net.wimpi.modbus.procimg.SimpleProcessImage
Constructs a new SimpleProcessImage instance.
SimpleRegister - Class in net.wimpi.modbus.procimg
Class implementing a simple Register.
SimpleRegister() - Constructor for class net.wimpi.modbus.procimg.SimpleRegister
Constructs a new SimpleRegister instance.
SimpleRegister(byte, byte) - Constructor for class net.wimpi.modbus.procimg.SimpleRegister
Constructs a new SimpleRegister instance.
SimpleRegister(int) - Constructor for class net.wimpi.modbus.procimg.SimpleRegister
Constructs a new SimpleRegister instance with the given value.
size() - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Returns the size of the buffer being read.
size() - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Returns the current number of bytes in the buffer of this FastByteArrayOutputStream.
size() - Method in class net.wimpi.modbus.util.BitVector
Returns the number of bits in this BitVector as int.
skip(int) - Method in class net.wimpi.modbus.io.BytesInputStream
Skips the given number of bytes or all bytes till the end of the assigned input buffer length.
skip(long) - Method in class net.wimpi.modbus.io.FastByteArrayInputStream
Skips over and discards n bytes of data from this input stream.
skipBytes(int) - Method in class net.wimpi.modbus.io.BytesInputStream
 
start() - Method in class net.wimpi.modbus.net.ModbusTCPListener
Starts this ModbusTCPListener.
start() - Method in class net.wimpi.modbus.net.ModbusUDPListener
Starts this ModbusUDPListener.
stop() - Method in class net.wimpi.modbus.net.ModbusTCPListener
Stops this ModbusTCPListener.
stop() - Method in class net.wimpi.modbus.net.ModbusUDPListener
Stops this ModbusUDPListener.
SynchronizedAbstractRegister - Class in net.wimpi.modbus.procimg
Abstract class with synchronized register operations.
SynchronizedAbstractRegister() - Constructor for class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
 

T

take() - Method in class net.wimpi.modbus.util.LinkedQueue
 
TCPConnectionHandler - Class in net.wimpi.modbus.net
Class implementing a handler for incoming Modbus/TCP requests.
TCPConnectionHandler(TCPSlaveConnection) - Constructor for class net.wimpi.modbus.net.TCPConnectionHandler
Constructs a new TCPConnectionHandler instance.
TCPMasterConnection - Class in net.wimpi.modbus.net
Class that implements a TCPMasterConnection.
TCPMasterConnection(InetAddress) - Constructor for class net.wimpi.modbus.net.TCPMasterConnection
Constructs a TCPMasterConnection instance with a given destination address.
TCPSlaveConnection - Class in net.wimpi.modbus.net
Class that implements a TCPSlaveConnection.
TCPSlaveConnection(Socket) - Constructor for class net.wimpi.modbus.net.TCPSlaveConnection
Constructs a TCPSlaveConnection instance using a given socket instance.
TCPSlaveTest - Class in net.wimpi.modbus.cmd
Class implementing a simple Modbus/TCP slave.
TCPSlaveTest() - Constructor for class net.wimpi.modbus.cmd.TCPSlaveTest
 
ThreadPool - Class in net.wimpi.modbus.util
Class implementing a simple thread pool.
ThreadPool(int) - Constructor for class net.wimpi.modbus.util.ThreadPool
Constructs a new ThreadPool instance.
toByteArray() - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Returns a newly allocated byte[] with the actual content of the buffer of this FastByteArrayOutputStream.
toByteArray(byte[], int) - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Copies the content of this FastByteArrayOutputStream into the given byte array, starting from the given offset.
toBytes() - Method in class net.wimpi.modbus.procimg.AbstractRegister
 
toBytes() - Method in interface net.wimpi.modbus.procimg.InputRegister
Returns the content of this Register as bytes.
toBytes() - Method in class net.wimpi.modbus.procimg.ObservableRegister
 
toBytes() - Method in class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
 
toggleAccess(boolean) - Method in class net.wimpi.modbus.util.BitVector
Toggles the flag deciding whether the LSB or the MSB of the byte corresponds to the first bit (index=0).
toHex(ModbusMessage) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts a ModbusMessage instance into a hex encoded string representation.
toHex(byte[]) - Static method in class net.wimpi.modbus.util.ModbusUtil
Returns the given byte[] as hex encoded string.
toHex(byte[], int, int) - Static method in class net.wimpi.modbus.util.ModbusUtil
Returns a String containing unsigned hexadecimal numbers as digits.
toHex(int) - Static method in class net.wimpi.modbus.util.ModbusUtil
Returns a byte[] containing the given byte as unsigned hexadecimal number digits.
toShort() - Method in class net.wimpi.modbus.procimg.AbstractRegister
 
toShort() - Method in interface net.wimpi.modbus.procimg.InputRegister
Returns the content of this Register as signed 16-bit value (short).
toShort() - Method in class net.wimpi.modbus.procimg.ObservableRegister
 
toShort() - Method in class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
 
toString() - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Converts the buffer's contents into a string, translating bytes into characters according to the platform's default character encoding.
toString(String) - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding.
toString() - Method in class net.wimpi.modbus.util.BitVector
Returns a String representing the contents of the bit collection in a way that can be printed to a screen or log.
toUnsignedShort() - Method in class net.wimpi.modbus.procimg.AbstractRegister
 
toUnsignedShort() - Method in interface net.wimpi.modbus.procimg.InputRegister
Returns the content of this Register as unsigned 16-bit value (unsigned short).
toUnsignedShort() - Method in class net.wimpi.modbus.procimg.ObservableRegister
 
toUnsignedShort() - Method in class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
 
Transportable - Interface in net.wimpi.modbus.io
Interface defining a transportable class.

U

UDPDITest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool for reading a digital input.
UDPDITest() - Constructor for class net.wimpi.modbus.cmd.UDPDITest
 
UDPDOTest - Class in net.wimpi.modbus.cmd
Class that implements a simple commandline tool for writing to a digital output.
UDPDOTest() - Constructor for class net.wimpi.modbus.cmd.UDPDOTest
 
UDPMasterConnection - Class in net.wimpi.modbus.net
Class that implements a UDPMasterConnection.
UDPMasterConnection(InetAddress) - Constructor for class net.wimpi.modbus.net.UDPMasterConnection
Constructs a UDPMasterConnection instance with a given destination address.
UDPSlaveTest - Class in net.wimpi.modbus.cmd
Class implementing a simple Modbus/UDP slave.
UDPSlaveTest() - Constructor for class net.wimpi.modbus.cmd.UDPSlaveTest
 
UDPTerminal - Interface in net.wimpi.modbus.net
Interface defining a UDPTerminal.
unsignedByteToInt(byte) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts an unsigned byte to an integer.
unsignedShortToRegister(int) - Static method in class net.wimpi.modbus.util.ModbusUtil
Converts the given unsigned short into a register (2 bytes).
update(Observable, Object) - Method in interface net.wimpi.modbus.util.Observer
Updates the state of this Observer to be in synch with an Observable instance.

W

write(int) - Method in class net.wimpi.modbus.io.ASCIIOutputStream
Writes a byte encoded as two hexadecimal characters to the raw output stream.
write(byte[]) - Method in class net.wimpi.modbus.io.ASCIIOutputStream
Writes an array of bytes encoded as two hexadecimal characters to the raw output stream.
write(byte[], int, int) - Method in class net.wimpi.modbus.io.ASCIIOutputStream
Writes an array of bytes encoded as two hexadecimal characters to the raw output stream.
write(int) - Method in class net.wimpi.modbus.io.BINOutputStream
Writes a byte to the raw output stream.
write(byte[]) - Method in class net.wimpi.modbus.io.BINOutputStream
Writes an array of bytes to the raw output stream.
write(byte[], int, int) - Method in class net.wimpi.modbus.io.BINOutputStream
Writes an array of bytes to the raw output stream.
write(byte[], int, int) - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Writes len bytes from the specified byte array starting at offset off to this FastByteArrayOutputStream.
write(int) - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Writes the specified byte to this byte array output stream.
write(byte[]) - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Convenience method that writes all bytes from the specified byte array to this FastByteArrayOutputStream.
WRITE_COIL - Static variable in interface net.wimpi.modbus.Modbus
Defines a class 1 function code for write coil.
WRITE_MULTIPLE_COILS - Static variable in interface net.wimpi.modbus.Modbus
Defines a standard function code for write multiple coils.
WRITE_MULTIPLE_REGISTERS - Static variable in interface net.wimpi.modbus.Modbus
Defines the class 0 function code for write multiple registers.
WRITE_SINGLE_REGISTER - Static variable in interface net.wimpi.modbus.Modbus
Defines a class 1 function code for write single register.
writeBoolean(boolean) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeByte(int) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeBytes(String) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeChar(int) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeChars(String) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeCoil(int, int, boolean) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Writes a coil state to the slave.
writeCoil(int, int, boolean) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Writes a coil state to the slave.
writeCoil(int, int, boolean) - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Writes a coil state to the slave.
WriteCoilRequest - Class in net.wimpi.modbus.msg
Class implementing a WriteCoilRequest.
WriteCoilRequest() - Constructor for class net.wimpi.modbus.msg.WriteCoilRequest
Constructs a new WriteCoilRequest instance.
WriteCoilRequest(int, boolean) - Constructor for class net.wimpi.modbus.msg.WriteCoilRequest
Constructs a new WriteCoilRequest instance with a given reference and state to be written.
WriteCoilResponse - Class in net.wimpi.modbus.msg
Class implementing a WriteCoilResponse.
WriteCoilResponse() - Constructor for class net.wimpi.modbus.msg.WriteCoilResponse
Constructs a new WriteCoilResponse instance.
WriteCoilResponse(int, boolean) - Constructor for class net.wimpi.modbus.msg.WriteCoilResponse
Constructs a new WriteCoilResponse instance.
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ExceptionResponse
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.IllegalFunctionRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Writes the subclass specific data to the given DataOutput.
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ReadCoilsRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ReadCoilsResponse
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ReadInputDiscretesResponse
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ReadInputRegistersRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ReadInputRegistersResponse
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.ReadMultipleRegistersResponse
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.WriteCoilRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.WriteCoilResponse
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.WriteMultipleCoilsResponse
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.WriteMultipleRegistersResponse
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.WriteSingleRegisterRequest
 
writeData(DataOutput) - Method in class net.wimpi.modbus.msg.WriteSingleRegisterResponse
 
writeDouble(double) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeFloat(float) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeInt(int) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeLong(long) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeMessage(ModbusMessage) - Method in class net.wimpi.modbus.io.ModbusASCIITransport
 
writeMessage(ModbusMessage) - Method in class net.wimpi.modbus.io.ModbusBINTransport
 
writeMessage(ModbusMessage) - Method in class net.wimpi.modbus.io.ModbusRTUTransport
 
writeMessage(ModbusMessage) - Method in class net.wimpi.modbus.io.ModbusSerialTransport
The writeMessage method writes a modbus serial message to its serial output stream to a specified slave unit ID.
writeMessage(ModbusMessage) - Method in class net.wimpi.modbus.io.ModbusTCPTransport
 
writeMessage(ModbusMessage) - Method in interface net.wimpi.modbus.io.ModbusTransport
Writes a to the output stream of this ModbusTransport.
writeMessage(ModbusMessage) - Method in class net.wimpi.modbus.io.ModbusUDPTransport
 
writeMultipleCoils(int, int, BitVector) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Writes a given number of coil states to the slave.
writeMultipleCoils(int, BitVector) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Writes a given number of coil states to the slave.
writeMultipleCoils(int, BitVector) - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Writes a given number of coil states to the slave.
WriteMultipleCoilsRequest - Class in net.wimpi.modbus.msg
Class implementing a WriteMultipleCoilsRequest.
WriteMultipleCoilsRequest() - Constructor for class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Constructs a new WriteMultipleCoilsRequest instance.
WriteMultipleCoilsRequest(int, int) - Constructor for class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Constructs a new WriteMultipleCoilsRequest instance with a given reference and count of coils (i.e.
WriteMultipleCoilsRequest(int, BitVector) - Constructor for class net.wimpi.modbus.msg.WriteMultipleCoilsRequest
Constructs a new WriteMultipleCoilsRequest instance with given reference and coil status.
WriteMultipleCoilsResponse - Class in net.wimpi.modbus.msg
Class implementing a WriteMultipleCoilsResponse.
WriteMultipleCoilsResponse() - Constructor for class net.wimpi.modbus.msg.WriteMultipleCoilsResponse
Constructs a new WriteMultipleCoilsResponse instance.
WriteMultipleCoilsResponse(int, int) - Constructor for class net.wimpi.modbus.msg.WriteMultipleCoilsResponse
Constructs a new WriteMultipleCoilsResponse instance with a given count of coils (i.e.
writeMultipleRegisters(int, int, Register[]) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Writes a number of registers to the slave.
writeMultipleRegisters(int, Register[]) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Writes a number of registers to the slave.
writeMultipleRegisters(int, Register[]) - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Writes a number of registers to the slave.
WriteMultipleRegistersRequest - Class in net.wimpi.modbus.msg
Class implementing a ReadMultipleRegistersRequest.
WriteMultipleRegistersRequest() - Constructor for class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Constructs a new WriteMultipleRegistersRequest instance.
WriteMultipleRegistersRequest(int, Register[]) - Constructor for class net.wimpi.modbus.msg.WriteMultipleRegistersRequest
Constructs a new WriteMultipleRegistersRequest instance with a given reference and values to be written.
WriteMultipleRegistersResponse - Class in net.wimpi.modbus.msg
Class implementing a WriteMultipleRegistersResponse.
WriteMultipleRegistersResponse() - Constructor for class net.wimpi.modbus.msg.WriteMultipleRegistersResponse
Constructs a new WriteMultipleRegistersResponse instance.
WriteMultipleRegistersResponse(int, int) - Constructor for class net.wimpi.modbus.msg.WriteMultipleRegistersResponse
Constructs a new WriteMultipleRegistersResponse instance.
writeShort(int) - Method in class net.wimpi.modbus.io.BytesOutputStream
 
writeSingleRegister(int, int, Register) - Method in class net.wimpi.modbus.facade.ModbusSerialMaster
Writes a single register to the slave.
writeSingleRegister(int, Register) - Method in class net.wimpi.modbus.facade.ModbusTCPMaster
Writes a single register to the slave.
writeSingleRegister(int, Register) - Method in class net.wimpi.modbus.facade.ModbusUDPMaster
Writes a single register to the slave.
WriteSingleRegisterRequest - Class in net.wimpi.modbus.msg
Class implementing a WriteSingleRegisterRequest.
WriteSingleRegisterRequest() - Constructor for class net.wimpi.modbus.msg.WriteSingleRegisterRequest
Constructs a new WriteSingleRegisterRequest instance.
WriteSingleRegisterRequest(int, Register) - Constructor for class net.wimpi.modbus.msg.WriteSingleRegisterRequest
Constructs a new WriteSingleRegisterRequest instance with a given reference and value to be written.
WriteSingleRegisterResponse - Class in net.wimpi.modbus.msg
Class implementing a WriteSingleRegisterResponse.
WriteSingleRegisterResponse() - Constructor for class net.wimpi.modbus.msg.WriteSingleRegisterResponse
Constructs a new WriteSingleRegisterResponse instance.
WriteSingleRegisterResponse(int, int) - Constructor for class net.wimpi.modbus.msg.WriteSingleRegisterResponse
Constructs a new WriteSingleRegisterResponse instance.
writeTo(OutputStream) - Method in class net.wimpi.modbus.io.FastByteArrayOutputStream
Writes the complete contents of this FastByteArrayOutputStream to the specified output stream argument.
writeTo(DataOutput) - Method in interface net.wimpi.modbus.io.Transportable
Writes this Transportable to the given DataOutput.
writeTo(DataOutput) - Method in class net.wimpi.modbus.msg.ModbusMessageImpl
Writes this message to the given DataOutput.
writeUTF(String) - Method in class net.wimpi.modbus.io.BytesOutputStream
 

A B C D E F G H I L M N O P R S T U W

Copyright © 2010. All Rights Reserved.