SlideShare a Scribd company logo
D R . T A R E K A . T U T U N J I
Logic Concepts
Binary Concept
 In digital systems, two-state conditions can be thought of as signals that
are present (activated, ON) or not present (not activated, OFF)
 This two-state concept can be the basis for making decisions; and since
it is very adaptable to the binary number system, it is a fundamental
building block for programmable controllers and digital computers.
 Binary 1 represents the presence of a signal (or the occurrence of some
event), while binary 0 represents the absence of the signal (or the
nonoccurrence of the event).
 In digital systems, these two states are actually represented by two
distinct voltage levels, +V and 0V.
 Positive logic vs. negative logic.
Binary Concept
Logic Functions
 Operations performed by digital equipment, such
as programmable controllers, are based on three
fundamental logic functions—AND, OR, and NOT.
AND Gate
OR Gate
NOT Gate
Logic Functions Example
 Show the logic gate,
truth table, and circuit
representation for a
solenoid valve (V1) that
will be open (ON) if
selector switch S1 is ON
and if level switch L1 is
NOT ON (liquid has
not reached level).
Logic Functions Example
Logic Functions Example
NAND / NOR Gates
Principles of Boolean Algebra and Logic
Combined Gates
Boolean Algebra Rules
PLC Circuits
 Hardwired logic refers to
logic control functions
(timing, sequencing, and
control) that are
determined by the way
devices are interconnected.
 Hardwired logic is fixed
and can be changed only by
altering the way devices are
physically connected.
PLC Circuits
 A prime function of a PLC is to replace existing hardwired
control logic and to implement “programmable” control
functions for new systems.
 How these instructions are implemented to convey
commands to the PLC is called the language.
 The most conventional of the control languages is ladder
diagram.
 Ladder diagrams are also called contact symbology,
since their instructions are relay-equivalent contact
symbols.
PLC Circuits
 The complete ladder circuit can be thought of
individual circuits, each circuit having one output.
 Each of these circuits is known as a rung (or
network); therefore, a rung is the contact
symbology required to control an output in the
PLC.
 Some controllers allow a rung to have multiple
outputs, but one output per rung is the convention.
PLC Circuits
PLC Circuits
PLC Circuits and Contact Logic
 Note that the PLC diagram includes all of the field input
and output devices connected to the interfaces that are used
in the rung.
 A complete PLC ladder diagram program, then, consists of
several rungs.
 Each rung controls an output interface that is connected to an
output device.
 Each rung is a combination of input conditions (symbols) connected
from left to right between two vertical lines, with the symbol that
represents the output at the far right.
PLC Addressing
 Each symbol on a rung will have a reference number,
which is the address in memory where the current
status (1 or 0) for the referenced input/output is
stored.
 When a field signal is connected to an input or an
output interface, its address will be related to the
terminal where the signal wire is connected.
PLC Addressing
 Consider a simple circuit.
 Each “real” field device (e.g.,
push buttons PB1 and PB2, limit
switch LS1, and pilot light PL1) is
connected to the PLC’s input and
output modules which have a
reference number—the address.
 To turn PL1 ON, one of the
following conditions must occur
 PB1 must be pressed and LS1
must be closed (or)
 PB2 must be pressed and LS1
must be closed.
PLC Addressing
 In the PLC control program,
power must flow through either
addresses 30 (PB1) and 32 (LS1)
or through addresses 31 (PB2)
and 32 (LS1) to turn ON output
40.
 Output 40, in turn, energizes the
light PL1 that is connected to the
interface with address 40.
 In order to provide power to
addresses 30, 31, or 32, the
devices connected to the input
interfaces addresses must be
turned ON
Contact Symbols used in PLC
 Consider a relay A with
two sets of contacts:
 one normally open
contact (A-1).
 one normally closed
contact (A-2).
Contact Symbols used in PLC
 If relay coil A is not energized
(i.e., it is OFF), contact A-1 will
remain open and contact A-2 will
remain closed.
 Conversely, if coil A is energized,
or turned ON, contact A-1 will
close and contact A-2 will open
 The blue lines highlighting the
coil and contacts denote an ON,
or closed, condition.
Contact Symbols used in PLC
 Each set of available coils and its
respective contacts in the PLC
have a unique reference address
by which they are identified.
 For instance, coil 10 will have
normally open and normally
closed contacts with the same
address (10) as the coil.
 Note that a PLC can have as
many normally open and
normally closed contacts as
desired.
Contact Symbols used in PLC
 A programmable controller also
allows the multiple use of an
input device reference.
 An example in which limit switch
LS1 is connected to reference
input module connection 20.
 Note that the PLC control
program can have as many
normally open and normally
closed reference 20 contacts in
as many rungs as needed.
Contact Symbols used in PLC
 Normally open contact.
 When evaluated by the program, this symbol is examined for a 1 to
