SlideShare a Scribd company logo
Programmable Logic
Controller
(Number System)
Introduction
• Since a PLC is a computer, it stores
information in the form of On or Off
conditions (1 or 0), referred to as binary
digits (bits).
• Sometimes binary digits are used
individually and sometimes they are used
to represent numerical values.
Ten digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Base 10
Weights 1, 10, 100, 1000, ...
Decimal System
• Various number systems are used by PLCs. All number
systems have the same three characteristics: digits,
base, weight.
• The decimal system, which is commonly used in
everyday life, has the following characteristics:
Two digits 0, 1
Base 2
Weights Powers of base 2 (1, 2, 4, 8, 16, ...)
Binary System
• The binary system is used by programmable controllers.
The binary system has the following characteristics:
Binary System
• In the binary system 1s and 0s are arranged into columns. Each
column is weighted. The first column has a binary weight of 20. This
is equivalent to a decimal 1. This is referred to as the least significant
bit.
• The binary weight is doubled with each succeeding column. The next
column, for example, has a weight of 21, which is equivalent to a
decimal 2. The decimal value is doubled in each successive column.
• The number in the far left hand column is referred to as the most
significant bit. In this example, the most significant bit has a binary
weight of 27. This is equivalent to a decimal 128.
Converting Binary to Decimal
• The following steps can be used to interpret a
decimal number from a binary value
1) Search from least to most significant bit for 1s.
2) Write down the decimal representation of each
column containing a 1.
3) Add the column values.
Converting Binary to Decimal
• In the following example, the fourth and fifth columns
from the right contain a 1. The decimal value of the fourth
column from the right is 8, and the decimal value of the
fifth column from the right is 16. The decimal equivalent
of this binary number is 24. The sum of all the weighted
columns that contain a 1 is the decimal number that the
PLC has stored.
Converting Binary to Decimal
• In the following example the fourth and sixth columns
from the right contain a 1. The decimal value of the
fourth column from the right is 8, and the decimal value
of the sixth column from the right is 32. The decimal
equivalent of this binary number is 40.
Bits, Bytes, and Words
• Each binary piece of data is a bit. Eight bits make up
one byte.
• Two bytes, or 16 bits, make up one word
PLC Processor Memory Size
The size of the programmable controller relates to the
amount of user program that can be stored.
The 1 K word memory
size shown can store
1,024 words, or 16,380
(1,024 x 16) bits of
information using
16-bit words or 32,768
(1,024 x 32) using
32 bit words.
Logic 0, Logic 1
• Programmable controllers
can only understand a signal
that is On or Off (present or
not present). The binary
system is a system in which
there are only two numbers,
1 and 0.
• Binary 1 indicates that a
signal is present, or the
switch is On. Binary 0
indicates that the signal is
not present, or the switch is
Off.
BCD
• Binary-Coded Decimal (BCD)
are decimal numbers where
each digit is represented by a
four-bit binary number.
• BCD is commonly used with
input and output devices.
• A thumbwheel switch is one
example of an input device that
uses BCD. The binary numbers
are broken into groups of four
bits, each group representing a
decimal equivalent.
• A four-digit thumbwheel switch,
like the one shown here, would
control 16 (4 x 4) PLC inputs.
Hexadecimal
• Hexadecimal is another system used in PLCs. The hexadecimal
system has the following characteristics:
16 digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Base 16
Weights Powers of base 16 (1, 16, 256, 4096 ...)
• The ten digits of the decimal system are used for the first ten digits
of the hexadecimal system. The first six letters of the alphabet are
used for the remaining six digits.
A = 10 D = 13
B = 11 E = 14
C = 12 F = 15
Hexadecimal
• The hexadecimal system is used in PLCs
because it allows the status of a large number
of binary bits to be represented in a small space
such as on a computer screen or programming
device display.
• Each hexadecimal digit represents the exact
status of four binary bits.
Converting Decimal to Hex
• To convert a decimal number to a hexadecimal
number the decimal number is divided by the
base of 16.
• To convert decimal 28, for example, to
hexadecimal: Decimal 28 divided by 16 is 1 with
a remainder of 12. Twelve is equivalent to C in
hexadecimal. The hexadecimal equivalent of
decimal 28 is 1C
Converting Hex to Decimal
• The decimal value of a
hexadecimal number is
obtained by multiplying the
individual hexadecimal digits
by the base 16 weight and
then adding the results.
• In the following example the
hexadecimal number 2B is
converted to its decimal
equivalent of 43
Conversion of Numbers
Decimal Binary BCD Hexadecimal
Divide by
respective base
number
Multiply by the
respective weights
Converting Binary to Hex
• To convert binary numbers to hexadecimal
numbers, we group the binary numbers
into fours starting from the least significant
number.
• In the following example, the binary
number 1110100110 is converted to hex
which is equivalent to 3A6.
11 1010 0110 Binary number
3 A 6 Hex number

