1st edition, 17-09-2020
7000.05070, 1st edition, 17-09-2020
7000.05070
Binary numbers with and without sign
27
6
Binary numbers with and without sign
Binary numbers can be interpreted in a number range without sign (unsigned) and with
sign (signed):
Unsigned
With 28 bit (16 bit mul 12 bit singleturn) there is a number range from 0 to 2
28
– 1.
Fig. 17: Number range without sign (unsigned)
Signed
The bit with the highest weighting (MSB) can be evaluated as sign. In the AEMTL-12/16 L
this is bit 27:
Bit 27 = 0: positive sign
Bit 27 = 1: negative sign
Fig. 18: Number range with sign (signed)
Preset
UL
LL
Maximum movement distance
Limited movement distance
0
2
28
– 1 = 268 435 455
Preset
UL
LL
Maximum movement distance
Limited movement distance
2
27
(Bit 27 = 1) *
–134 217 728
– 1 =
=
2
27
(Bit 27 = 0) *
134 217 727