INTER
Thank you for your great work.
I have just contacted and studied OpenPLC for a while. I am running OpenPLC on ubuntu server, using I/O_board as Slave I/O devices, OpenPLC polling devices via modbus, using touch screen as hmi device, and hmi using Modbus polls OpenPLC too, and the whole set of system runs very well.

The question now is: (1) If there are several sets of the same equipment, the same I/O_board, the same hmi, and the same plc program, I want to run all programs on the ubuntu server so how do I configure OpenPLC in a single ubuntu system?
(2) How to configure openplc if there are several sets of different devices corresponding to different plc programs?
All I can think of is to use a different address space, is there any other way?
Thank you very much for your help.
Reply 0 0
thiagoralves
You can't do that. Running more than one OpenPLC instance will give you a lot of conflicts. The best way to accomplish this is using Virtual Machines (VMs). VirtualBox is a free VMM that works very well on Ubuntu. You can setup a minimal Debian VM on VirtualBox with OpenPLC installed, and then replicate this how many times you would like. Then you can run all the VMs at the same time, which will run its own OpenPLC instance.
Reply 0 0
INTER
Ok thanks, i see, thank you for reply!
Reply 0 0
INTER
How to access MX address through modbus?   MODBUS can get  variables in MW, MD and ML memory space,but without MX,I can only use the non-existent QX instead of MX, but modbus will report an error when accessing I/O_board.
Is there any other way? Thank you
Reply 0 0
thiagoralves
There is no MX on OpenPLC. You can use any QX location that is not tied to your hardware. You should not read this from your IO board, but from OpenPLC directly.
Reply 0 0
INTER
Thanks, I solved this problem.
But recently I encountered a very strange problem. OpenPLC modbus query slave devices often disconnected and reconnected.

The information seen from the dashboard is like this:
Device ZKA4088 is disconnected. Attempting to reconnect...
Connected to MB device ZKA4088
Modbus Write Coils failed on MB device ZKA4088: Connection timed out
Modbus Read Input Registers failed on MB device ZKA4088: Bad file descriptor
Device ZKA4088 is disconnected. Attempting to reconnect...
Connected to MB device ZKA4088
Modbus Write Coils failed on MB device ZKA4088: Connection timed out
Modbus Read Input Registers failed on MB device ZKA4088: Bad file descriptor
Device ZKA4088 is disconnected. Attempting to reconnect...
Connected to MB device ZKA4088

I have three devices, OpenPLC Server (linux), modbus test tools (laptop), and SlaveDevices (ZKA4088), connected to the same switch.
modbus polls test tools--------------->Slave Devices----------- > ok!
OpenPLC Server ------------------->modbus slave test  tools------------> ok!
OpenPLC Server ------------------->Slave Devices-------->The above error occurs

Disconnect and reconnect every few minutes!

Later, I installed OpenPLC on my laptop and used this OpenPLC to connect to the device, and it worked normally.

It's crazy, so where is the problem? Can you give some suggestions! 
Thinks!
Reply 0 0
thiagoralves
It is very likely you are facing issues with connectivity from your server. This is more a network problem than a software problem. One thing you may try to do is reduce the pooling frequency on setting to see if it will help reduce traffic and latency on your network.
Reply 0 0
Reply