User manual
RS232-ADC16/24
5.1 LRC calculation
The packet LRC is the two's complement of the sum over the packet's
parameter and command bytes.
LRC = -((∑data
n
) + command); with data
n
as binary byte values of the packet's
parameter list and command as binary value.
The correct LRC for the sample request above would have been 0xF8.
In regard to this including the LRC of a received packet itself into calculation will
result in a sum equal to 0, otherwise a transmission error has occured.
Note : Each binary data byte is transmitted as two HEX digits which have to be
transformed into binary form before adding them.
Page 7/22