I just recently bought a RpiPLC 58+ with 16 analog inputs. And I am fighting with two problems.
1. When I'm trying to read an analog inputs from python code, using your python examples from GitHub (https://github.com/Industrial-Shields/rpiplc-python3-lib), it return me an error like this:
pi@raspberrypi:~/rpiplc-python3-lib $ python3 test1.py
i2c_write: Remote I/O error
i2c_write: invalid len (4294967295 != 3)
The I0.12 is reading : 0
And the sample code which I ran is this:
from rpiplc_lib import rpiplc
read_value = rpiplc.analog_read("I0.12")
print("The I0.12 is reading : ", read_value)
if __name__ == "__main__":
If I am missing something please help me!
Another problem is about digital outputs setting, when I run the same code as above, and the command is to turn on the Q0.0 output, strangely it turn on the Q2.2 output, and this "rule" is available for all the outputs, I mean none of the outputs are synchronize with python scripts.
Again, if I'm missing something, please give me some hints.
Have a nice day!