17: USER COMMUNICATION INSTRUCTIONS
OPENNET CONTROLLER USER’S MANUAL 17-19
BCC Calculation Formula
BCC calculation formula can be selected from XOR (exclusive OR) or ADD (addition) operation.
Example: Incoming data consists of 41h, 42h, 43h, 44h, and 45h.
(1) BCC Calculation Formula = XOR
41h ⊕ 42h ⊕ 43h ⊕ 44h ⊕ 45h = 41h
(2) BCC Calculation Formula = ADD
41h + 42h + 43h + 44h + 45h = 14Fh → 4Fh (Only the last 1 or 2 digits are used as BCC.)
Conversion Type
The BCC calculation result can be converted or not according to the designated conversion type as described below:
Example: BCC calculation result is 0041h.
(1) Binary to ASCII conversion
(2) No conversion
BCC Digits (Bytes)
The quantity of digits (bytes) of the BCC code can be selected from 1 or 2.
Example:
0041h
Binary to ASCII conversion
“4”
(34h)
“1”
(31h)
2 digits
0041h
No conversion
NUL
(00h)
“A”
(41h)
2 digits
(1) BCC digits = 2
“4”
(34h)
“1”
(31h)
“4”
(34h)
“1”
(31h)
(2) BCC digits = 1
“4”
(34h)
“1”
(31h)
“1”
(31h)
Lower digit
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com