Negative decimal values – Rockwell Automation 1747-PT1, D1747NP002 Hand-Held Terminal User Manual
Page 450

Appendix B
Number Systems, Hex Mask
B–2
Other examples:
16 bit pattern = 0000 1001 0000 1110
2
=
2
11
+ 2
8
+ 2
3
+ 2
2
+ 2
1
= 2048
+
256
+
8
+
4
+
2
= 2318
16 bit pattern = 0010 0011 0010 1000
2
=
2
13
+ 2
9
+ 2
8
+ 2
5
+ 2
3
= 8192
+
512
+
256
+
32
+
8
= 9000
Negative Decimal Values
The 2s complement notation is used. The far left position is always 1 for
negative values. The equivalent decimal value of the binary number is
obtained by subtracting the value of the far left position, 32768, from the
sum of the values of the other positions. In the figure below all positions are
1, and the value is 32767 – 32768 = –1.
1x2
14
= 16384
1x2
13
= 8192
1x2
12
= 4096
1x2
11
= 2048
1x2
10
= 1024
1x2
9
= 512
1x2
8
= 256
1x2
7
= 128
1x2
6
= 64
1x2
5
= 32
1x2
4
= 16
1x2
3
= 8
1x2
2
= 4
1x2
1
= 2
1x2
0
= 1
1
1
1 1
1
1
1 1
1
1
1 1
1
1
1 1
16384
8192
4096
2048
1024
512
256
128
64
32
16
8
4
2
1
32767
1x2
15
= 32768
This position is always 1 for negative numbers.
+
The negative binary number may be converted to decimal as follows:
16 bit pattern = 1111111111111111
2
=
( 2
14
+ 2
13
+ 2
12
+ 2
11
+ 2
10
+ 2
9
+ 2
8
+ 2
7
+ 2
6
+ 2
5
+ 2
4
+ 2
3
+ 2
2
+ 2
1
+ 2
0
) – 2
15
= ( 16384
+
8192
+
4096
+
2048
+
1024
+
512
+
256
+
128
+
64
+
32
+
16
+
8
+
4
+
2
+
0 )
–
32768
=
32767
–
32768
=
–1
- 20P PowerFlex DC Drive - Frame D Bimetal Thermostat (10 pages)
- 1336S_F_T_E_R F Frame Snubber Resistor Repl. (6 pages)
- 22-COMM PowerFlex 4-Class DSI (Drive Serial Interface) Network Communication Adapter (4 pages)
- 8-545 Plug In Solid State Relay (2 pages)
- 20-HIM-B1 PowerFlex 7-Class HIM Bezel (DPI) (4 pages)
- 100 Contactors with DC Coil (1 page)
- 100 Contactors with DC Coil (2 pages)
- 20P PowerFlex DC Drive - Frame D Switching Power Supply Circuit Board (6 pages)
- 140G-MTFx_MTHx_MTIx_MTKx Trip Unit Installation-140G-M (6 pages)
- 45BRD Analog Laser Sensor (4 pages)
- 20D Multi-Device Interface Option Board for PowerFlex 700S Drives (20 pages)
- 56RF RFID 18 mm Cylindrical Transceiver (2 pages)
- 42KC Miniature Rectangular: 5V DC Version (2 pages)
- 20P PowerFlex DC Drive - Frame A Switching Power Supply Circuit Board (16 pages)
- 21P-MISC-A-TP-2 Transition Tube Kit #C19-6/7 For PowerFlex 755 w/OEM Liquid Cooling Fr 6/7 Drive (2 pages)
- 42BT Background Suppression Sensor (3 pages)
- 42CB High Speed 18mm Cylindrical (4 pages)
- 140EX-JE2_JE3 Molded Case Circuit Breaker (4 pages)
- 140G-K-EAM1A Early Make Aux Contact for Rotary Handle Oper Mech-140G-K (1 page)
- 140G-K-EAM1A Early Make Aux Contact for Rotary Handle Oper Mech-140G-K (3 pages)
- 20-HIM-A6 PowerFlex (Human Interface Module) (74 pages)
- 42CF General Purpose 12mm Cylindrical (4 pages)
- 20D PowerFlex 700S Phase II Drive Frames 1...6 (80 pages)
- 140EX-HE1_HE2 Molded Case Circuit Breaker (6 pages)
- 140EX-HE1_HE2 Molded Case Circuit Breaker (4 pages)
- 20B PowerFlex 700 Custom Firmware - Pump Off (12 pages)
- 20-WIM-N4S DPI Wireless Interface Module (92 pages)
- 140U H-Frame Circuit Breaker Fixed and Adjustable Thermal Trip (7 pages)
- 140U H-Frame Circuit Breaker Fixed and Adjustable Thermal Trip (2 pages)
- 60-2619, 42JS Swivel/Tilt Mounting Bracket (1 page)
- 22A PowerFlex 4/40/400 Flange Mount (4 pages)
- 45MLA Controller Installation Instructions (16 pages)
- 20P PowerFlex DC Drive - Cooling Fan for Frame A Drives Above 73A at 230V 460V AC (6 pages)
- 42JS Series 7000 to 42JS VisiSight Replacement Kit (2 pages)
- 22A PowerFlex 4-Class HIM Bezel (DSI) (4 pages)
- 42CS Stainless Steel Photoelectric Sensors (4 pages)
- 20L-LL PowerFlex 700L Liquid-to-Liquid Heat Exchanger (40 pages)
- 20P PowerFlex DC Drive - Frame B SCR Modules (20 pages)
- 22B PowerFlex 40 Quick Start FRN 5.xx - 6.xx (161 pages)
- 22B PowerFlex 40 Quick Start FRN 5.xx - 6.xx (22 pages)
- 22F PowerFlex 4M Input RFI Filters (2 pages)
- 45LFM Capacitive Label Sensor (4 pages)
- 140G-Rx Installation Instruction-140G-R (2 pages)
- 140G-Rx Installation Instruction-140G-R (29 pages)
- 22C PowerFlex 400 AC Drive Quick Start - FRN 1-4.xx (28 pages)