Appendix
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
506
Voltages from -10…10 VDC
The hexadecimal/binary values for the negative value range cannot easily be converted into deci-
mal values, because the values are coded as two’s complement.
All numerical values from 000
hex
… 7FF
hex
represent positive values when coded as two’s comple-
ment. Values in this range can easily be converted into decimal values. This is also relevant for binary
numbers in which the most significant bit (bit 12) is ”0”.
All numerical values from 800
hex
…FFFF
hex
represent negative values when coded as two’s comple-
ment. This is also relevant for binary numbers in which the most significant bit (bit 12) is ”1”. Please
see Example of the conversion of negative numerical value, s. S. 496.
The voltage value can now be calculated by means of the following equation:
For positive values 0 …10 VDC:
The value range:
0 V…10 V
is displayed as follows:
000
hex
…7FF
hex
(decimal: 0…2047)
For negative voltage values -10 …10 VDC:
The value range:
-10 V…-0.0049 V
is displayed as follows:
800
hex
…7FFF
hex
(decimal: -2048…-1)
voltage value = 0.004885 V × decimal value
voltage value = 0.004883 V × decimal value