SlideShare a Scribd company logo
1 of 58
Chapter 3
MECH1500
Decimal System
3.1
MECH1500
The radix or base of a number system determines
the total number of different symbols or digits
used by that system.
The decimal system has a base of 10 with the digits 0
through 9 being used.
The value of a
decimal number
depends on the
digits that make
up the number
and the place
value of each
digit.
MECH1500
Binary System
3.2
MECH1500
The binary system has a base of 2 and the only
allowable digits are 0 and 1.
With digital circuits it is easy to distinguish
between two voltage levels, which can be related to
the binary digits 1 and 0.
MECH1500
Since the binary system uses only two digits,
each position of a binary number can go through
only two changes, and then a 1 is carried to the
immediate left position.
All numbering systems start at zero.
MECH1500
NUMBER SYSTEMS
Decimal (base 10)
Binary (base 2)
Octal (base 8)
Hexadecimal (base 16)
MECH1500
Converting a binary number to a decimal number.
MECH1500
Each digit of a binary number is known as a bit.
Each word is capable of storing data in the form of bits.
A group of 8 bits is a byte.
The least significant bit (LSB) represents the smallest
value and the most significant bit (MSB) represents the
largest value.
MECH1500
PLC memory is organized using bytes, single
words, or double words.
If the memory size is
1 K word, it can
store 1024 words or
16,384 (1024 x 16)
bits of information
using 16-bit words,
MECH1500
Converting a decimal number to a binary number.
MECH1500
Computer memory is a series of binary 1s and 0s.
Output status file made up of single bits grouped into
16-bit words.
One 16-bit output file word is reserved for each slot in
the chassis.
Each bit represents the ON or OFF state of one output
point.
MECH1500
Negative Numbers
3.3
MECH1500
Binary systems can
not use positive and
negative symbols to
represent the polarity
of a number.
Signed Binary Numbers
In signed binary
numbers, the left-most
bit is the equivalent of a
+/- sign. "0" indicates
that the number is
positive, "1" indicates
negative.
MECH1500
Another method of expressing a negative number
is by using the complement of a binary number.
To complement a binary number, change all the
1s to 0s and all the 0s to 1s. This is known as the
1’s complement form of a binary number.
MECH1500
2’s complement
is the binary
number that
results when
1 is added to the
1’s complement.
0 sign bit indicates
a positive number.
1 sign bit indicates
a negative number.
MECH1500
Octal System
3.4
MECH1500
The octal
numbering
system is a
base 8 system Numbers
8 and 9
not allowed
MECH1500
The octal numbering
system is used because
8 data bits make up a
byte of information
that can be addressed.
PLC-5
controllers use
octal-based
I/O addressing.
MECH1500
Octal is a convenient means of handling
large binary numbers.
One octal digit can
be used to express
three binary digits.
Converting an octal number
to a decimal number.
MECH1500
Octal converts easily to binary equivalents.
The octal number 462 is converted to its binary
equivalent by assembling the 3-bit groups.
MECH1500
Hexadecimal
System
3.5
MECH1500
The hexadecimal (hex) system is a base 16 system.
Letters A to
F are used
to represent
decimal
numbers
10 to 15.
MECH1500
The hex numbering system is used in PLCs
because a word of data consists of 16 data bits.
Hexadecimal digits in the columns are multiplied by the
base 16 weight, depending on digit significance.
Converting hexadecimal to decimal.
MECH1500
Converting decimal to hexadecimal.
Conversion is accomplished by writing the 4-bit
binary equivalent of the hex digit for each position.
MECH1500
Binary Coded
Decimal System
3.6
MECH1500
The binary
coded decimal
(BCD) system
uses 4 bits to
represent each
decimal digit.
The 4 bits used
are the binary
equivalents of the
numbers from
0 to 9.
MECH1500
The BCD representation of a decimal number is obtained
by replacing each decimal digit by its BCD equivalent.
MECH1500
To distinguish the BCD numbering system from
a binary system, a BCD designation is placed to
the right of the units digit.
Decimal 4910 expressed is binary is 1100012
Decimal 4910 expressed in BCD is 01001001BCD
MECH1500
A thumbwheel switch is an input device that
makes use of the BCD numbering system.
The input module
attached to the
thumbwheel has one
connection for each
bit’s weighted value.
Selected digit of
decimal 8 outputs the
equivalent 4 bits of
BCD data – 1000BCD
MECH1500
Single Digit Thumbwheel Switch Simulation
Decimal Settings Binary Input
MECH1500
Double Digit Thumbwheel Switch Simulation
Decimal Settings Binary Input
MECH1500
PLCs contain number conversion functions.
The Convert-to-BCD instruction will convert the binary
bit pattern at the source address, N7:23, into a BCD
bit pattern of the same decimal value and store it at the
destination address, O:20.
MECH1500
Many PLCs allow you to change the format of
the data that the data monitor displays.
The change radix function found on Allen-Bradley
controllers allows you to change the display format of
data to binary, octal, decimal, or hexadecimal.
MECH1500
Change Radix Function Simulation
MECH1500
Gray Code
3.7
MECH1500
The Gray code is set up so that as we progress
from one number to the next, only one bit changes.
Each position does not
have a definite weight.
This can be quite
confusing for counting
circuits, but it is ideal
for encoder circuits.
MECH1500
Gray codes are used
with position encoders
for accurate control of
the motion of robots,
machine tools, and
servomechanisms.
Since only one bit changes at a time, the Gray code is
considered to be an error-minimizing code.
MECH1500
Optical encoder disk that uses a 4-bit Gray code.
The encoder disk is attached to a rotating shaft and
outputs a digital Gray code signal that is used to
determine the position of the shaft.
MECH1500
ASCII Code
3.8
MECH1500
ASCII stands for American Standard Code for
Information Interchange.
It is an
alphanumeric
code because it
includes letters as
well as numbers.
MECH1500
The keystrokes on the keyboard of a computer are
converted directly into ASCII for processing by
the computer.
ASCII input modules convert ASCII code input
information from an external device to alphanumeric
information that the PLC can process.
The communication
interfacing is done
through either an
RS-232 or RS-422
protocol.
MECH1500
Parity Bit
3.9
MECH1500
Some PLC communication systems use a binary
bit to check the accuracy of data transmission.
When data are transferred
between PLCs, one of the
binary digits may be
accidentally changed from
a 1 to a 0.
A parity bit is used to detect errors that may occur
while a word is moved.
MECH1500
Parity is a system in which each character
transmitted contains one additional parity bit.
The parity bit may be a 0
or 1, depending on the
number of 1s and 0s in
the character itself.
Odd parity means that the
total number of binary 1 bits
in the character, including the
parity bit, is odd.
Even parity means that the number of binary 1 bits in
the character, including the parity bit, is even.
MECH1500
Binary Arithmetic
3.10
MECH1500
When adding with binary numbers, there are
only four conditions that can occur:
MECH1500
MECH1500
MECH1500
To subtract from larger binary numbers, subtract
column by column, borrowing from the adjacent
column when necessary. When borrowing from
the adjacent column, there are now two digits, i.e., 0
borrow 1 gives 10.
MECH1500
Binary numbers can also be negative. The procedure
for this calculation is identical to that of decimal numbers
because the smaller value is subtracted from the larger
value and a negative sign is placed in front of the result.
MECH1500
There are other methods available for doing subtraction:
1’s complement and 2’s complement.
Using the 1’s complement
When there is a carry at the end of the result, the result
is positive. When there is no carry, then the result is
negative and a minus sign has to be placed in front of it.
MECH1500
When there is a carry at the end of the result, the result
is positive. When there is no carry, then the result is
negative and a minus sign has to be placed in front of it.
MECH1500
For subtraction using the 2’s complement, the 2’s
complement is added instead of subtracting the
numbers. In the result, if the carry is a 1, then the
result is positive; if the carry is a 0, then the result is
negative and requires a minus sign.
MECH1500
MECH1500
When multiplying binary
numbers, there are only
four conditions that can
occur:
MECH1500
The process for dividing one binary number by
another is the same for both binary and decimal
numbers.
MECH1500
PLC data comparison instructions are used to
compare the data stored in two words.
At times, devices may need to
be controlled when they are less than, equal to, or
greater than other data values or set points.
MECH1500

More Related Content

Similar to Decimal, Binary, Octal and Hexadecimal Number Systems

FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...Arti Parab Academics
 
Manoch1raw 160512091436
Manoch1raw 160512091436Manoch1raw 160512091436
Manoch1raw 160512091436marangburu42
 
Computers numbering systems
Computers   numbering systemsComputers   numbering systems
Computers numbering systemssld1950
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number systemAswiniT3
 
Write the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfWrite the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfsales223546
 
IS 139 Lecture 4 - 2015
IS 139 Lecture 4 - 2015IS 139 Lecture 4 - 2015
IS 139 Lecture 4 - 2015Aron Kondoro
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4wajanga
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfshubhangisonawane6
 
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...ARVIND PANDE
 
Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Jumaed
 
Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)SITI SABARIAH SALIHIN
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdfAsthaChaurasia4
 
Computer Oraganizaation.pptx
Computer Oraganizaation.pptxComputer Oraganizaation.pptx
Computer Oraganizaation.pptxbmangesh
 

Similar to Decimal, Binary, Octal and Hexadecimal Number Systems (20)

FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
 
Manoch1raw 160512091436
Manoch1raw 160512091436Manoch1raw 160512091436
Manoch1raw 160512091436
 
Computers numbering systems
Computers   numbering systemsComputers   numbering systems
Computers numbering systems
 
