3.8.1
BIN (Binary Code)
(1) Binary code
BIN is a numerical value represented by 0s (OFF) and 1s (ON).
In the decimal code, a number is incremented from 0 to 9, and at this point, a
carry occurs and the number is incremented to 10.
In BIN, 0, 1 are followed by a carry, and the number is incremented to 10 (2 in
decimal).
Table 3.2 indicates the numerical representations of BIN and decimal code.
Table 3.2 Differences between Numerical
Representations of BIN and Decimal Code
DEC (Decimal Code)
BIN (Binary Code)
0
1
2
3
4
5
6
7
8
9
10
11
Numerical values usable in sequence program
0000
0001
Carry
0010
0011
Carry
0100
0101
0110
0111
Carry
1000
1001
1010
1011
3
79