More Related Content

Similar to 12117188.ppt

Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
Mubashir Ali
 
Intro to IT Skills Lec 5 - English Department.pptx
Intro to IT Skills Lec 5 - English Department.pptxIntro to IT Skills Lec 5 - English Department.pptx
Intro to IT Skills Lec 5 - English Department.pptx
must322322
 
Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02
muhammadsarab
 
Number system
Number systemNumber system
Number system
Palash Sachan
 
digital-electronics lecture Ch 1and 2 -1.pptx
digital-electronics lecture Ch 1and 2 -1.pptxdigital-electronics lecture Ch 1and 2 -1.pptx
digital-electronics lecture Ch 1and 2 -1.pptx
abelllll
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
Sajib
 
Number System
Number SystemNumber System
Number System
Zahid Rajeel
 
Finite word length effects
Finite word length effectsFinite word length effects
Finite word length effects
PeriyanayagiS
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
4NM21IS132SAISHARATH
 
DLD_Lecture_notes2.ppt
DLD_Lecture_notes2.pptDLD_Lecture_notes2.ppt
DLD_Lecture_notes2.ppt
NazmulHasan854383
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
VandanaPagar1
 
DLD-unit-1(2022).pdf
DLD-unit-1(2022).pdfDLD-unit-1(2022).pdf
Lecture 2 ns
Lecture 2 nsLecture 2 ns
Lecture 2 ns
Rabiul Sarker
 
Data representation
Data representationData representation
Data representation
Prof. Dr. K. Adisesha
 
Number system
Number system Number system
Number system
Anirban Saha Anik
 
1. basic theories of information
1. basic theories of information1. basic theories of information
1. basic theories of information
'Cedrick SuperGreenilistic Expialidocious Antonino
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
AshishChandrakar12
 
numbering system binary and decimal hex octal
numbering system binary and decimal hex octalnumbering system binary and decimal hex octal
numbering system binary and decimal hex octal
noor300491
 
Lecture_Computer_Codes.ppt
Lecture_Computer_Codes.pptLecture_Computer_Codes.ppt
Lecture_Computer_Codes.ppt
MarlonMagtibay2
 
NUMBER SYSTEM.pptx
NUMBER  SYSTEM.pptxNUMBER  SYSTEM.pptx
NUMBER SYSTEM.pptx
AsifRahaman16
 

Similar to 12117188.ppt (20)

Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
 
Intro to IT Skills Lec 5 - English Department.pptx
Intro to IT Skills Lec 5 - English Department.pptxIntro to IT Skills Lec 5 - English Department.pptx
Intro to IT Skills Lec 5 - English Department.pptx
 
Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02
 
Number system
Number systemNumber system
Number system
 
digital-electronics lecture Ch 1and 2 -1.pptx
digital-electronics lecture Ch 1and 2 -1.pptxdigital-electronics lecture Ch 1and 2 -1.pptx
digital-electronics lecture Ch 1and 2 -1.pptx
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
 
Number System
Number SystemNumber System
Number System
 
Finite word length effects
Finite word length effectsFinite word length effects
Finite word length effects
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
DLD_Lecture_notes2.ppt
DLD_Lecture_notes2.pptDLD_Lecture_notes2.ppt
DLD_Lecture_notes2.ppt
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 
DLD-unit-1(2022).pdf
DLD-unit-1(2022).pdfDLD-unit-1(2022).pdf
DLD-unit-1(2022).pdf
 
Lecture 2 ns
Lecture 2 nsLecture 2 ns
Lecture 2 ns
 
Data representation
Data representationData representation
Data representation
 
Number system
Number system Number system
Number system
 
1. basic theories of information
1. basic theories of information1. basic theories of information
1. basic theories of information
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
 
numbering system binary and decimal hex octal
numbering system binary and decimal hex octalnumbering system binary and decimal hex octal
numbering system binary and decimal hex octal
 