Number system
Number systemNumber system
Number system
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
 
Write the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfWrite the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdf
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
IS 139 Lecture 4 - 2015
IS 139 Lecture 4 - 2015IS 139 Lecture 4 - 2015
IS 139 Lecture 4 - 2015
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
 
Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]
 
Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Computer Number system
Computer Number systemComputer Number system
Computer Number system
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
 
Computer Oraganizaation.pptx
Computer Oraganizaation.pptxComputer Oraganizaation.pptx
Computer Oraganizaation.pptx
 

More from Harshal Vaidya

Chapter 1-Electrical Drives.pptx
Chapter 1-Electrical Drives.pptxChapter 1-Electrical Drives.pptx
Chapter 1-Electrical Drives.pptxHarshal Vaidya
 
Unit 2 - DC-Motor-Drives-pptx.pptx
Unit 2 - DC-Motor-Drives-pptx.pptxUnit 2 - DC-Motor-Drives-pptx.pptx
Unit 2 - DC-Motor-Drives-pptx.pptxHarshal Vaidya
 
presentation_vector_control_of_induction_machines_1462466673_205888.ppt
presentation_vector_control_of_induction_machines_1462466673_205888.pptpresentation_vector_control_of_induction_machines_1462466673_205888.ppt
presentation_vector_control_of_induction_machines_1462466673_205888.pptHarshal Vaidya
 
157270612-Permanent-Magnet-Brushless-DC-Motor.pptx
157270612-Permanent-Magnet-Brushless-DC-Motor.pptx157270612-Permanent-Magnet-Brushless-DC-Motor.pptx
157270612-Permanent-Magnet-Brushless-DC-Motor.pptxHarshal Vaidya
 
235945191-Technology-Management.pptx
235945191-Technology-Management.pptx235945191-Technology-Management.pptx
235945191-Technology-Management.pptxHarshal Vaidya
 
251693632-Extrusion-ppt.ppt
251693632-Extrusion-ppt.ppt251693632-Extrusion-ppt.ppt
251693632-Extrusion-ppt.pptHarshal Vaidya
 

More from Harshal Vaidya (14)

Chapter 1-Electrical Drives.pptx
Chapter 1-Electrical Drives.pptxChapter 1-Electrical Drives.pptx
Chapter 1-Electrical Drives.pptx
 
motor-enclosures.pptx
motor-enclosures.pptxmotor-enclosures.pptx
motor-enclosures.pptx
 
Unit 2 - DC-Motor-Drives-pptx.pptx
Unit 2 - DC-Motor-Drives-pptx.pptxUnit 2 - DC-Motor-Drives-pptx.pptx
Unit 2 - DC-Motor-Drives-pptx.pptx
 
presentation_vector_control_of_induction_machines_1462466673_205888.ppt
presentation_vector_control_of_induction_machines_1462466673_205888.pptpresentation_vector_control_of_induction_machines_1462466673_205888.ppt
presentation_vector_control_of_induction_machines_1462466673_205888.ppt
 
157270612-Permanent-Magnet-Brushless-DC-Motor.pptx
157270612-Permanent-Magnet-Brushless-DC-Motor.pptx157270612-Permanent-Magnet-Brushless-DC-Motor.pptx
157270612-Permanent-Magnet-Brushless-DC-Motor.pptx
 
Slide 1.pptx
Slide 1.pptxSlide 1.pptx
Slide 1.pptx
 
