MAZEN
Hello

im trying to connect openplc with ScadaBR via modbus tcp using pc . My code is when i turn on start then turn on heater the temperature should increase .
for start i used location %QX0.0.0 and for heater i used %QX0.0.1 and temp %MD5 , all ive put them holding register in data source

. I used same ip address as my computer in ScadaBR
.port 502 is already enabled in openplc

im trying to force values in openplc to see the change in scadabr but nothing changed and also i press on the start and heater button in scadabr in the graphical view in scadabr but nothing changed also.

can someone help me where is my problem exactly , Thanks in Advance


[203128%2F9019776%2Fmceclip0]

[203128%2F9019775%2Fmceclip0]
Reply 0 0
thiagoralves
Address %QX0.0.0 and %QX0.0.1 are not valid addresses. See https://autonomylogic.com/docs/2-3-input-output-and-memory-addressing/
Reply 0 0
MAZEN
Thanks Thiago

i just have another question in openplc im using a real variable %MD3 to display temperature value . when im connecting openplc with ScadaBR it shows the temperature changes in openplc runtime but in ScadaBR it remains 0 . i dont understand why this happens eventhough my configuration is correct ?
[203128%2F9020601%2Fmceclip0]
[203128%2F9020600%2Fmceclip0]

[203128%2F9020599%2Fmceclip0]
Reply 0 0
thiagoralves
Your configuration is not correct. You’re using the wrong address for %MD3. See https://autonomylogic.com/docs/2-5-modbus-addressing/
Reply 0 0
MAZEN
Thanks Thiago
Sorry , i just have another doubt if you can help me with it
I'm trying to create a slider-selector for temperature using server-side script . so , that i can change temperature directly to any value instead of waiting for it gradually increases or decreases . Actually i was referring to your video about how to connect to hmi , but unfortunately it doesnt work for me it gives me point isn't settable .

is it because of logical problems in my coding in openplceditor?
Reply 0 0
thiagoralves
You cannot change the temperature value. That’s an input. You cannot write to inputs. The value of an input is whatever the input read from the sensor
Reply 0 0
Mazen mohd
I know that we can't write to inputs . Actually, my logic is when I press heater ON temp increase and vice versa . The temperature is a real variable
Reply 0 0
thiagoralves
Oh, you're using a memory location for the temperature right? In that case yes, you can write to it, but beware that the PLC will also try to write to it unless you remove that logic from your program. What ScadaBR is complaining about is just that you didn't select the "Settable" checkbox on your point detail.
Reply 0 0
Reply