2
-
42
CHAPTER2 SEQUENCE PROGRAMS
2
3
2.4 D
ata Used in Sequence Progr
ams
2.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.
Table2.4 shows the numeric representations of BIN, HEX, BCD, and DEC (decimal).
Table2.4 Numeric representations of BIN, HEX,BCD,and DEC
DEC (Decimal)
HEX (Hexadecimal)
BIN (Binary)
BCD (Binary-coded decimal)
0
0
0
0
1
1
1
1
2
2
10
10
3
3
11
11
9
9
1001
1001
10
A
1010
1
0000
11
B
1011
1
0001
12
C
1100
1
0010
13
D
1101
1
0011
14
E
1110
1
0100
15
F
1111
1
0101
16
10
1
0000
1
0110
17
11
1
0001
1
0111
47
2F
10
1111
100
0111
32766
7FFE
0111
1111
1111
1110
---
32767
7FFF
0111
1111
1111
1111
---
-32768
8000
1000
0000
0000
0000
1000
0000
0000
0000
-32767
8001
1000
0000
0000
0001
1000
0000
0000
0001
-2
FFFE
1111
1111
1111
1110
---
-1
FFFF
1111
1111
1111
1111
---
Содержание 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: ......