thiagoralves
Hello everyone! Happy Friday!!
 
I just wanted to announce an important update to the OpenPLC Editor and OpenPLC Runtime for Linux and Windows. Now OpenPLC Runtime supports live debugging the same way as the microcontroller (arduino) runtime.
 
Screen Shot 2024-07-11 at 11.19.40 PM.png
 
You must update your editor and your runtime to get this new feature. To update the runtime on Windows, just click on the "Rebase OpenPLC" entry on the start menu inside OpenPLC Runtime. On Linux (Raspberry Pi and others), you will have to clone and install the new runtime following the same installation instructions. Let me know if this new feature is working for you.
 
Happy coding!
Reply 7 0
richw
Installed a fresh copy of OpenPLC runtime and updated the editor to 7-12-2024 and tried to run live debug with the example blink program and receive the error below. I tried re-compiling and reloading the program but receive the same error. I noticed your led address is 0.0 which is local, I'm using address 100.0 which is on a on a slave, could this be the problem? The web monitor display is working correctly and so is the slave led
 
"This project does not match the program running on target. Upload the project to target and try again.
Couldn't stop PLC !"
Reply 0 0
thiagoralves
Are you running the runtime on windows or Linux?
Reply 0 0
richw
Ubuntu  Linux  23.10
Reply 0 0
thiagoralves
Everything seems to be working on my end on Linux. I'll test on Windows as well today. The %QX100.0 address shouldn't matter. Do you mind sharing your project and st file with me?
Reply 0 0
richw
I figured out the problem. All the registers of my slave devices were not listed as variables in my project. Because I was testing my  project as I was creating it I did not think I had to add the variables I wasn't using. After adding all the slave variables it is working correctly
Reply 0 0
thiagoralves
The program you have loaded in the Editor debugger must be EXACTLY the same as the one running on the Runtime. The Editor tries to match the MD5 checksum. If the program is not the same it gives the error message you saw.
Reply 0 0
ku86755
Need some help ,I couldn't get the newest OpenPLC_Editor
System:Win 11 Professional
 
Thanks so much!
Reply 0 0
thiagoralves
Delete your revision file inside the OpenPLC_Editor folder (usually located at C:\Users\[your username]\OpenPLC_Editor) and try again.
Reply 0 0
Naresh
is there any chance float use %F32V0 IS MODBUS 0 AND 1 REGISTER %F32V1 = 2 AND 3 IN THE DNP3 INDEX 0 AND 1 
Reply 0 0
runaway1
hi,i have a question.if i runing the editor on windows and runing the runtime on Raspberry Pi,live debugger can run exactly?
Reply 0 0
thiagoralves
Yes, the debugger for Raspberry Pi and other Linux systems was just added recently, so make sure you have the latest version of the OpenPLC Editor on your Windows PC and the latest version of the OpenPLC Runtime on your Pi. Then, start the runtime on your Pi, and connect to it by clicking on the blue bug icon on the top toolbar of the OpenPLC Editor. You will have to select "TCP" on the dialog that appears and provide the IP address of your Pi to connect to it. Once you're connected, click on the glasses icon at the left panel to launch the debug instance.
Reply 0 0
runaway1
hi,today i try to do it on my computer.i think i have updated editor and runtime to the lasted version,but when i try to live debug remote plc and selcet"tcp",one error like
below
 
"This project does not match the program running on target. Upload the project to target and try again.
Couldn't stop PLC !"
Reply 0 0
thiagoralves
Make sure you have both the runtime and the editor on the latest version and then compile and upload your program again to the runtime.
Reply 0 0
runaway1
ok,i have a problem with variables address.if i make a variable location like %QW or %QX,the debug can't connect,however when i cancel all the variables location,them can connect but the value of the variable in error.
Reply 0 0
Reply