492
Appendix 4 Data Used in Sequence Programs
The CPU module represents numeric and alphabetic data using two symbols (states): 0 (off) and 1 (on).
Data represented using these two symbols is called binary number (BIN).
The CPU module can also use hexadecimal (HEX) (each hexadecimal digit represents four binary bits), binary-coded
decimal (BCD), or real numbers.
The following table lists the numeric representations of BIN, HEX, BCD, and DEC (decimal).
BIN (Binary) DEC (Decimal) HEX (Hexadecimal) BCD (Binary-coded decimal)
00 0 0
11 1 1
10 2 2 10
11 3 3 11
•4 4 •
•5 5 •
•6 6 •
•7 7 •
•8 8 •
1001 9 9 1001
1010 10 A 1 0000
1011 11 B 1 0001
1100 12 C 1 0010
1101 13 D 1 0011
1110 14 E 1 0100
1111 15 F 1 0101
1 0000 16 10 1 0110
1 0001 17 11 1 0111
•• • • • •
•• • • • •
•• • • • •
10 1111 47 2F 100 0111
•• • •
•• • •
•• • •
0111 1111 1111 1110 32766 7FFE -
0111 1111 1111 1111 32767 7FFF -
1000 0000 0000 0000 -32768 8000 1000 0000 0000 0000
1000 0000 0000 0001 -32767 8001 1000 0000 0000 0001
•••• • •
•••• • •
•••• • •
1111 1111 1111 1110 -2 FFFE -
1111 1111 1111 1111 -1 FFFF -