Lecture_Computer_Codes.ppt
Lecture_Computer_Codes.pptLecture_Computer_Codes.ppt
Lecture_Computer_Codes.ppt
 
NUMBER SYSTEM.pptx
NUMBER  SYSTEM.pptxNUMBER  SYSTEM.pptx
NUMBER SYSTEM.pptx
 

More from Harshal Vaidya

Chapter 1-Electrical Drives.pptx
Chapter 1-Electrical Drives.pptxChapter 1-Electrical Drives.pptx
Chapter 1-Electrical Drives.pptx
Harshal Vaidya
 
motor-enclosures.pptx
motor-enclosures.pptxmotor-enclosures.pptx
motor-enclosures.pptx
Harshal 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.pptx
Harshal 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.ppt
Harshal 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.pptx
Harshal Vaidya
 
Slide 1.pptx
Slide 1.pptxSlide 1.pptx
Slide 1.pptx
Harshal Vaidya
 
123-converted.pptx
123-converted.pptx123-converted.pptx
123-converted.pptx
Harshal Vaidya
 
1564.pptx
1564.pptx1564.pptx
1564.pptx
Harshal Vaidya
 
chapter 2 IE.pptx
chapter 2 IE.pptxchapter 2 IE.pptx
chapter 2 IE.pptx
Harshal Vaidya
 
Presentation.pptx
Presentation.pptxPresentation.pptx
Presentation.pptx
Harshal Vaidya
 
235945191-Technology-Management.pptx
235945191-Technology-Management.pptx235945191-Technology-Management.pptx
235945191-Technology-Management.pptx
Harshal Vaidya
 
251693632-Extrusion-ppt.ppt
251693632-Extrusion-ppt.ppt251693632-Extrusion-ppt.ppt
251693632-Extrusion-ppt.ppt
Harshal Vaidya
 
9123497.ppt
9123497.ppt9123497.ppt
9123497.ppt
Harshal Vaidya
 
5875281.ppt
5875281.ppt5875281.ppt
5875281.ppt
Harshal Vaidya
 
12117188.ppt
12117188.ppt12117188.ppt
12117188.ppt
Harshal Vaidya
 

More from Harshal Vaidya (15)

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
 
9123497.ppt
9123497.ppt9123497.ppt
9123497.ppt
 
5875281.ppt
5875281.ppt5875281.ppt
5875281.ppt
 
12117188.ppt
12117188.ppt12117188.ppt
12117188.ppt
 

Recently uploaded

Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
mahaffeycheryld
 
TIME TABLE MANAGEMENT SYSTEM testing.pptx
TIME TABLE MANAGEMENT SYSTEM testing.pptxTIME TABLE MANAGEMENT SYSTEM testing.pptx
TIME TABLE MANAGEMENT SYSTEM testing.pptx
CVCSOfficial
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
Engineering Standards Wiring methods.pdf
Engineering Standards Wiring methods.pdfEngineering Standards Wiring methods.pdf
Engineering Standards Wiring methods.pdf
edwin408357
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
upoux
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
bijceesjournal
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
ijaia
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
AI for Legal Research with applications, tools
AI for Legal Research with applications, toolsAI for Legal Research with applications, tools
AI for Legal Research with applications, tools
mahaffeycheryld
 

Recently uploaded (20)

Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
 
TIME TABLE MANAGEMENT SYSTEM testing.pptx
TIME TABLE MANAGEMENT SYSTEM testing.pptxTIME TABLE MANAGEMENT SYSTEM testing.pptx
TIME TABLE MANAGEMENT SYSTEM testing.pptx
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
Engineering Standards Wiring methods.pdf
Engineering Standards Wiring methods.pdfEngineering Standards Wiring methods.pdf
Engineering Standards Wiring methods.pdf
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
AI for Legal Research with applications, tools
AI for Legal Research with applications, toolsAI for Legal Research with applications, tools
AI for Legal Research with applications, tools
 

