Installing and running ModbusPal

ModbusPal is written in Java. It requires a JVM version 6 or above to run.

Stand-alone

ModbusPal is packaged as a single JAR file. On most systems, double-clicking on ModubsPal.jar will start ModbusPal. If not, the command-line to start ModbusPal is as follow:

java -jar ModbusPal.jar

Supporting serial communication

ModbusPal is designed to use the RXTX library in order to control the serial ports of the host system, so that MODBUS over Serial Communication can be enabled.

RXTX can be downloaded at the following location: RXTX Project's website

Follow the installation instructions. Then the classpath of the Java runtime must be modified in order to point to the RXTX library.

In case of difficulty using RXTX with ModbusPal, please try to start ModbusPal in the following manner:

java -cp "(install_directory)/ModbusPal.jar; (install_directory)/RXTXcomm.jar" modbuspal.main.ModbusPalGui

Supporting Python scripts

ModbusPal is designed to use the Jython library in order to support Python scripts.

Jython can be downloaded at the following location: Jython Project's website

Follow the installation instructions. Then the classpath of the Java runtime must be modified in order to point to the Jython library.

In case of difficulty using Jython with ModbusPal, please try to start ModbusPal in the following manner:

java -cp "(install_directory)/ModbusPal.jar; (install_directory)/jython.jar" modbuspal.main.ModbusPalGui

Notes

If you need both RXTX and Jython, then the command line becomes:

java -cp "(install_directory)/ModbusPal.jar; (install_directory)/RXTXcomm.jar; (install_directory)/jython.jar" modbuspal.main.ModbusPalGui