Hi, I'm trying to use ModbusPal with the serial port. First time ModbuslPal indicated the missing RXTX library. I've got the latest stable rxtx 2.1-7r2 from http://rxtx.qbang.org/ and installed it: java -jar ModbusPal.jar -install Installing RXTX component... os.name returns "Windows 11" Install RXTX on Windows... java.home returns "C:\Program Files (x86)\Java\jre-1.8" 64-bit architecture detected... Installing "rxtx/win-x64/RXTXcomm.jar" to "RXTXcomm.jar" OK. Installing "rxtx/win-x64/rxtxParallel.dll"...
This seeemed to work for me! ModbusPal 1.6c on ControlThings 1bD (i.e. both latest). Amazing :-)
Noticed that running this as root also seems to completely fix the UI/Scaling issues: sudo /usr/lib/jvm/java-1.10.0-openjdk-amd64/bin/java -jar ./ModbusPal.jar YMMV
I experienced the same issue. It appears to be something to do with a recent java version in combination with the Gnome fonts. From the recent ControlThings, there's other versions of jdk installed that you can try out: java-1.10.0-openjdk-amd64/ java-1.11.0-openjdk-amd64/ java-1.8.0-openjdk-amd64/ I had my best luck with 1.10.0: /usr/lib/jvm/java-1.10.0-openjdk-amd64/bin/java -jar /usr/local/share/ModbusPal.jar But you still need to scroll text fields which is annoying: But the issue still persisted...
I experienced the same issue. It appears to be something to do with a recent java version in combination with the Gnome fonts. From the recent ControlThings, there's other versions of jdk installed that you can try out: java-1.10.0-openjdk-amd64/ java-1.11.0-openjdk-amd64/ java-1.8.0-openjdk-amd64/ I had my best luck with 1.10.0: /usr/lib/jvm/java-1.10.0-openjdk-amd64/bin/java -jar /usr/local/share/ModbusPal.jar But you still need to scroll text fields which is annoying: But the issue still persisted...
Expected: Source: https://youtu.be/oVDYaG2HInU?t=3484 Actual: ModbusPal installed via https://www.controlthings.io/platform (VirtualBox VM) Anyone know the cause or a solution? Changing the resolution doesn't make a difference. Cheers
Hello, I have made the following corrections to your project: 1) Add -noGui option in command and allow to run the tool in "headless" mode without gui; 2) Corrected relational paths for -loadFile option; 3) Enable python scripts; 4) Added support for functions with code 04 "Read Input Registers" Are these changes interesting for you? If so, can I commit them? Best wishes, Kamil Jarmusik Limraj https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail...
Hi, I am using modbus1.6c version software. I created a proper configuration through GUI and saved the configuration. The slave configuration within the configuration file looks like <slave implementation="modbus" enabled="true" id="1" name="unknown slave"></slave> Then I load the file back to the software through the command line option -loadFile and the configuration file is loaded successfully. In the GUI, the slave id is now showing as 0.0.0.1 and not as 1. Because of this, I am suspecting that...
Hi darkweb, the problem is a buffer overflow; I'm guessing the read from the serial port has no (or not big enough) time-out in receive. The time-out should be 3.5 characters in between frame. Thanks.
Hi Robert, Thanks for pointing out the download issue. I've corrected that. I'll see if I can incorporate the new RXTX API in the release. As for your issue with the serial port failing most of the time, can you go into more detail? What is your configuration set up and what are you seeing VS what you are expecting?
Hi, no luck for serial port. Most of the time it's failing and it's because it's only handling packet (for TCP) not byte.
Hi, the '-install' is failing but I was able to find the rxtx, here is a copy: http://www.jcontrol.org/download/rxtx_en.html After installing on Windows 10, it's looking good. BTW, the latest download file from SourceForge is only containing the help file. Thanks
Can you try again with ModbpusPal 1.6c? If it is still a problem, please post your config file and I'll take a look.
Great! Thanks for confirming.
No. This error is very much still there. All you have to do is to run Master snippet at this stackoverflow answer [link] to get this error. Ofcourse, we have to replace modbus_new_rtu with modbus_new_tcp. Also need to comment out modbus_set_slave to reproduce this error with TCP master. The exact sample runs with other Modbus slave simulators like at modbus tools
Error resolved at Modbuspal 1.6c. Thanks a lot. Kindly ignore the previous post.
Detailed error report at https://github.com/zeelos/ModbusPal/issues/4
Hi all, There may be some confusion on this. For Serial the specification only supports 0 (broadcast) - 247. Addresses 248 to 255 are reserved and shouldn't be used. In TCP mode you specify the IP address that the slave should receive on (e.g. 127.0.0.1). Let me know if this solves your issue.
Hi Attila, I've just built a 1.6c version. Can you try this out and see if it addresses your problem? If not, please attach the configuration and I can take a look. Thanks!
Adding in support to build the help and javadoc files for Docker.
Updated to jython 2.7.0
Hi Robert, You can run ModbusPal with the -install option and it is supposed to set up the RXTX library. I don't have access to a serial port so I can't test that functionality out. Let me know if that works for you. e.g. java -jar ModbusPal.jar -install
Hi eli, Thanks for your interest. In order to compile it you need to have a few dependencies available in the parent directory of the build.xml. These are in the project.properties file: file.reference.jcommon-1.0.18.jar=../jfreechart-1.0.15/lib/jcommon-1.0.18.jar file.reference.jfreechart-1.0.15.jar=../jfreechart-1.0.15/lib/jfreechart-1.0.15.jar file.reference.jython.jar=../jython2.7b1/jython.jar file.reference.RXTXcomm.jar=../rxtx-2.1-7-bins-r2/RXTXcomm.jar After that you can build it with: ant...
Hi, I run the simulator in learn mode and then save the configuration. Later when I load the same config that was working with the same client, I get error (illegal Function). Any suggestion? What changes when I reload the same configuration?
Hello I like this program, unfortunately there seems to be a bug: if I set up a slave, add registers, set values everything is ok. But if I export and import the register setup then my master will receive read errors with error code 1 (invalid function) This is very similar to the one described here: https://sourceforge.net/p/modbuspal/discussion/899955/thread/308caa9a/ It seems like the import would remove the default functions. Thanks for looking at this. -- Nagy Attila Gabor
Have exectly the same problem
Hi darkweb, can you explain please how its work's in the new version , i tried to download the last update application of modbus and i didnt sucssed to run "-loadFile" and "-port". so what i need to do in the main page i didnt saw the last version but i saw in the code tab your last update. i tried also to build the application with "ant" . So u can explain please: if we need to build so how we need to do that? if you can upload the last release with the update of the variable from path it is can...
Hi darkweb, can you explain please how its work's in the new version , i tried to download the last update application of modbus and i didnt sucssed to run "-loadFile" and "-port". so what i need to do in the main page i didnt saw the last version but i saw in the code tab your last update. i tried also to build the application with "ant" . So u can explain please: if we need to build so how we need to do that? if you can upload the last release with the update of the variable from path it is can...
Hi darkweb, can you explain please how its work's in the new version , i tried to download the last update application of modbus and i didnt sucssed to run "-loadFile" and "-port". so what i need to do in the main page i didnt saw the last version but i saw in the code tab your last update. i tried also to build the application with "ant" . So u can explain please: if we need to build so how we need to do that? if you can upload the last release with the update of the variable from path it is can...
Hi, I'm a first time user and I'm trying to use the serial port. First time ModbuslPal indicated the missing RXTX library; I've found multiple site where the library is available but so far no luck. When I install the library; ModbusPal refuse to start. Can someone point me to the latest version that work in Windows 10 ? Thanks
This is a nice tool. There is a recent "JEP 369: Migrate to GitHub" to move the JDK to github to benefit from a wider community. If this project is "abandoned" maybe it would be worth doing the same thing here?
Hi all, The latest code now allows for specifying a -loadFile parameter as well as a -port for customization on the command line and doesn't require the GUI. Hope that helps!
The latest code now allows for specifying a -loadFile parameter as well as a -port for customization on the command line but you'll need to build it to try it out.
The latest code now allows for specifying a -loadFile parameter as well as a -port for customization on the command line but you'll need to build it to try it out.
Hi there, I'm not sure what you're trying to do. ModbusPal opens up a port and listens for the protocol. First off make sure you can see that the port has been opened. This is done differently depending on the OS you are running it on: https://sites.google.com/site/mullais/network/to-check-if-a-port-is-open If the port is open, make sure you don't have firewalls blocking the ports. Once you've confirmed that it is open, you should be able to connect to it. Since this is TCP modbus, the slave address...
Update the open source code of the third party product "ModbusPal" to have optional command line arguments for the executable JAR:
Following are the two issues in ModbusPal 1.6b 1. Whenever loading project getting this exception Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: gnu/io/SerialPortEventListener After importing register map in the slave , the modbus slave responding illegal data to the Modbus Master .
Hi, I discovered a security vulnerability on ModbusPal 1.6b. The .xmpa and .xmpp files do not sanitize input and are vulnerable to XXE (https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing)
Hi, Is there a way to pass command-line parameters to modbuspal such that it can automatically open a saved xmpp file and start a simulation? Thanks, Bill
Hello, Are there command line parameters which could be passed to modbuspal to have it automatically load a saved xmpp project file and run the simulation? Thanks, Bill
ModbusPal, I'm relatively new to Modbus, but I've got ModbusPal up and running on a remote VM, with a single slave and simple ramp function of data. I'm trying to pull the tags to a local "Edge Device" to then send the data to the cloud as a test demonstration. I'm having trouble connecting to the ModbusPal to get the data tags. Do I just use the IP Address of the VM and then port 502? In my Edge Device config, I've tried https://<ip address="" of="" VM="">:502 and tcp://<ip address="" of="" VM="">:502....
Dear Jonas I Have copy the fixed jar from 2016-09-07 "ModbusPal.jar" , then my project function is working , but now I can not open the Scripts. http://nimb.ws/SRx5wc) Best regards, shinepo
Dear Jonas I Have copy the fixed jar from 2016-09-07 "ModbusPal.jar" , then my project function is working , but now I can not open the Scripts. Best regards, shinepo
i think , the correct way is write your own application using the API's provided in the help section. But to minimise the effort you can also use modpoll and digslave.
Yeah I am also trying to do the same thing . Has anyone figured out yet ?
I am trying to execute ModbusPal without the gui, but the wiki page is unavailable and the javadocs do not provide much help. Does anyone know how to do this?
Actually on closer looks it's trying to find them in a libs folder with specific names Then you can use java -jar ModbusPal.jar Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.1 Created-By: 1.6.0_18-b07 (Sun Microsystems Inc.) Main-Class: modbuspal.main.ModbusPalGui Class-Path: lib/RXTXcomm.jar lib/AbsoluteLayout.jar lib/jython.jar lib /jcommon-1.0.16.jar lib/jfreechart-1.0.13.jar
You might be running java -jar ModbusPal.jar You should be running java -classpath ./jython-standalone-2.7.0.jar:./ModbusPal.jar modbuspal.main.ModbusPalGui Java -jar and -classpath don't play nicely together
I installte Jython on my PC. Jython is running. If run "jython --version" in der...
to us ports below 1000 you must run the app as root. on a mac, I use terminal and...
Yes, I have exact the same issue! The console shows "Slave 255 is not enabled" but...
I am trying to use Scripts and after installation of Jython on my PC it still gives...
hi all, The max adress in TCP mode is 247 ! API like libmodbus use adress 255 and...
Find attached the fixed jar. It requires RXTX installed to start.
Hi, Could someone upload the fixed jar? Unfortunately, I am unable to build the project...
Thanks for the effort. Very useful software for testing and simulation of modbus....
Thanks for the effort. Very useful software for testing and simulation of modbus....
I am working on a project where we are producing specialized hardware controlled...
Seems like I figured most of it out by skimming the source code - hurray for OSS...
I am working on a project where we are producing specialized hardware controlled...
How can I add Jfreechart in ModbusPal.Jar?
Dear Tom, The latest release of ModbusPal seem to have a problem when it comes to...
Hi! First many compliments for the software! On my PC (win7) I have the same problems...
Hi, I am trying to use the simulator, I use RS232 connection. I only ever get error...