| Package | Description |
|---|---|
| com.intelligt.modbus.jlibmodbus.exception | |
| com.intelligt.modbus.jlibmodbus.master |
| Modifier and Type | Class and Description |
|---|---|
class |
AcknowledgeException
quote from MODBUS Application Protocol Specification V1.1b
"Specialized use in conjunction with programming
commands.
|
class |
GatewayPathUnavailableException
quote from MODBUS Application Protocol Specification V1.1b
"Specialized use in conjunction with gateways,
indicates that the gateway was unable to allocate
an internal communication path from the input
port to the output port for processing the request.
|
class |
GatewayTargetDeviceFailedToRespondException
quote from MODBUS Application Protocol Specification V1.1b
"Specialized use in conjunction with gateways,
indicates that no response was obtained from the
target device.
|
class |
IllegalDataAddressException
quote from MODBUS Application Protocol Specification V1.1b
"The data address received in the query is not an
allowable address for the server (or slave).
|
class |
IllegalDataValueException
quote from MODBUS Application Protocol Specification V1.1b
"A value contained in the query data field is not an
allowable value for server (or slave).
|
class |
IllegalFunctionException
quote from MODBUS Application Protocol Specification V1.1b
"The function code received in the query is not an
allowable action for the server (or slave).
|
class |
MemoryParityErrorException
quote from MODBUS Application Protocol Specification V1.1b
"Specialized use in conjunction with function codes
20 and 21 and reference type 6, to indicate that
the extended file area failed to pass a consistency
checkFrame.
|
class |
SlaveDeviceBusyException
quote from MODBUS Application Protocol Specification V1.1b
"Specialized use in conjunction with programming
commands.
|
class |
SlaveDeviceFailureException
quote from MODBUS Application Protocol Specification V1.1b
"An unrecoverable error occurred while the server
(or slave) was attempting to perform the
requested action."
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
Copyright © 2018. All rights reserved.