For a 16-bit signed integer, SLC 500 counters can count within th
| For a 16-bit signed integer, SLC 500 counters can count within the range of:
A. -32,767 to +32,768
B. -32,765 to +32,764
C. -32,766 to +32,765
D. -32,768 to +32,767
Please scroll down to see the correct answer and solution guide.
Right Answer is: D
SOLUTION
- 16-bit is a computer hardware device or software program capable of transferring 16 bits of data at a time.
- The signed range of integer values that can be stored in 16-bits is: -2n-1 to 2n-1 – 1
- i.e. -216-1 to 216-1 – 1 = -32,768 to +32,767
While the unsigned range is
0 to 2n – 1
0 to 216 – 1
0 to 65,536
NOTE:
For n-bit signed integer range |
For n-bit unsigned integer range |
[-2n-1 to 2n-1 - 1] -32,768 to +32,767 |
[0 to 2n - 1] 0 to 65,536 |
- SLC 500 series is a series of Allen-Bradley programmable logic controllers that are used for variety of applications.
- SLC 500 series features ladder-logic with a structured text programming.