| Modifier and Type | Class and Description |
|---|---|
class |
ModbusChecksumException |
| Modifier and Type | Method and Description |
|---|---|
void |
ModbusMaster.connect() |
protected void |
ModbusMaster.connectImpl()
this method allows you to implement your own behavior of connect method.
|
void |
ModbusMasterSerial.diagnosticsChangeAsciiInputDelimiter(int serverAddress,
int delimiter) |
abstract void |
ModbusMaster.diagnosticsChangeAsciiInputDelimiter(int serverAddress,
int delimiter)
The character passed in the request data field becomes the end of message delimiter
for future messages (replacing the default LF character).
|
void |
ModbusMasterSerial.diagnosticsClearCountersAndDiagnosticRegister(int serverAddress) |
abstract void |
ModbusMaster.diagnosticsClearCountersAndDiagnosticRegister(int serverAddress)
The goal is to clear all counters and the diagnostic register.
|
void |
ModbusMasterSerial.diagnosticsClearOverrunCounterAndFlag(int serverAddress) |
abstract void |
ModbusMaster.diagnosticsClearOverrunCounterAndFlag(int serverAddress)
Clears the overrun error counter and reset the error flag.
|
void |
ModbusMasterSerial.diagnosticsForceListenOnlyMode(int serverAddress) |
abstract void |
ModbusMaster.diagnosticsForceListenOnlyMode(int serverAddress)
Forces the addressed remote device to its Listen Only Mode for MODBUS communications.
|
void |
ModbusMasterSerial.diagnosticsRestartCommunicationsOption(int serverAddress,
boolean clearLog) |
abstract void |
ModbusMaster.diagnosticsRestartCommunicationsOption(int serverAddress,
boolean clearLog)
The remote device serial line port must be initialized and restarted, and all of its
communications event counters are cleared.
|
int |
ModbusMasterSerial.diagnosticsReturnBusCharacterOverrunCount(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnBusCharacterOverrunCount(int serverAddress)
The response data field returns the quantity of messages addressed to the remote device that
it could not handle due to a character overrun condition, since its last restart, clear counters
operation, or power–up.
|
int |
ModbusMasterSerial.diagnosticsReturnBusCommunicationErrorCount(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnBusCommunicationErrorCount(int serverAddress)
The response data field returns the quantity of CRC errors encountered by the remote device
since its last restart, clear counters operation, or power–up.
|
int |
ModbusMasterSerial.diagnosticsReturnBusExceptionErrorCount(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnBusExceptionErrorCount(int serverAddress)
The response data field returns the quantity of MODBUS exception responses returned by the
remote device since its last restart, clear counters operation, or power–up.
|
int |
ModbusMasterSerial.diagnosticsReturnBusMessageCount(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnBusMessageCount(int serverAddress)
The response data field returns the quantity of messages that the remote device has detected
on the communications system since its last restart, clear counters operation, or power–up.
|
int |
ModbusMasterSerial.diagnosticsReturnDiagnosticRegister(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnDiagnosticRegister(int serverAddress)
Returns the contents of the remote device’s 16–bit diagnostic register are returned in the response.
|
void |
ModbusMasterSerial.diagnosticsReturnQueryData(int serverAddress,
int queryData) |
abstract void |
ModbusMaster.diagnosticsReturnQueryData(int serverAddress,
int queryData)
The data passed in the request data field is to be returned (looped back) in the response.
|
int |
ModbusMasterSerial.diagnosticsReturnSlaveBusyCount(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnSlaveBusyCount(int serverAddress)
The response data field returns the quantity of messages addressed to the remote device for
which it returned a Slave Device Busy exception response, since its last restart, clear
counters operation, or power–up.
|
int |
ModbusMasterSerial.diagnosticsReturnSlaveMessageCount(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnSlaveMessageCount(int serverAddress)
The response data field returns the quantity of messages addressed to the remote device, or
broadcast, that the remote device has processed since its last restart, clear counters
operation, or power–up.
|
int |
ModbusMasterSerial.diagnosticsReturnSlaveNAKCount(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnSlaveNAKCount(int serverAddress)
The response data field returns the quantity of messages addressed to the remote device for
which it returned a Negative Acknowledge (NAK) exception response, since its last restart,
clear counters operation, or power–up.
|
int |
ModbusMasterSerial.diagnosticsReturnSlaveNoResponseCount(int serverAddress) |
abstract int |
ModbusMaster.diagnosticsReturnSlaveNoResponseCount(int serverAddress)
The response data field returns the quantity of messages addressed to the remote device for
which it has returned no response (neither a normal response nor an exception response),
since its last restart, clear counters operation, or power–up.
|
void |
ModbusMaster.disconnect() |
protected void |
ModbusMaster.disconnectImpl()
this method allows you to implement your own behavior of disconnect method.
|
CommStatus |
ModbusMasterTCP.getCommEventCounter(int serverAddress) |
CommStatus |
ModbusMasterSerial.getCommEventCounter(int serverAddress) |
abstract CommStatus |
ModbusMaster.getCommEventCounter(int serverAddress)
This function code is used to get a status word and an event count from the remote device's
communication event counter.
|
CommStatus |
ModbusMasterTCP.getCommEventLog(int serverAddress) |
CommStatus |
ModbusMasterSerial.getCommEventLog(int serverAddress) |
abstract CommStatus |
ModbusMaster.getCommEventLog(int serverAddress)
This function code is used to get a status word, event count, message count, and a field of
event bytes from the remote device.
|
void |
ModbusMaster.maskWriteRegister(int serverAddress,
int startAddress,
int and,
int or)
This function code is used to modify the contents of a specified holding register using a
combination of an AND mask, an OR mask, and the register's current contents.
|
ModbusResponse |
ModbusMaster.processRequest(ModbusRequest request)
this function allows you to process your own ModbusRequest.
|
boolean[] |
ModbusMaster.readCoils(int serverAddress,
int startAddress,
int quantity)
This function code is used to read from 1 to 2000 contiguous status of coils in a remote
device.
|
MEIReadDeviceIdentification |
ModbusMaster.readDeviceIdentification(int serverAddress,
int objectId,
ReadDeviceIdentificationCode readDeviceId)
This function code allows reading the identification and additional information relative to the
physical and functional description of a remote device, only.
|
boolean[] |
ModbusMaster.readDiscreteInputs(int serverAddress,
int startAddress,
int quantity)
This function code is used to read from 1 to 2000 contiguous status of discrete inputs in a
remote device.
|
int |
ModbusMasterTCP.readExceptionStatus(int serverAddress) |
int |
ModbusMasterSerial.readExceptionStatus(int serverAddress) |
abstract int |
ModbusMaster.readExceptionStatus(int serverAddress)
This function code is used to read the contents of eight Exception Status outputs in a remote
device.
|
int[] |
ModbusMaster.readFifoQueue(int serverAddress,
int fifoPointerAddress)
This function code allows to read the contents of a First-In-First-Out (FIFO) queue of register
in a remote device.
|
ModbusFileRecord[] |
ModbusMaster.readFileRecord(int serverAddress,
ModbusFileRecord[] records)
This function code is used to perform a file record read.
|
int[] |
ModbusMaster.readHoldingRegisters(int serverAddress,
int startAddress,
int quantity)
This function code is used to read the contents of a contiguous block of holding registers in a
remote device.
|
int[] |
ModbusMaster.readInputRegisters(int serverAddress,
int startAddress,
int quantity)
This function code is used to read from 1 to 125 contiguous input registers in a remote
device.
|
protected ModbusMessage |
ModbusMasterTCP.readResponse(ModbusRequest request) |
protected ModbusMessage |
ModbusMaster.readResponse(ModbusRequest request) |
int[] |
ModbusMaster.readWriteMultipleRegisters(int serverAddress,
int readAddress,
int readQuantity,
int writeAddress,
int[] registers)
This function code performs a combination of one read operation and one write operation in a
single MODBUS transaction.
|
byte[] |
ModbusMasterTCP.reportSlaveId(int serverAddress) |
byte[] |
ModbusMasterSerial.reportSlaveId(int serverAddress) |
abstract byte[] |
ModbusMaster.reportSlaveId(int serverAddress)
This function code is used to read the description of the type, the current status, and other
information specific to a remote device.
|
protected void |
ModbusMasterTCP.sendRequest(ModbusMessage msg) |
protected void |
ModbusMaster.sendRequest(ModbusMessage msg) |
void |
ModbusMaster.writeFileRecord(int serverAddress,
ModbusFileRecord record)
This function code is used to perform a file record write.
|
void |
ModbusMaster.writeMultipleCoils(int serverAddress,
int startAddress,
boolean[] coils)
This function code is used to force each coil in a sequence of coils to either ON or OFF in a
remote device.
|
void |
ModbusMaster.writeMultipleRegisters(int serverAddress,
int startAddress,
int[] registers)
This function code is used to write a block of contiguous registers (1 to 123 registers) in a
remote device.
|
void |
ModbusMaster.writeSingleCoil(int serverAddress,
int startAddress,
boolean flag)
This function code is used to write a single output to either ON or OFF in a remote device.
|
void |
ModbusMaster.writeSingleRegister(int serverAddress,
int startAddress,
int register)
This function code is used to write a single holding register in a remote device.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ModbusMessage.read(ModbusInputStream fifo) |
void |
ModbusMessage.write(ModbusOutputStream fifo) |
| Modifier and Type | Method and Description |
|---|---|
void |
ModbusConnection.close() |
protected void |
ModbusSlaveConnectionTCP.closeImpl() |
protected abstract void |
ModbusConnection.closeImpl() |
static ModbusConnection |
ModbusConnectionFactory.getTcpSlave(Socket socket) |
void |
ModbusConnection.open() |
protected void |
ModbusSlaveConnectionTCP.openImpl() |
protected abstract void |
ModbusConnection.openImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected ModbusMessage |
ModbusTransport.createMessage(ModbusMessageFactory factory) |
protected abstract ModbusMessage |
ModbusTransport.read(ModbusMessageFactory factory) |
ModbusMessage |
ModbusTransport.readMessage(ModbusMessageFactory factory) |
ModbusMessage |
ModbusTransport.readRequest() |
ModbusMessage |
ModbusTransport.readResponse(ModbusRequest request) |
void |
ModbusTransport.send(ModbusMessage msg) |
protected abstract void |
ModbusTransport.sendImpl(ModbusMessage msg) |
| Modifier and Type | Method and Description |
|---|---|
void |
ModbusSlave.listen()
starts the ModbusSlave thread.
|
void |
ModbusSlaveTCP.listenImpl() |
protected abstract void |
ModbusSlave.listenImpl() |
void |
ModbusSlave.shutdown()
should have stop the thread of the ModbusSlave.
|
protected abstract void |
ModbusSlave.shutdownImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
TcpAduHeader.read(ModbusInputStream fifo) |
void |
TcpAduHeader.write(ModbusOutputStream fifo) |
Copyright © 2018. All rights reserved.