Introduction to Industrial Automation


A.5   Octal Arithmetic System



Download 43,9 Mb.
Pdf ko'rish
bet416/440
Sana01.01.2022
Hajmi43,9 Mb.
#294756
1   ...   412   413   414   415   416   417   418   419   ...   440
Bog'liq
Introduction to Industrial Automation by Stamatios Manesis, George

A.5   Octal Arithmetic System

The octal arithmetic system is used by some manufacturers of PLCs, such as Allen-Bradley and 

Siemens, for addressing their digital inputs and outputs. The octal system uses the numbers 0 

through 7 and hence has a base 8. The position weighting values of the octal system are derived 

in a similar way as that applied to the binary and decimal systems. Starting from the first right 

position with value the null power of 8 (8

0

), the value at each next x position increases by the x 



BCD number

Position value

Position value as

power of 2

Multiplication of BCD

digit and position value

Decimal number

0

0



1

0

0



1

0

1



1

0

0



1

8

2



4

1

8



2

4

1



8

2

4



1

2

3



2

1

2



2

2

0



2

3

2



1

2

2



2

0

2



3

2

1



2

2

2



0

0

0 0



4

+

0



2 1

0

+



8

0 1


0

+

10



4

3

9

Figure A.6  Conversion of a BCD number to a decimal.


414

 



  Appendix A

power of 8. Figure A.7 shows an example of converting an octal number to an equivalent decimal 

number and the three first-position values.

The conversion of a decimal number to an octal number is performed by successive divisions 

of the decimal number by 8 and denoting the remainders as digits of the octal number. The first 

remainder corresponds to the least-significant digit of the octal number. An example of such a 

conversion procedure is the following:

215/8

= 26 with remainder 7



26/8

= 3 with remainder 2

3/8

= 0 with remainder 3, therefore the octal number is 327



8

.

Since the largest one-digit number of the octal system is 7, three binary bits are enough to repre-



sent each of the eight digits of the octal system. The conversion of an octal number to an equiva-

lent binary number is performed by replacing each octal digit by its 3-bit binary equivalent, as 

shown in Figure A.8.

The octal arithmetic system is the most user-friendly, since it is harmonized to the 8-bit general 

digital structure, independently of the 8-bit or 16-bit or 64-bit structure of memories and micro-

processors. The manufacturers of large industrial PLCs use the octal arithmetic system to address 

words and bit locations in their memory as also digital I/O modules usually in groups of 4, 8, and 

16 inputs/outputs. Therefore, is easy for a user to know an individual single bit of the memory to 

which digital input or output corresponds among the various I/O modules.

Octal number

Position value

Position value as

power of 8

Multiplication of octal

digit and position value

Decimal number

2 5 7

64 8 1


8

2

8



1

8

0



8

10

12



8

40

7



+

175


Download 43,9 Mb.

Do'stlaringiz bilan baham:
1   ...   412   413   414   415   416   417   418   419   ...   440




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish