supremesports
Hi,

I've been playing around all day with the AdvancedHMI and I've been able to do a lot of stuff including sending date and time to the OpenPLC. I'm able to control a lamp post with sunset time (calculated in the OpenPLC) and close at desired time. 

What I'm not able to do right now is to get a bit sent properly to the PLC. If I program a bit in AdvancedHMI at address 00041, I see it in Radzio at 00040 which is normal due to zero-based addressing. BUT, it's not doing anything into the OpenPLC. Is there anything I don't understand?

Configurations:
AdvancedHMI : 00041
OpenPLC : %QX40.0, but I tried %QX40 and %QX40.1, and all those configurations for %QX39 and %QX41

Thanks in advanced for your help
Reply 0 0
supremesports
I'm apparently not able to read a bit either... It's able to read itself, for example if I write to 00041 and a pilot light is plugged to 00041, it works. If I try to read a coil that is ON on another device (%QX100.0 which is a coil on an arduino device and ON right now), it doesn't set the pilot light in AdvancedHMI.
Reply 0 0
supremesports
Never mind, I just figured it out. There's no such thing as 00041.0 and 00041.1 etc. in the modbus addresses, so %QX40.0 is at address 000321 (40x8 + 1 = 321) 

Sorry about that 🙂 Hope this post will help others!
Reply 1 0
thiagoralves
I’m glad you were able to find the answer yourself. Addressing on bits can be a little tricky, especially because bits are combined into bytes on OpenPLC (0.0, 0.1, 0.2, and so forth...) and are continuous in Modbus (1, 2, 3...)
Reply 0 0
Reply