bastaw0w
Hello,
I installed OpenPLC Runtime in Docker on my MacBook M1 and I was able to connect using the PLC Editor without any problems.
The connection works and I can upload the program to the PLC, but when I start the PLC runtime I cannot see live variable values / online monitoring in the editor.
In Autonomy Edge (web interface in the browser) I can see live variables correctly, but in the PLC Editor I do not get live updates after starting the PLC.
My setup:
  • MacBook M1 (Apple Silicon)
  • Docker Desktop for Mac
  • OpenPLC Runtime running in Docker container
  • PLC Editor connected to the runtime via network
Is live variable monitoring supported when running OpenPLC in Docker on Apple Silicon?
Do I need to enable some additional setting, port, or configuration to see variables online in the PLC Editor?
Any help would be appreciated.
Thank you.
 
[203128%2F9716936%2Fmceclip0]
[203128%2F9716937%2Fmceclip0]
[203128%2F9716938%2Fmceclip0]

[203128%2F9716940%2Fmceclip0]
Reply 0 0
thiagoralves
Running the runtime on docker brings its own challenges as it requires you to export all ports from the container to your host. Specifically for the debugger you will have to expose HTTPS/WSS endpoint on port 8443. Any other protocol you add (Modbus, OPC-UA, etc) will require more fiddling with docker configuration in the same fashion. Using Autonomy Edge on the browser is always the easiest and recommended approach to get things working fast.
Reply 0 0
bastaw0w
Thanks for the explanation.
That makes sense. I am probably missing the 8443 port mapping for the debugger.
Currently I am running OpenPLC in Docker on MacBook M1 using a simple docker run / docker compose setup and I only exposed the default runtime port. I did not expose port 8443.
Could you please confirm what ports should be exposed to make live variable monitoring work in PLC Editor?
For example, is this correct?
  • 8080 (web interface)
  • 8443 (debugger / WSS / HTTPS)
  • 502 (Modbus, optional)
  • 4840 (OPC UA, optional)
Also, is there any limitation when running OpenPLC Runtime inside Docker on Apple Silicon (M1/M2)?
Autonomy Edge works fine in the browser, but I would like to use PLC Editor live monitoring if possible.
Thank you.
Reply 0 0
thiagoralves
The exposed ports will depend on the program you upload to the runtime. If your PLC project does not have an OPC-UA server then there is no need to expose 4840. Also, if you configure your OPC-UA server to be running on a different port, then you will have to expose a different port. So it all varies by application. The only other thing I would add to this is that the runtime v4 does no have a web interface at port 8080, so no need to expose that.
 
With all that being said, you can do live variable monitoring from the browser-based editor on Autonomy Edge as well, if that's what you're looking for.
Reply 0 0
bastaw0w
Thanks, that clarifies a lot.
So if I understand correctly, runtime v4 is mainly designed to be used together with Autonomy Edge, and the PLC Editor is intended mostly for programming and basic debugging, not for full live variable monitoring.
That explains why I can see live values in Edge but not in the PLC Editor even though the debugger connection works.
Everything is working now on my side with Docker on Mac M1.
Thank you for the help.
Reply 0 0
thiagoralves
Not quite. Both web based and desktop app editors can do live debugging. The difference is that the web based setup is simpler, requires no software installation or configuration and is more up to date (the version of the web editor is more recent than the desktop app)
Reply 0 0
Reply