Introduction to Industrial Automation


A.3.1   Negative  Numbers



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

A.3.1   Negative  Numbers

The CPU of various PLCs process the analog values in a binary form only. Analog input modules 

convert the analog process signal into digital form, and analog output modules convert the digital 

output value into an analog signal. The representation of a digitized analog value depends on the 

number of used bits (resolution), which has to include both positive and negative numbers. In the 

decimal arithmetic system, negative or positive numbers are denoted with a minus or plus sign 

in front of them, which means that each number has two parts: the sign that is a symbol and the 

magnitude. Therefore, this method of digitized value representation is not applicable in a digital 

device like the PLC.

The simplest method to represent a negative number as a binary number is to use an extra digit, 

called a “sign bit”, which usually is the fifteenth bit (MSB) for a 16-bit resolution. If the sign bit is 

0 (1), this means that the number is positive (negative), such as the signed binary numbers shown 

i
A second method for the representation of negative numbers in a digital device is to use 

the complement of a binary number, and particularly the one’s complement or two’s comple-

ment. When a binary number, has the value 1 the complement is 0 and vice versa, that is called 

the one’s complement. For example, the one’s complement of the binary number 0110 is 1001. 

Binary number

Decimal number

1 1 1

1 1 1 1


2

0

10



239

119 Remainder

1

59

Remainder



1

29

Remainder



1

14

Remainder



1

7

Remainder



0

3

Remainder



1

1

0



Remainder

1

Remainder



1

2

119



2

59

2



29

2

14



2

7

2



3

2

1



2


Download 43,9 Mb.

Do'stlaringiz bilan baham:
1   ...   410   411   412   413   414   415   416   417   ...   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