close the contact; therefore, the signal referenced by the symbol must
be ON, CLOSED, activated, etc.
 Normally closed contact.
 When evaluated by the program, this symbol is examined for a 0 to
keep the contact closed; thus, the signal referenced by the symbol
must be OFF, OPEN, deactivated, etc.
 Output.
 An output on a given rung will be energized if any left-to-right path
has all contacts closed. An output can control either a connected
device or an internal output used exclusively within the program.

More Related Content

PDF
Lecture_4-Logic_Functions_and_Symbols.pdf
PDF
PLCProgramming for beginners in automation
PPT
PROGRAMMABLE LOGIC CONTROLLERS
PPTX
PPT
PLC PPT.ppt
PPT
Evolution of Programmable Logic Controllers
PDF
Plc course presentation
PPT
P.L.C (Manufacturing & Automation) pptx.
Lecture_4-Logic_Functions_and_Symbols.pdf
PLCProgramming for beginners in automation
PROGRAMMABLE LOGIC CONTROLLERS
PLC PPT.ppt
Evolution of Programmable Logic Controllers
Plc course presentation
P.L.C (Manufacturing & Automation) pptx.

Similar to Logic Concepts as used in programmable logic controller (20)

PPT
ie450pp10 (4).pptechanics manufacturing sheet forming processses
PPT
Prigrammable Logic Controller - IE450 Manufacturing Systems
PPT
PLC introduction for programing S7-1200 simenens
PPT
plc fjjolk mfikjm smfnvid ajdsjhikvgjsd dcij
PPT
plc automation new jhsf jijasd jicnvjd jsfdgb
PPT
PROGRAMMABLE LOGIC CONTROLLERS, Manufacturing Systems
PPT
programming logic controller and programming
PPT
ie450pp10.ppt INTRODUCTION TO PLC UPLOAD
PPT
PLC Logic Controller Presentation PPT File
PPT
ie450pp10.pptPPTPTPTPTPTPTPTPTPTPTPTPTPTPT
PDF
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
PPT
plc1.ppt
PPT
ie450pp10.ppt
PPT
PLC Basics
PPT
ie450pp10.ppt
PPT
PLC (PROGRAMMABLE LOGIC CONTROLLER)
PPT
PLC, or Programmable Logic Controller, is a specialized industrial computer u...
PPT
PLC good.ppt
PPT
PLC.ppt
PPT
ie450pp10.ppt
ie450pp10 (4).pptechanics manufacturing sheet forming processses
Prigrammable Logic Controller - IE450 Manufacturing Systems
PLC introduction for programing S7-1200 simenens
plc fjjolk mfikjm smfnvid ajdsjhikvgjsd dcij
plc automation new jhsf jijasd jicnvjd jsfdgb
PROGRAMMABLE LOGIC CONTROLLERS, Manufacturing Systems
programming logic controller and programming
ie450pp10.ppt INTRODUCTION TO PLC UPLOAD
PLC Logic Controller Presentation PPT File
ie450pp10.pptPPTPTPTPTPTPTPTPTPTPTPTPTPTPT
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
plc1.ppt
ie450pp10.ppt
PLC Basics
ie450pp10.ppt
PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC, or Programmable Logic Controller, is a specialized industrial computer u...
PLC good.ppt
PLC.ppt
ie450pp10.ppt
Ad

More from Ahmed Ramadan (8)

PDF
Introduction to Programmable Controllers
PPT
Supp HAZOP 1 Hazard Analysis Review: The Concept of Risk
PPT
Total Solution for Flue Gas Analyzer Series
PPTX
Compressor Control and Optimization.pptx
PPT
Distributed Control System Operation seminar
PPT
FT-IR Instrument Components presentation
PDF
Part 2 Analytical Measurements techniques.
PDF
Operation Stations in a Distributed Control System
Introduction to Programmable Controllers
Supp HAZOP 1 Hazard Analysis Review: The Concept of Risk
Total Solution for Flue Gas Analyzer Series
Compressor Control and Optimization.pptx
Distributed Control System Operation seminar
FT-IR Instrument Components presentation
Part 2 Analytical Measurements techniques.
Operation Stations in a Distributed Control System
Ad

Recently uploaded (20)

PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
PPT on Performance Review to get promotions
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
DOCX
573137875-Attendance-Management-System-original
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Digital Logic Computer Design lecture notes
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Well-logging-methods_new................
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Internet of Things (IOT) - A guide to understanding
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPT on Performance Review to get promotions
Structs to JSON How Go Powers REST APIs.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Lecture Notes Electrical Wiring System Components
Strings in CPP - Strings in C++ are sequences of characters used to store and...
573137875-Attendance-Management-System-original
Embodied AI: Ushering in the Next Era of Intelligent Systems
Digital Logic Computer Design lecture notes
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Well-logging-methods_new................
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx

Logic Concepts as used in programmable logic controller

  • 1. D R . T A R E K A . T U T U N J I Logic Concepts
  • 2. Binary Concept  In digital systems, two-state conditions can be thought of as signals that are present (activated, ON) or not present (not activated, OFF)  This two-state concept can be the basis for making decisions; and since it is very adaptable to the binary number system, it is a fundamental building block for programmable controllers and digital computers.  Binary 1 represents the presence of a signal (or the occurrence of some event), while binary 0 represents the absence of the signal (or the nonoccurrence of the event).  In digital systems, these two states are actually represented by two distinct voltage levels, +V and 0V.  Positive logic vs. negative logic.
  • 4. Logic Functions  Operations performed by digital equipment, such as programmable controllers, are based on three fundamental logic functions—AND, OR, and NOT.
  • 8. Logic Functions Example  Show the logic gate, truth table, and circuit representation for a solenoid valve (V1) that will be open (ON) if selector switch S1 is ON and if level switch L1 is NOT ON (liquid has not reached level).
  • 11. NAND / NOR Gates
  • 12. Principles of Boolean Algebra and Logic
  • 15. PLC Circuits  Hardwired logic refers to logic control functions (timing, sequencing, and control) that are determined by the way devices are interconnected.  Hardwired logic is fixed and can be changed only by altering the way devices are physically connected.
  • 16. PLC Circuits  A prime function of a PLC is to replace existing hardwired control logic and to implement “programmable” control functions for new systems.  How these instructions are implemented to convey commands to the PLC is called the language.  The most conventional of the control languages is ladder diagram.  Ladder diagrams are also called contact symbology, since their instructions are relay-equivalent contact symbols.
  • 17. PLC Circuits  The complete ladder circuit can be thought of individual circuits, each circuit having one output.  Each of these circuits is known as a rung (or network); therefore, a rung is the contact symbology required to control an output in the PLC.  Some controllers allow a rung to have multiple outputs, but one output per rung is the convention.
  • 20. PLC Circuits and Contact Logic  Note that the PLC diagram includes all of the field input and output devices connected to the interfaces that are used in the rung.  A complete PLC ladder diagram program, then, consists of several rungs.  Each rung controls an output interface that is connected to an output device.  Each rung is a combination of input conditions (symbols) connected from left to right between two vertical lines, with the symbol that represents the output at the far right.
  • 21. PLC Addressing  Each symbol on a rung will have a reference number, which is the address in memory where the current status (1 or 0) for the referenced input/output is stored.  When a field signal is connected to an input or an output interface, its address will be related to the terminal where the signal wire is connected.
  • 22. PLC Addressing  Consider a simple circuit.  Each “real” field device (e.g., push buttons PB1 and PB2, limit switch LS1, and pilot light PL1) is connected to the PLC’s input and output modules which have a reference number—the address.  To turn PL1 ON, one of the following conditions must occur  PB1 must be pressed and LS1 must be closed (or)  PB2 must be pressed and LS1 must be closed.
  • 23. PLC Addressing  In the PLC control program, power must flow through either addresses 30 (PB1) and 32 (LS1) or through addresses 31 (PB2) and 32 (LS1) to turn ON output 40.  Output 40, in turn, energizes the light PL1 that is connected to the interface with address 40.  In order to provide power to addresses 30, 31, or 32, the devices connected to the input interfaces addresses must be turned ON
  • 24. Contact Symbols used in PLC  Consider a relay A with two sets of contacts:  one normally open contact (A-1).  one normally closed contact (A-2).
  • 25. Contact Symbols used in PLC  If relay coil A is not energized (i.e., it is OFF), contact A-1 will remain open and contact A-2 will remain closed.  Conversely, if coil A is energized, or turned ON, contact A-1 will close and contact A-2 will open  The blue lines highlighting the coil and contacts denote an ON, or closed, condition.
  • 26. Contact Symbols used in PLC  Each set of available coils and its respective contacts in the PLC have a unique reference address by which they are identified.  For instance, coil 10 will have normally open and normally closed contacts with the same address (10) as the coil.  Note that a PLC can have as many normally open and normally closed contacts as desired.
  • 27. Contact Symbols used in PLC  A programmable controller also allows the multiple use of an input device reference.  An example in which limit switch LS1 is connected to reference input module connection 20.  Note that the PLC control program can have as many normally open and normally closed reference 20 contacts in as many rungs as needed.
  • 28. Contact Symbols used in PLC  Normally open contact.  When evaluated by the program, this symbol is examined for a 1 to close the contact; therefore, the signal referenced by the symbol must be ON, CLOSED, activated, etc.  Normally closed contact.  When evaluated by the program, this symbol is examined for a 0 to keep the contact closed; thus, the signal referenced by the symbol must be OFF, OPEN, deactivated, etc.  Output.  An output on a given rung will be energized if any left-to-right path has all contacts closed. An output can control either a connected device or an internal output used exclusively within the program.