12117188.ppt

  • 2. Introduction • Since a PLC is a computer, it stores information in the form of On or Off conditions (1 or 0), referred to as binary digits (bits). • Sometimes binary digits are used individually and sometimes they are used to represent numerical values.
  • 3. Ten digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Base 10 Weights 1, 10, 100, 1000, ... Decimal System • Various number systems are used by PLCs. All number systems have the same three characteristics: digits, base, weight. • The decimal system, which is commonly used in everyday life, has the following characteristics:
  • 4. Two digits 0, 1 Base 2 Weights Powers of base 2 (1, 2, 4, 8, 16, ...) Binary System • The binary system is used by programmable controllers. The binary system has the following characteristics:
  • 5. Binary System • In the binary system 1s and 0s are arranged into columns. Each column is weighted. The first column has a binary weight of 20. This is equivalent to a decimal 1. This is referred to as the least significant bit. • The binary weight is doubled with each succeeding column. The next column, for example, has a weight of 21, which is equivalent to a decimal 2. The decimal value is doubled in each successive column. • The number in the far left hand column is referred to as the most significant bit. In this example, the most significant bit has a binary weight of 27. This is equivalent to a decimal 128.
  • 6. Converting Binary to Decimal • The following steps can be used to interpret a decimal number from a binary value 1) Search from least to most significant bit for 1s. 2) Write down the decimal representation of each column containing a 1. 3) Add the column values.
  • 7. Converting Binary to Decimal • In the following example, the fourth and fifth columns from the right contain a 1. The decimal value of the fourth column from the right is 8, and the decimal value of the fifth column from the right is 16. The decimal equivalent of this binary number is 24. The sum of all the weighted columns that contain a 1 is the decimal number that the PLC has stored.
  • 8. Converting Binary to Decimal • In the following example the fourth and sixth columns from the right contain a 1. The decimal value of the fourth column from the right is 8, and the decimal value of the sixth column from the right is 32. The decimal equivalent of this binary number is 40.
  • 9. Bits, Bytes, and Words • Each binary piece of data is a bit. Eight bits make up one byte. • Two bytes, or 16 bits, make up one word
  • 10. PLC Processor Memory Size The size of the programmable controller relates to the amount of user program that can be stored. The 1 K word memory size shown can store 1,024 words, or 16,380 (1,024 x 16) bits of information using 16-bit words or 32,768 (1,024 x 32) using 32 bit words.
  • 11. Logic 0, Logic 1 • Programmable controllers can only understand a signal that is On or Off (present or not present). The binary system is a system in which there are only two numbers, 1 and 0. • Binary 1 indicates that a signal is present, or the switch is On. Binary 0 indicates that the signal is not present, or the switch is Off.
  • 12. BCD • Binary-Coded Decimal (BCD) are decimal numbers where each digit is represented by a four-bit binary number. • BCD is commonly used with input and output devices. • A thumbwheel switch is one example of an input device that uses BCD. The binary numbers are broken into groups of four bits, each group representing a decimal equivalent. • A four-digit thumbwheel switch, like the one shown here, would control 16 (4 x 4) PLC inputs.
  • 13. Hexadecimal • Hexadecimal is another system used in PLCs. The hexadecimal system has the following characteristics: 16 digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F Base 16 Weights Powers of base 16 (1, 16, 256, 4096 ...) • The ten digits of the decimal system are used for the first ten digits of the hexadecimal system. The first six letters of the alphabet are used for the remaining six digits. A = 10 D = 13 B = 11 E = 14 C = 12 F = 15
  • 14. Hexadecimal • The hexadecimal system is used in PLCs because it allows the status of a large number of binary bits to be represented in a small space such as on a computer screen or programming device display. • Each hexadecimal digit represents the exact status of four binary bits.
  • 15. Converting Decimal to Hex • To convert a decimal number to a hexadecimal number the decimal number is divided by the base of 16. • To convert decimal 28, for example, to hexadecimal: Decimal 28 divided by 16 is 1 with a remainder of 12. Twelve is equivalent to C in hexadecimal. The hexadecimal equivalent of decimal 28 is 1C
  • 16. Converting Hex to Decimal • The decimal value of a hexadecimal number is obtained by multiplying the individual hexadecimal digits by the base 16 weight and then adding the results. • In the following example the hexadecimal number 2B is converted to its decimal equivalent of 43
  • 18. Decimal Binary BCD Hexadecimal Divide by respective base number Multiply by the respective weights
  • 19. Converting Binary to Hex • To convert binary numbers to hexadecimal numbers, we group the binary numbers into fours starting from the least significant number. • In the following example, the binary number 1110100110 is converted to hex which is equivalent to 3A6. 11 1010 0110 Binary number 3 A 6 Hex number