Maiza
Hello everyone, everything good?
 
I'm taking tests for my Course Completion Project. I'm looking to implement OpenPLC and the VTScada supervisory software.
 
I did the process in OpenPLC Editor and OpenPLC Runtime.

It is connected and working, via monitoring. I used the example that is posted here on the PLC forum itself.
It turns out that now I want to integrate the program with VTScada. And it needs the address of the variables.
What would be the address for my tags on VTScada?

LED Address:
Discrete output: %QX1.0
Slave output: %IX101.0
 
B1 address:
Discrete input: %IX1.1
Slave input: %IX101.2
 
B2 address:
Discrete input: %IX1.2
Slave input: %IX101.2
 
The address to be placed in VTScada is Modbus, but I need to know the address for these parameters placed in OpenEditor PLC and Runtime
 
 
Below are images:
OpenPLC Editor:
[203128%2F8532172%2Fmceclip0]
 
OpenPLC Runtime:
[203128%2F8532173%2Fmceclip0]
 
[203128%2F8532174%2Fmceclip0]
 
 
Modbus addressing on the OpenPLC website and addressing on VTScada. I know it starts at 800, so in this case, I put 811 for "PB1" which would be "%IX101.0" + 1 which would be the Offset ("810 + 1 = 811"). The parameter is probably wrong with the Modbus address. Can someone explain it to me and then tell me the correct address for the address I entered in the CLP?
[203128%2F8532582%2Fmceclip0]
 
[203128%2F8532591%2Fmceclip0]
 
[203128%2F8532176%2Fmceclip0]
Reply 0 0
thiagoralves
From documentation: Discrete output coil and discrete input contact binding are based on the the two-part PLC address, without unused Modbus data addresses. The least-significant part of the PLC address has a range 0 to 7, therefore, a little math is needed to translate between PLC addresses and Modbus data addresses. 
 
So, to convert %IX101.0 to modbus input status register you must calculate:
 
(101 * 8) + (0) = 808
 
Similarly, %IX101.2 will be:
 
(101 * 8) + (2) = 810
Reply 0 0
Maiza
I did it here but it still didn't work. Running at runtime and VTScada no. The addresses were:
LED = %QX101.0 = (101 x 8) + (0) = 808
PB2 = %IX101.2 = (101 x 8) + (2) = 810
PB1 = %IX101.1 = (101 x 8) + (1) = 809
The state on the button is not changing, in VTScada, in this case.
[203128%2F8533034%2Fmceclip0]
Reply 0 0
thiagoralves
Most likely you have a connection problem between your Scada software and OpenPLC. Try using a simpler software like Radzio Modbus to explore register contents.
Reply 0 0
Maiza
I did the test here with the Radzio Modbus. It worked! But now for VTScada? How would it be?
LED = %QX1.0 = %QX101.0 = (101x8) + 1 = 810?
or
LED = %QX1.0 = (1x8) + 1 = 9?
 
[203128%2F8535502%2Fmceclip0]
 
No VTScada:
 
[203128%2F8535503%2Fmceclip0]
Reply 0 0
Maiza
Reply 0 0
thiagoralves
QX1.0 = Modbus coil 8
Reply 0 0
Reply