ModTest - Modbus slave tester
ModTest is an automated test program that enables you to develop and run test suites for Modbus devices.
Using ModTest, you can define a sequence of commands to be sent to a Modbus slave. The slave's responses to the Modbus commands are automatically recorded.
Subsequently, you can re-run the sequence of commands. ModTest will then compare the results with those previously obtained and flag any differences as errors.
ModTest's other main features are:
- Cross-platform: runs on any system that supports Java 1.5 or later - including Windows, Linux, Solaris and AIX.
- Manual and troubleshooting guide.
- Informative interpreted trace of all Modbus messages sent and received.
- All configuration settings may be saved to and restored from files, in XML format.
- Full support for coils, discrete inputs, input registers and
holding registers, using the following
commands:
- 1 Read Coils
- 2 Read Discrete Inputs
- 3 Read Holding Registers
- 4 Read Input Registers
- 5 Write Single Coil
- 6 Write Single Holding Register
- 7 Read Exception Status
- 8 Diagnostics
- 11 Get Comm Event Counter
- 15 Write Multiple Coils
- 16 Write Multiple Holding Registers
- 17 Report Slave ID
- 22 Mask Write Holding Register
- 23 Read/Write Multiple Holding Registers
- 43/14 Read Device Identification
- Custom commands
- Invalid commands - for testing the slave's error handling
- Supports network and serial (RS232/RS422/RS485) interfaces using the following protocol variants:
- Modbus TCP (also known as Modbus TCP/IP)
- Modbus RTU
- Modbus ASCII
- Modbus RTU encapsulated in TCP
- Modbus ASCII encapsulated in TCP
- Modbus UDP (also known as Modbus TCP encapsulated in UDP)
- Modbus RTU encapsulated in UDP
- Modbus ASCII encapsulated in UDP
- All known extensions of the Modbus protocol for handling 32-bit and 64-bit integers and floating-point numbers are supported (including Enron/Daniel Modbus).
- Registers are configurable for type (integer or float), size (1/8/16/32/64-bit) and radix (binary, octal, signed decimal, unsigned decimal, hex, or char).
- Full support for exception responses 10/0x0A ("Gateway Path Unavailable") and 11/0x0B ("Target Device Failed To Respond").
You can download the complete version of ModTest for a free 3-day evaluation period.
