BCC
BCC is a horizontal parity check code used to improve the reliability of data
communication. The exclusive OR is executed from the header (
characters of communication data, and the exclusive OR in 8-bit data is
converted to 2-character ASCII code. The sensor head is used to compare the
exclusive OR from the header to final characters of the message received, and
check if the exclusive OR coincides with the transmitted value of the PC. If
the BCC at the time of transmission differs from that after reception, it
indicates that some error has occurred in the message while in transmission.
In the case of omitting BCC calculation, accommodate
the BCC. If data is transmitted with the BCC omitted, the BCC in the
response data will be
BCC Creation Example
Header
End character of
communication data
Ramco National
800-280-6933 | nsales@ramcoi.com
* *
(2AH, 2AH) as well.
% E E # R M D 3
2- character BCC
H25
%
E
H45
E
H45
#
H23
Exclusive logical sum (XOR) of received message is
H52
R
calculated.
M
H4D
D
H44
3
H33
ASCII
H6E
* *
(2AH, 2AH) in
CR
6
E
BCC
BCC
(H)
(L)
6
E
(H36) (H45)
www.panasonicsensors.com
)to final
%