zala
goal (softplc i guess its name is...?)
win10(openplc)<->docker(runtime)<->scada/hmi(not here yet)
 
openplc on win (installer)
runtime in docker, (blank linux)
when clicking this button, i can control/modify blink example locally on my win10 in the openplc editor.
[203128%2F8750046%2Fmceclip0]
I upload the "blink.st" file to the runtime environment within Docker, and through the web server, I can monitor its successful execution.
[203128%2F8750047%2Fmceclip0]
While attempting to find information about a "live-debug remote plc" button's functionality, I came across a thread indicating that achieving this functionality is not possible when using blank Linux as the underlying hardware/driver platform. (Please correct me if I'm mistaken.) Here's the link to the discussion..
... and its pretty clear could wont work as openplc runtime tells me this in hardware(driver) setup:
[203128%2F8750051%2Fmceclip0]
however.. when declaring IN och OUT using M (memory) i guess, the "PLC simulation" button and live-debug-remote is the same but one of those is creating a modbusregister and the other one does not?
(havnt tried it yet, i just guessing "PLC simulation button" in openplc editor is creating a temporary modbus register/server to live view the status within the openplc software)

..gotta try live-debug-remote with an arduino to keep going
Reply 0 0
thiagoralves
Simulation runs on the editor and does not have any hardware or fieldbus capability. It only runs your logic, that’s it. The Windows, Linux and Arduino runtimes are actual PLC runtimes. They can run your program in full, including access to external hardware (like GPIO) or fieldbus (like Modbus). The live debug feature allows you to monitor an OpenPLC runtime instance running your program in real time. Therefore, it only works with the OpenPLC runtime. Currently the functionality is only available for the Arduino runtime, but it will come to Windows and Linux runtimes as well in the future.
Reply 0 0
zala
Aha, ok! It gets a bit confusing for me when the button is named "live debug remote plc".
Monitoring - similar to PLC simulation with the logic..
Live - Monitoring + interaction with the program. (?)
Debug - change values to run in the live mode without pushing a new program to PLC. (?)
Remote - ?same as debug but PLC is set on host or not(?)
 
.. when I get back home, I need to..
>documentation 2.2 (uploading programs to runtime) -> 1.5 installing runtime on Arduino Uno via OpenPLC Editor.
-> 2.1 enable hardware I/O in OpenPLC runtime (maybe?, can't find Arduino in supported hardware list in v3 on the web server, perhaps need to use v2?)
-> upload blink.st to Docker (runtime/web server) and start the program.
>Connecting with "live debug remote plc" in OpenPLC Editor to Docker (runtime) and it should work..(?)
 
I get the feeling the documentation is written for "OpenPLC Runtime" on Arduino with the host PC running "OpenPLC Editor" connected to COM port.
For now, it's like "OpenPLC Editor" (host Win10) -> "OpenPLC Runtime" (Docker/web server) -> "OpenPLC Runtime" (Arduino) so not sure if this will work.
Reply 0 0
thiagoralves
It seems that you’re a bit confused. You don’t need the runtime running on docker if your end goal is to program the Arduino. In fact, the online debugger (blue bug icon on the toolbar of the editor) will not work with your docker runtime because, as I said, it only works with the Arduino runtime for now. Is there any special need for the docker runtime in your application? I feel like it will be best if you just program the Arduino directly with your program. Search for the OpenPLC channel on YouTube and watch some videos there. I’m sure they will clear up a bunch of your questions.
Reply 0 0
zala
Docker was the easiest way for me to get started since I didn't have any PLC. I didn't realize that 'live debug remote PLC' wouldn't work with that type of OpenPLC runtime and the correct functionality of the button, and uploading manually is tedious compared to my usual method of doing it on the fly with other types of programs. I thought I could run a softplc on Docker and compile/debug and upload using the OpenPLC editor on a Windows host, just pointing to the Docker container.

But now I know I need Arduino for that, and it seems to work fine (I think, i need to play around a little) before playing around with the next thing
Reply 0 0
thiagoralves
Reply 0 0
zala
its noted, i will proceed to try it!
Reply 0 0
Reply