Just beware of the bits being totally wrong for a small read error.
If you have to use analog, what about pulsing the serial comm's above through the analog signal.
The address could be the analog value = 20mA = Bit 0, 19mA = Bit 1, for a pulse,. Then the next pulse is status, 20mA = ON, 12mA = Off
A better example for an error of -3:
0100000000000001 16385
0011111111111110 16382 Every bit is wrong
If you have to use analog, what about pulsing the serial comm's above through the analog signal.
The address could be the analog value = 20mA = Bit 0, 19mA = Bit 1, for a pulse,. Then the next pulse is status, 20mA = ON, 12mA = Off
A better example for an error of -3:
0100000000000001 16385
0011111111111110 16382 Every bit is wrong