dvc94ch
Using the latest openplc v4 appimage, when adding a new server, only the modbus/tcp option is selectable, the ethernet/ip option is grayed out. I'm trying to run it on the openplc-runtime-v4 docker image I'm using for testing, while will deploy it on an arduino-opta once the mechanical/electrical assembly is complete. Looking for something modbus like that lets me use the structured text variable names instead of addresses, and simplified import/export to a hmi like fuxa.
 
Reply 0 0
thiagoralves
Ethernet/IP is not available yet. It will come soon. However, you won’t be able to use any of these protocols once they come to runtime v4 on an Arduino Opta as the Opta does not run Linux, and therefore cannot run the runtime v4. The Opta is only compatible with the microcontrollers runtime which is stuck with Modbus only
Reply 0 0
dvc94ch
Alternatively could openplc automatically generate a list of variables, types and addresses, similar to the one my python script does, when building with a modbus-tcp server enabled?

Maybe this could convince fuxa or other hmi's to add an import function for this. I assume there isn't a standardized format for exporting/importing modbus addresses and variables? At 40-100 variables it becomes tedious and error prone to manually configure the variables and addresses.
Reply 0 0
dvc94ch
another solution might be running openplc on a rpi with the fuxa hmi to provide a modbus to ethernet/ip bridge, although that seems to add unnecessary complexity and not sure it will end up making things less tedious or error prone.
Reply 0 0
thiagoralves
Yes, Modbus has its limitations, and this is one of the big ones. Your best bet is to wait until OPC-UA is ready (we are almost finished implementing it). By definition OPC-UA allows HMIs and other systems talking with the PLC to import the list of variables you define, so that's much easier. Here is what the configuration of variables look like on the editor:
Screenshot 2026-01-19 at 8.52.57 AM.png
 
The only catch is that OPC-UA will be available only on OpenPLC Runtime v4 as well, so Arduino Opta won't be able to support it.
Reply 0 0
dvc94ch
but I'm kind of set on the opta already and have a digital + an analog expansion to meet the project I/O requirements.

seems like having a way to export/import modbus within openplc itself would be a big win. then building a bridge would be quite easy:
1. export the modbus registers
2. import them in a new openplc project in the modbus client
3. add an opcua server
even nicer would be if openplc could support multiple plcs in a single project
Reply 0 0
thiagoralves
That's indeed a good feature, we might add it to our roadmap at some point. Just to give you a heads up, currently only the main IOs of the Arduino Opta are supported on the OpenPLC driver. Any expansion you use will have to be coded through a C/C++ function block, coded in C++ (like the Arduino IDE).
Reply 1 0
dvc94ch
good to know. might open a PR for the modbus import/export feature once the opcua support lands. might also consider extending the arduino opta driver. in addition to supporting expansions, would be nice to support pulse counting for flow sensors. I have a C/C++ function block already for that, but adding a %IW location to a digital pin that supports interrupts could easily handle this in the driver.
Reply 1 0
thiagoralves
There are opc-ua branches on both the openplc-runtime and openplc-editor repositories if you want to check. Updates to those branches are coming daily
Reply 0 0
mrea
@dvc94ch did you even try what I suggested on the Fuxa github issue? If it does not work, please let us know so we can add the support, even provide the CSV or JSON and we can add full support for the import
Reply 0 0
dvc94ch
Sorry, didn't have time today to look into the csv import further. No error message was displayed, just ignored the import and haven't gotten around to building it myself and console.log the issue. I did take your input to heart to take a look if something other than modbus could work (like ocpua) that is already supported. but as thiago pointed out it looks like I'm stuck with modbus, so I'll give it another go. Thanks both for your help with the issue 🙏
Reply 0 0
mrea
@dvc94ch if CSV does not work try the JSON, you may need to create your own random tagID like the other tags have
Reply 0 0
Reply