rui_silva
Hello, everyone! I was wondering if anyone could help me.
 
I have a project in the openPLC editor on windows and I have the runtime on a virtual machine on Linux. I wanted to communicate between the two using the editor's Live debug remote PLC. To do this, I uploaded the .st file to the runtime and ran it with "Start PLC". However, when I try to connect with Live debug remote PLC, it gives the following error:
 
[203128%2F8543886%2Fmceclip0]
 
The program in the editor with the variable locations:
 
[203128%2F8543887%2Fmceclip0]
 
The program at runtime in the virtual machine:
 
[203128%2F8543888%2Fmceclip0]
 
I've tried creating a simpler program, just with an input that triggers an output, but the result was the same. Additionally, I've tried creating a modbus slave and using a program that simulates a master, but it doesn't work either.
Reply 1 0
Yohanan
I had the same problem.
OpenPLC Run Time connected with ScadaBR (example), do not change the input or output on "Monitoring"
Hope someone can help
Reply 1 0
rui_silva
In addition, the following error messages appear in the runtime terminal:
 
[203128%2F8543951%2Fblobid0]
Reply 1 0
thiagoralves
Linux and Windows runtime do not support live monitoring yet. Only microcontroller based systems (arduino compatible boards) support live monitoring for now.
Reply 2 0
rui_silva
Linux and Windows runtime do not support live monitoring yet. Only microcontroller based systems (arduino compatible boards) support live monitoring for now.
Oh okay, thanks for the reply! Then it's not possible to communicate with ScadaBR either (using only the editor)?
Reply 1 0
thiagoralves
ScadaBR is a totally different topic. In that case, yes, you can communicate with ScadaBR or any other HMI that uses Modbus, DNP3 or EtherNet/IP (in case of the Windows / Linux runtime).
Reply 1 0
rui_silva
 
ScadaBR is a totally different topic. In that case, yes, you can communicate with ScadaBR or any other HMI that uses Modbus, DNP3 or EtherNet/IP (in case of the Windows / Linux runtime).
Okay, thanks for all your support!
 
Can you help me with something else? I created a simple program, with a start button and an output, that only changes to TRUE if the start is TRUE. I upload it to runtime and made the communication with ScadaBR. Regarding runtime, I created a slave device:
 
[203128%2F8545369%2Fmceclip0]
 
And the Monitoring is like this:
 
[203128%2F8545370%2Fmceclip0]
 
And the connection with ScadaBR was successful: 
 
[203128%2F8545372%2Fmceclip0]
 
 
Passing to ScadaBR, I created a database, with my IP address, and Port number:
 
[203128%2F8545381%2Fmceclip0]
 
 
And added two points, one for the start button and another for the light (output): 
I put the two of them as outputs, because I want to be able to change the value of both of them.
 
[203128%2F8545377%2Fmceclip0]
 
Then I created a graphical representation:
However, it not works how it's supposed to. When I click in the Start button, the Start goes ON but after a few seconds it goes false and the light didn't changed is value.
 
[203128%2F8545378%2Fmceclip0]
 
Another question, if i change a value of a button in ScadaBR, do the value of the same button changes in openPLC runtime? 
Reply 1 0
thiagoralves
Why did you create a slave device? Are you controlling any external hardware? Also, your addresses on ScadsBR are wrong. QX100.1 is Modbus coil 801, and IX100.0 is input status 800. However, on ScadaBR you added two points at the exact same location (coil offset zero). 

One more thing, per definition of the Modbus protocol, you cannot write to input status, only coils. This means you won’t be able to change the value of your Start variable unless you change its location to QX
Reply 2 0
rui_silva
It's working!!
 
The program does what it is supposed to do, as soon as I activate the start button, the light goes ON, simultaneously, the values of the variables at runtime are also updated. 
I deleted the slave device, I thought I needed it to communicate with ScadaBR. Besides, I didn't know that each address corresponded to 8 bits in a Modbus coil.
 
Thanks again, I'm really grateful for your help! 
Reply 0 0
Yohanan
Hi,
Also have a problem with my program.
Im communicating with ScadaBr, and everything works fine except the variables type DWORD.
The values are correct in ScadaBR, but doesnt pass/show on RunTime monitoring.
 
[203128%2F8545981%2Fmceclip0]
 
[203128%2F8545980%2Fmceclip0]
Reply 1 0
rui_silva
I had the same problem with variables of type DWORD.
Reply 0 0
Reply