sstock
I've implemented both Binary Inputs (Group 1) and Analog Inputs (Group 30) in my OpenPLC program on Raspberry Pi OS. I'm using Ignition on Windows as my Server. I can successfully read g1v1i0 through g1v1i7 and g30v2i0 through g30v2i7, but for any higher index I receive a reading of "Bad" in Ignition. Anyone have any thoughts on what I may be doing wrong? Thanks!
Reply 0 0
thiagoralves
DNP3 on OpenPLC is quite experimental, and the code needs to be refactored. There is a big chance it is not working properly. This is the file that handles all the DNP3 logic if you want to take a look: https://github.com/thiagoralves/OpenPLC_v3/blob/master/webserver/core/dnp3.cpp
Reply 0 0
sstock
Thank you! Reviewing the dnp3.cpp code did the trick. The problem was not in the code, but the code pointed me to "database_size" in the dnp3.cfg file, which was set to 8. This was my issue. Thanks, again!
Reply 0 0
Reply