Rockwell-automation 1770-KF2 Data Highway or Highway Plus Interface Mo Uživatelský manuál Strana 140

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 235
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 139
Data Encoding and Addressing
Chapter 6
6-3
Binary Coded Decimal
PC data is often represented in binary coded decimal (BCD) form. In this
system, each group of four bits in a PC word represents one decimal
number between 0 and 9. In this way, each 16-bit word can represent a
BCD value between 0 and 9,999. Figure 6.2 shows the BCD
representation of the decimal number 239.
Figure 6.2
BCD
Representation of Decimal 239
001000111001
239
10241
0 x 2
3
= 0
0 x 2
2
= 0
1 x 2
1
= 2
0 x 2
0
= 0
0 x 2
3
= 0
0 x 2
2
= 0
1 x 2
1
= 2
1 x 2
0
= 1
1 x 2
3
= 8
0 x 2
2
= 0
0 x 2
1
= 0
1 x 2
0
= 1
2
3
9
10
Zobrazit stránku 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 234 235

Komentáře k této Příručce

Žádné komentáře