XPress™ DR Industrial Device Server User Guide 95
F: Binary to Hex Conversion
Many of the device server’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.
Converting Binary to Hexadecimal
The following are two simple ways to convert binary numbers to hexadecimals.
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, 0010 0011) to a hexadecimal representation,
the upper and lower four bits are treated separately, resulting in a two-digit hexadecimal number
(in this case, 4C).
Use the following table to convert values from binary to hexadecimal.
Table F-1 Binary to Hexadecimal Conversion Table
Decimal Binary Hex
Scientific Calculator
Another simple way to convert binary to hexadecimals is to use a scientific calculator, such as the
one available on Windows’ operating systems. For example:
1. On the Windows’ Start menu, click Programs
Accessories
Calculator.
2. On the View menu, select Scientific. The scientific calculator displays.
3. Select Bin (Binary), and type the number to convert.