2
-
46
CHAPTER2 SEQUENCE PROGRAMS
2
3
2.4 D
ata Used in Sequence Progr
ams
2.4.2 H
E
X
(Hexadecimal)
2.4.2 HEX (Hexadecimal)
(1) Definition
Hexadecimal (HEX) is a numeral system that represents four binary bits as one digit.
With four binary bits, sixteen different numeric values, 0 to 15, can be represented.
Hexadecimal notation uses 16 symbols to represent numeric values 0 to 15 in one digit, the symbols 0 to 9 to
represent values zero to nine, and AH to FH to represent values ten to fifteen. After a digit reaches FH, the next-
higher digit (to the left) is incremented.
Table2.6 shows the numeric representations in BIN, HEX, and DEC.
(2) Numeric representation in HEX
Each register (such as the data register, link register) in the CPU module consists of 16 bits.
In the 16-bit configuration register, 0 to FFFF
H
can be specified in hexadecimal.
Table2.6 Numeric representations in BIN, HEX, and DEC
DEC (Decimal)
HEX (Hexadecimal)
BIN (Binary)
0
0
0
1
1
1
2
2
10
3
3
11
9
9
1001
10
A
1010
11
B
1011
12
C
1100
13
D
1101
14
E
1110
15
F
1111
16
10
1
0000
17
11
1
0001
47
2F
10
1111
Carry
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......