nikucolor
I managed to visualize in real life how the program -simulation- works by connecting to runtime v4. It also works in v3, but I have to copy the .st file and put open plc runtime v3 as a shortcut now. I want to thank SEAFOX C because I was inspired by him. Have a nice day. Link video   https://www.youtube.com/watch?v=kT8euklrLz0
Reply 1 0
thiagoralves
You don’t have to manually copy .st in v3 anymore. The v4 editor can connect and upload programs to v3 runtime the same way it does on the v4 runtime.
Reply 0 0
nikucolor
That's right, I tried it and it works. I meant to say that it works to open runtime v3 and the one with red and green circles and insert the .st file there. That is, to view in version 3 without having the editor open. Now that we've entered this discussion, doesn't runtime v4 have an application on the browser screen? I see that at the address 127.0.0.1:8443 it doesn't open anything.
Reply 1 0
thiagoralves
No, v4 does not have a web interface on purpose. It is supposed to be a background application that you interface with from the editor
Reply 1 0
nikucolor
Ok, but I have a question. Now I'm using a raspberry pi5 and to be able to use it I run runtime v3 on it. How do I do this with runtime v4 if it doesn't have an interface? For example, I connected the fuxa directly to the raspberry but it's not possible without running runtime v3 on it.
Reply 0 0
thiagoralves
You don’t need the web interface to connect FUXA to it. You just need to enable Modbus server (on v4 go to blue + button on editor -> server -> Modbus)
Reply 1 0
richw
No, v4 does not have a web interface on purpose. It is supposed to be a background application that you interface with from the editor

If v4 is running in the background, how come after I run the start script on my PI I lose my command prompt and see what looks to be communication between the editor and the v4 runtime. I am unable to do any command prompt actions unless I ctrl/c which stops the v4 runtime. How do we get v4 to start automatically after a reboot, in v3 it was a selection in the web browser. Also are there any special registers in v4 like in v3, specifically register 1026 which was the time/date of the linux system?

Reply 0 0
nikucolor
You don’t need the web interface to connect FUXA to it. You just need to enable Modbus server (on v4 go to blue + button on editor -> server -> Modbus)
tks
Reply 0 0
thiagoralves

If v4 is running in the background, how come after I run the start script on my PI I lose my command prompt and see what looks to be communication between the editor and the v4 runtime. I am unable to do any command prompt actions unless I ctrl/c which stops the v4 runtime. How do we get v4 to start automatically after a reboot, in v3 it was a selection in the web browser. Also are there any special registers in v4 like in v3, specifically register 1026 which was the time/date of the linux system?

You can always open a new command prompt. Linux is not tied to a single prompt. If you run the dockerized version then docker will keep it running on the background and restart it on every boot, etc. We will add the option to register the runtime as a systemd service soon, so even without docker it will run on every system boot without having to be invoked.
 
There aren’t special registers on v4. I always through that this was a “hacky” way to get things working. Once the library manager is ready we will have blocks to properly get system things like time, etc. The idea for v4 is that it gets a solid foundation for an industrial-grade PLC environment, as opposed to v3 that was born as a school project and gained a popularity that I never thought it would (that’s why v3 is so hacky 😅).
Reply 1 0
yaseralie
I enable Server --> modbus tcp.
When I use V3, for Holding Register %MW0, modbus address is 1024.
But when I use v4, address 1024 could not be read., I also set to 0, but still same.
All coils normal, I can read them.
Can you tell me how to solve reading Holding Register?or any address change?
Reply 0 0
thiagoralves
That’s a bug that has been fixed already on the latest runtime v4. Are you using the runtime v4 on windows? If so, we may need to generate a new installer for the latest version.
Reply 0 0
yaseralie
Yes, I am using runtime v4 on Windows.
I have just reinstalled runtime v4, but still same for reading holding register.
This is version installer: OpenPLC_Runtime_4.0.0_Setup.exe
by the way, the fixed bug using 1024 or 0 for %MW0?
Reply 0 0
thiagoralves
The windows installer uses an earlier image of the release. I’m generating another build of it today. The new version of the editor that will also come today allows you to configure the size of registers as well (for example, where %MW0 maps to, how many %MW registers there are, etc)
Reply 0 0
thiagoralves
Just FYI the latest official build for v4.1.1 with all accumulated bug fixes is out. The windows runtime v4.0.1 is also out. You can get both from the Autonomy website
Reply 1 0
sitaram
I see currently V4 does not support native installation in raspian OS is this something which will be added or was it a planned work to always install v4 through docker?
Reply 0 0
Reply