Positive Decimal Values - Allen-Bradley 1746-NIO4I User Manual

4-channel analog i/o modules
Table of Contents

Advertisement

1
Two's Complement Binary Numbers
The SLC 500 processor memory stores 16-bit binary numbers. Two's
complement binary is used when performing mathematical
calculations internal to the processor. Analog input values from the
analog modules are returned to the processor in 16-bit two's
complement binary format. For positive numbers, the binary notation
and two's complement binary notation are identical.
As indicated in the figure on the next page, each position in the
number has a decimal value, beginning at the right with 2
ending at the left with 2
processor memory. A 0 indicates a value of 0; a 1 indicates the
decimal value of the position. The equivalent decimal value of the
binary number is the sum of the position values.

Positive Decimal Values

The far left position is always 0 for positive values. As indicated in the
figure on the next page, this limits the maximum positive decimal
value to 32767 (all positions are 1 except the far left position). For
example:
11
8
0000 1001 0000 1110 = 2
+2
+2
= 2048+256+8+4+2 = 2318
13
9
0010 0011 0010 1000 = 2
+2
+2
= 8192+512+256+32+8 = 9000
15
. Each position can be 0 or 1 in the
3
2
1
+2
+2
8
5
3
+2
+2
Publication 1746-UM005B-EN-P - June 2004
B
Appendix
0
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Slc 5001746-nio4v1746-no4i1746-ni41746-no4v

Table of Contents