123-converted.pptx
123-converted.pptx123-converted.pptx
123-converted.pptx
 
1564.pptx
1564.pptx1564.pptx
1564.pptx
 
chapter 2 IE.pptx
chapter 2 IE.pptxchapter 2 IE.pptx
chapter 2 IE.pptx
 
Presentation.pptx
Presentation.pptxPresentation.pptx
Presentation.pptx
 
235945191-Technology-Management.pptx
235945191-Technology-Management.pptx235945191-Technology-Management.pptx
235945191-Technology-Management.pptx
 
251693632-Extrusion-ppt.ppt
251693632-Extrusion-ppt.ppt251693632-Extrusion-ppt.ppt
251693632-Extrusion-ppt.ppt
 
12117188.ppt
12117188.ppt12117188.ppt
12117188.ppt
 
12117188.ppt
12117188.ppt12117188.ppt
12117188.ppt
 

Recently uploaded

ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 

Recently uploaded (20)

9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 

Decimal, Binary, Octal and Hexadecimal Number Systems

  • 3. The radix or base of a number system determines the total number of different symbols or digits used by that system. The decimal system has a base of 10 with the digits 0 through 9 being used. The value of a decimal number depends on the digits that make up the number and the place value of each digit. MECH1500
  • 5. The binary system has a base of 2 and the only allowable digits are 0 and 1. With digital circuits it is easy to distinguish between two voltage levels, which can be related to the binary digits 1 and 0. MECH1500
  • 6. Since the binary system uses only two digits, each position of a binary number can go through only two changes, and then a 1 is carried to the immediate left position. All numbering systems start at zero. MECH1500
  • 7. NUMBER SYSTEMS Decimal (base 10) Binary (base 2) Octal (base 8) Hexadecimal (base 16) MECH1500
  • 8. Converting a binary number to a decimal number. MECH1500
  • 9. Each digit of a binary number is known as a bit. Each word is capable of storing data in the form of bits. A group of 8 bits is a byte. The least significant bit (LSB) represents the smallest value and the most significant bit (MSB) represents the largest value. MECH1500
  • 10. PLC memory is organized using bytes, single words, or double words. If the memory size is 1 K word, it can store 1024 words or 16,384 (1024 x 16) bits of information using 16-bit words, MECH1500
  • 11. Converting a decimal number to a binary number. MECH1500
  • 12. Computer memory is a series of binary 1s and 0s. Output status file made up of single bits grouped into 16-bit words. One 16-bit output file word is reserved for each slot in the chassis. Each bit represents the ON or OFF state of one output point. MECH1500
  • 14. Binary systems can not use positive and negative symbols to represent the polarity of a number. Signed Binary Numbers In signed binary numbers, the left-most bit is the equivalent of a +/- sign. "0" indicates that the number is positive, "1" indicates negative. MECH1500
  • 15. Another method of expressing a negative number is by using the complement of a binary number. To complement a binary number, change all the 1s to 0s and all the 0s to 1s. This is known as the 1’s complement form of a binary number. MECH1500
  • 16. 2’s complement is the binary number that results when 1 is added to the 1’s complement. 0 sign bit indicates a positive number. 1 sign bit indicates a negative number. MECH1500
  • 18. The octal numbering system is a base 8 system Numbers 8 and 9 not allowed MECH1500
  • 19. The octal numbering system is used because 8 data bits make up a byte of information that can be addressed. PLC-5 controllers use octal-based I/O addressing. MECH1500
  • 20. Octal is a convenient means of handling large binary numbers. One octal digit can be used to express three binary digits. Converting an octal number to a decimal number. MECH1500
  • 21. Octal converts easily to binary equivalents. The octal number 462 is converted to its binary equivalent by assembling the 3-bit groups. MECH1500
  • 23. The hexadecimal (hex) system is a base 16 system. Letters A to F are used to represent decimal numbers 10 to 15. MECH1500
  • 24. The hex numbering system is used in PLCs because a word of data consists of 16 data bits. Hexadecimal digits in the columns are multiplied by the base 16 weight, depending on digit significance. Converting hexadecimal to decimal. MECH1500
  • 25. Converting decimal to hexadecimal. Conversion is accomplished by writing the 4-bit binary equivalent of the hex digit for each position. MECH1500
  • 27. The binary coded decimal (BCD) system uses 4 bits to represent each decimal digit. The 4 bits used are the binary equivalents of the numbers from 0 to 9. MECH1500
  • 28. The BCD representation of a decimal number is obtained by replacing each decimal digit by its BCD equivalent. MECH1500
  • 29. To distinguish the BCD numbering system from a binary system, a BCD designation is placed to the right of the units digit. Decimal 4910 expressed is binary is 1100012 Decimal 4910 expressed in BCD is 01001001BCD MECH1500
  • 30. A thumbwheel switch is an input device that makes use of the BCD numbering system. The input module attached to the thumbwheel has one connection for each bit’s weighted value. Selected digit of decimal 8 outputs the equivalent 4 bits of BCD data – 1000BCD MECH1500
  • 31. Single Digit Thumbwheel Switch Simulation Decimal Settings Binary Input MECH1500
  • 32. Double Digit Thumbwheel Switch Simulation Decimal Settings Binary Input MECH1500
  • 33. PLCs contain number conversion functions. The Convert-to-BCD instruction will convert the binary bit pattern at the source address, N7:23, into a BCD bit pattern of the same decimal value and store it at the destination address, O:20. MECH1500
  • 34. Many PLCs allow you to change the format of the data that the data monitor displays. The change radix function found on Allen-Bradley controllers allows you to change the display format of data to binary, octal, decimal, or hexadecimal. MECH1500
  • 35. Change Radix Function Simulation MECH1500
  • 37. The Gray code is set up so that as we progress from one number to the next, only one bit changes. Each position does not have a definite weight. This can be quite confusing for counting circuits, but it is ideal for encoder circuits. MECH1500
  • 38. Gray codes are used with position encoders for accurate control of the motion of robots, machine tools, and servomechanisms. Since only one bit changes at a time, the Gray code is considered to be an error-minimizing code. MECH1500
  • 39. Optical encoder disk that uses a 4-bit Gray code. The encoder disk is attached to a rotating shaft and outputs a digital Gray code signal that is used to determine the position of the shaft. MECH1500
  • 41. ASCII stands for American Standard Code for Information Interchange. It is an alphanumeric code because it includes letters as well as numbers. MECH1500
  • 42. The keystrokes on the keyboard of a computer are converted directly into ASCII for processing by the computer. ASCII input modules convert ASCII code input information from an external device to alphanumeric information that the PLC can process. The communication interfacing is done through either an RS-232 or RS-422 protocol. MECH1500
  • 44. Some PLC communication systems use a binary bit to check the accuracy of data transmission. When data are transferred between PLCs, one of the binary digits may be accidentally changed from a 1 to a 0. A parity bit is used to detect errors that may occur while a word is moved. MECH1500
  • 45. Parity is a system in which each character transmitted contains one additional parity bit. The parity bit may be a 0 or 1, depending on the number of 1s and 0s in the character itself. Odd parity means that the total number of binary 1 bits in the character, including the parity bit, is odd. Even parity means that the number of binary 1 bits in the character, including the parity bit, is even. MECH1500
  • 47. When adding with binary numbers, there are only four conditions that can occur: MECH1500
  • 50. To subtract from larger binary numbers, subtract column by column, borrowing from the adjacent column when necessary. When borrowing from the adjacent column, there are now two digits, i.e., 0 borrow 1 gives 10. MECH1500
  • 51. Binary numbers can also be negative. The procedure for this calculation is identical to that of decimal numbers because the smaller value is subtracted from the larger value and a negative sign is placed in front of the result. MECH1500
  • 52. There are other methods available for doing subtraction: 1’s complement and 2’s complement. Using the 1’s complement When there is a carry at the end of the result, the result is positive. When there is no carry, then the result is negative and a minus sign has to be placed in front of it. MECH1500
  • 53. When there is a carry at the end of the result, the result is positive. When there is no carry, then the result is negative and a minus sign has to be placed in front of it. MECH1500
  • 54. For subtraction using the 2’s complement, the 2’s complement is added instead of subtracting the numbers. In the result, if the carry is a 1, then the result is positive; if the carry is a 0, then the result is negative and requires a minus sign. MECH1500
  • 56. When multiplying binary numbers, there are only four conditions that can occur: MECH1500
  • 57. The process for dividing one binary number by another is the same for both binary and decimal numbers. MECH1500
  • 58. PLC data comparison instructions are used to compare the data stored in two words. At times, devices may need to be controlled when they are less than, equal to, or greater than other data values or set points. MECH1500