Closed dnviti closed 5 years ago
After a short period of readings signal from plc, the value of reading goes up to 4096, instead I'm expecting only 0 and 1.
Sorry I don't really understand
I do not neither. Ported the software to Python, no problem.
4096 is 0010 000 in binary, so actually you are receiving a 1 on the 6th bit. It's probably a bitmapped register.
After a short period of readings signal from plc, the value of reading goes up to 4096, instead I'm expecting only 0 and 1.