D4bbi
Is it possible to run OpenPLC + ScadaBR  without any hardware (no rpi ) just lunch two docker container instances of OpenPlc and scadaBR and upload a Ladder program into the PLC create a graphical scenario and somehow link them using modbus
Reply 0 0
thiagoralves
Yes it is. Just use the blank hardware layer (comes by default)
Reply 1 0
D4bbi

Cool, I have followed this tutorial  https://www.openplcproject.com/reference/basics/first-project.html pushed the .st program into OpenPLC runtime and I started to create the Datasource on my scadaBR instance to test whether the OpenPLC and the scada communicate.Is there a way to test it  (some sort of ping request if I can say that ) I followed what you said here https://openplc.discussion.community/post/scada-8509295 however in ScadaBR I get the following error :
```
There was a problem testing the locator. There may be an enabled data source already using the selected port. (java.net.SocketTimeoutException: connect timed out)
```
Eventhough I am sure of my network config and I started the PLC (As I said I am on the same machine and lunched to docker container instances of ScadaBR and OpenPLC)

Reply 0 0
thiagoralves
You need to make sure your two docker containers can talk to each other, and then use the OpenPLC's docker IP address on the Modbus-IP ScadaBR config fields. Also, starting the web runtime is not the same as "starting the PLC". The web runtime is just the web interface you interact with. Only after clicking on the "start plc" button your runtime is really started and can respond to Modbus commands.
Reply 1 0
D4bbi

Many thanks it worked !

However I have a question:

I wanted to create a simple scenario (the one with PB1 , PB2 and the LED mentionned in the website) I created my datasource and made sure that ScadaBR and OpenPLC "talk" to each other created the point and the graphical view and everything is in place I want to run the simulation where I press the PB1 button the Lamp in the graphical view goes on and when I press PB2 it goes off and from what I understood I "press" the button PB1 in OpenPLC(Although in the monitoring tab I can force it to true but nothing changes) So Is this situation possible with OpenPLC or I must find another software that simulates the modbus master component in this architecture ?

Reply 0 0
thiagoralves
If you want to run this scenario with an HMI only (like ScadaBR) you will need to move PB1 and PB2 to %QX locations. Modbus won’t allow you to write to inputs (%IX locations). Inputs are read only, therefore you can’t modify them without a hardware.
Reply 0 0
Miftah
Dear Mr. Thiago,
                    First of all, I highly appreciate your work. I am facing serious problems regarding linking OpenPLC runtime with ScadaBR. I have used an Arduino UNO as a slave device for OpenPLC. Arduino UNO is working fine with OpenPLC but when it comes to interfacing ScadaBR with OpenPLC, it does not work. Although the connection gets established but ScadaBR does not read values from OpenPLC. Apart from this, also guide me how to connect elements in ladder diagram (buttons, coils etc) to points in ScadaBR.
Waiting for your kind reply
Best regards
Reply 0 0
thiagoralves
What is the error you're getting on ScadaBR? To connect ScadaBR with OpenPLC you will need to use Modbus-IP on ScadaBR. You need to make sure that the ScadaBR machine can communicate with your OpenPLC device, otherwise it will never work. Once you fill out all the fields on ScadaBR (IP address, port, etc) you will need to add data points. The offset (address) of each data point you want to add needs to match one of your located variables for you to be able to read that variable. You can get more info here:  https://www.openplcproject.com/reference/modbus-slave/
Reply 0 0
Miftah
Dr Mr, Thiagoralves,
Thankyou very much for your reply. Actually I am trying to connect openplc runtime with scadabr. I am using *Esp8266 (NodeMCU) * as a slave device. the slave device is perfectly communicating with OpenPLC but NOT with ScadaBR. It is giving some connection errors. I am attached a screenshot with this email. Kindly view it and than purpose me some sutiable solution.
Best Regards
Reply 0 0
thiagoralves
The error you’re facing means that ScadaBR can’t talk to OpenPLC. Either you have a network problem or OpenPLC is not running or Modbus server on OpenPLC is disabled (it comes enabled by default, so if you didn’t disabled it yourself it is probably enabled)
Reply 0 0
Reply