13
Programming Concepts Section 1-1
1-1-6 Data Formats
The following table shows the data formats that the CP Series can handle.
Data type Data format Decimal 4-digit
hexadecimal
Unsigned
binary
0 to
65535
0000 to FFFF
Signed
binary
0 to
–32768
0 to
+32767
Negative:
8000 to FFFF
Positive: 0000
to 7FFF
BCD
(binary
coded dec-
imal)
0 to 9999 0000 to 9999
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
2
15
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
3
2
2
2
1
2
0
3276816384 81924092 2048 1024 512 256 128 64 12 16 8 4 2
1
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
Decimal
Hex
Binary
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
2
15
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
3
2
2
2
1
2
0
3276816384 81924092 2048 1024 512 256 128 64 12 16 8 4 2
1
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
Binary
Decimal
Hex
Si