fabien1506
Hello OpenPLC Community !
 
I tried today to connect my Arduino Nano to an industrial Automation Direct EA9-T8CL touchscreen/HMI.
This is working in Modbus RTU.
 
I am successfully reading the output of the Arduino from the HMI (on the PLC side : output are %QX0.0 to %QX0.7 / and on the HMI side the addresses are : Memory type 0 / Address 1 to 8)
I am also reading an internal counter in integer which is mapped on the PLC side in %QW0 / and on the HMI it is Memory type 4 / address 1
 
I would like to read my PLC inputs in the touchscreen but I was not able to find the address. Do you know where I'm not doing something properly ? Which address should I use for the inputs ?
 
Here is how it is configured in the panel software :
 
01.png02.png03.png'
 
Thank you all !
Fabien
Reply 0 0
thiagoralves
Maybe it would be best to talk to Automation Direct about how this works. Your Arduino inputs are available as Modbus Input Status (function code 02 - sometimes referred to Modbus discrete inputs as well). Check with them how to read Modbus Input Status and you will be good.
Reply 0 0
fabien1506
Hey Thiago,
 
Thanks for your answer.
Got it.
By the way, I forgot to mention that I was able to run ScadaBR and Fuxa on that Arduino Nano, that's why I'm pretty sure there is a config to apply specifically with the Automation Direct touchscreen.
I will ask them.
Thanks again
Reply 0 0
fabien1506
Thiago,
 
Do you have an idea why I can't read the inputs registers with Radzio ?
I can read the PLC outputs and my internal counter, but not the inputs :
Win11_EN-2024-12-24-10-36-12.png
Reply 0 0
thiagoralves
You’re trying to read 10 registers, but the 8-bit Arduino only has 8. See https://autonomylogic.com/docs/2-5-modbus-addressing/
Reply 0 0
fabien1506
Argg, my bad. Thanks Thiago it works now !
Reply 0 0
fabien1506
I found the right registers if this can help someone else in the future.
In the PLC, inputs begin at %IX0.0 / in the HMI/touchscreen the inputs are in the register : Memory type : 1 / Address 1 for the 1st input.
Everything is working perfectly now.
 
Thanks again for your support and Merry Christmas to everyone.
Reply 1 0
Reply