B
:
B
i
n
a
r
y
t
o
B
:
B
i
n
a
r
y
t
Many of the unit's configuration procedures require you to assemble a series of
options (represented as bits) into a complete command (represented as a byte).
The resulting binary value must be converted to a hexadecimal representation.
Use this chapter to learn to convert binary values to hexadecimals or to look up
hexadecimal values in the tables of configuration options. The tables include:
Converting Binary to Hexadecimal
Following are two simple ways to convert binary numbers to hexadecimal notation.
Conversion Table
Hexadecimal digits have values ranging from 0 to F, which are represented as 0-9, A
(for 10), B (for 11), etc. To convert a binary value (for example, 0100 1100) to a
hexadecimal representation, treat the upper and lower four bits separately to produce
a two-digit hexadecimal number (in this case, 4C). Use the following table to convert
values from binary to hexadecimal.
H
e
x
a
d
e
c
i
o
H
e
x
a
d
e
c
i
Connect Mode Options
Disconnect Mode Options
Flush Mode (Buffer Flushing) Options
Interface Mode Options
Pack Control Options
Decimal Binary Hex
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
m
a
l
C
o
n
v
e
r
m
a
l
C
o
n
v
e
0000
0
0001
1
0010
2
0011
3
0100
4
0101
5
0110
6
0111
7
1000
8
1001
9
1010
A
1011
B
1100
C
1101
D
1110
E
1111
F
55
s
i
o
n
s
r
s
i
o
n
s
Need help?
Do you have a question about the UDS200 and is the answer not in the manual?