Справочник Пользователя для Mitsubishi Electronics QnUCPU

Скачать
Страница из 630
CHAPTER2 SEQUENCE PROGRAMS
1
2
3
4
5
6
7
8
2.
4  
D
a
ta
 Used i
n
 S
equence Progr
ams
2.
4.
 BI
N (Binary
 Code)
2
 
-
 
35
2.4.1  BIN (Binary Code)
(1) Definition
Binary is a numeral system that represents numeric values using two symbols, 0 (off) and 1 (on)
.
Decimal notation uses the symbols 0 through 9. When the symbols for the first digit are exhausted (a 
digit reaches 9), the next-higher digit (to the left) is incremented, and counting starts over at 0.
In binary notation, only the symbols 0 and 1 are used. After a digit reaches 1, an increment resets it to 
0 and the next digit (to the left) is incremented. (The numeric value becomes 10, which is equal to 2 in 
decimal.)
Table2.3 shows the numeric representations in BIN and DEC.
Table2.3 Numeric representations in BIN and DEC
DEC (Decimal)
BIN (Binary)
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
10
1010
11
1011
Carry
Carry
Carry